From 6975d465c406f5f9e360d34a98b65efc640f1d7a Mon Sep 17 00:00:00 2001 From: Rusty Striker Date: Tue, 9 Jul 2024 21:54:03 +0300 Subject: fix food processor getting the same color --- client/map/items/food_processor_content.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/map/items/food_processor_content.gd b/client/map/items/food_processor_content.gd index a8ba1079..8910590f 100644 --- a/client/map/items/food_processor_content.gd +++ b/client/map/items/food_processor_content.gd @@ -23,5 +23,6 @@ func _init(owned_by_: Node3D): add_child(content) func set_color(c: Color): - var mat: BaseMaterial3D = content.get_active_material(0) + var mat: BaseMaterial3D = content.get_active_material(0).duplicate(true) mat.albedo_color = c + content.material_override = mat -- cgit v1.2.3-70-g09d2