mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Connect to material's change event after calling recreate().
This commit is contained in:
parent
4237b0c7c9
commit
b7a5f6bcbd
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user