mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-22 02:17:18 +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.disconnect("changed", self, "on_material_changed")
|
||||||
|
|
||||||
_material = object
|
_material = object
|
||||||
|
|
||||||
|
recreate()
|
||||||
|
|
||||||
if _material:
|
if _material:
|
||||||
_material.connect("changed", self, "on_material_changed")
|
_material.connect("changed", self, "on_material_changed")
|
||||||
|
|
||||||
recreate()
|
|
||||||
|
|
||||||
func on_material_changed() -> void:
|
func on_material_changed() -> void:
|
||||||
if _ignore_material_change_event:
|
if _ignore_material_change_event:
|
||||||
return
|
return
|
||||||
|
|
||||||
if _event_recreate_queued:
|
if _event_recreate_queued:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user