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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user