diff --git a/game/addons/mat_maker_gd/editor/MatMakerGDEditor.gd b/game/addons/mat_maker_gd/editor/MatMakerGDEditor.gd index 160e60a2..34bae36c 100644 --- a/game/addons/mat_maker_gd/editor/MatMakerGDEditor.gd +++ b/game/addons/mat_maker_gd/editor/MatMakerGDEditor.gd @@ -112,16 +112,16 @@ func set_mmmaterial(object : MMMateial): _material.disconnect("changed", self, "on_material_changed") _material = object - + + recreate() + if _material: _material.connect("changed", self, "on_material_changed") - - recreate() func on_material_changed() -> void: if _ignore_material_change_event: return - + if _event_recreate_queued: return