From b7a5f6bcbd5783f8c41dba68f9778a314dbf0687 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 21 Jan 2022 13:35:37 +0100 Subject: [PATCH] Connect to material's change event after calling recreate(). --- game/addons/mat_maker_gd/editor/MatMakerGDEditor.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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