fix visibility

This commit is contained in:
Lucas 2024-08-01 00:53:59 +02:00
parent 300ed066fc
commit 4788045f44

View file

@ -91,10 +91,11 @@ func on_grab(_offset:Vector2=Vector2(0.0,0.0)):
func update_ChildNodes_visibilty(_visible:bool=true): func update_ChildNodes_visibilty(_visible:bool=true):
for _childNode in get_parent().get_children(): for _childNode in get_parent().get_children():
if(_childNode != WorldSprite): if(_childNode != WorldSprite and _childNode != StickerSprite):
_childNode.visible = _visible _childNode.visible = _visible
func disable_ChildNodes_collisions(_disable:bool=true): func disable_ChildNodes_collisions(_disable:bool=true):
for _childNode in get_parent().get_children(): for _childNode in get_parent().get_children():
if (_childNode != self):
_childNode.process_mode = Node.PROCESS_MODE_DISABLED if _disable else Node.PROCESS_MODE_ALWAYS _childNode.process_mode = Node.PROCESS_MODE_DISABLED if _disable else Node.PROCESS_MODE_ALWAYS