mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Optimize linked cels emitting the texture_changed signal, if multiple cels are selected
This commit is contained in:
parent
6b94b55f04
commit
3052d2756e
|
@ -49,6 +49,9 @@ func get_image() -> Image:
|
|||
func update_texture() -> void:
|
||||
emit_signal("texture_changed")
|
||||
if link_set != null:
|
||||
var frame: int = Global.current_project.current_frame
|
||||
# This check is needed in case the user has selected multiple cels that are also linked
|
||||
if self in Global.current_project.frames[frame].cels:
|
||||
for cel in link_set["cels"]:
|
||||
cel.emit_signal("texture_changed")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue