Connect to material's change event after calling recreate().

This commit is contained in:
Relintai 2022-01-21 13:35:37 +01:00
parent 4237b0c7c9
commit b7a5f6bcbd

View File

@ -113,11 +113,11 @@ func set_mmmaterial(object : MMMateial):
_material = object
recreate()
if _material:
_material.connect("changed", self, "on_material_changed")
recreate()
func on_material_changed() -> void:
if _ignore_material_change_event:
return