fix visibility
This commit is contained in:
parent
300ed066fc
commit
4788045f44
1 changed files with 2 additions and 1 deletions
|
@ -91,10 +91,11 @@ func on_grab(_offset:Vector2=Vector2(0.0,0.0)):
|
|||
|
||||
func update_ChildNodes_visibilty(_visible:bool=true):
|
||||
for _childNode in get_parent().get_children():
|
||||
if(_childNode != WorldSprite):
|
||||
if(_childNode != WorldSprite and _childNode != StickerSprite):
|
||||
_childNode.visible = _visible
|
||||
|
||||
func disable_ChildNodes_collisions(_disable:bool=true):
|
||||
for _childNode in get_parent().get_children():
|
||||
if (_childNode != self):
|
||||
_childNode.process_mode = Node.PROCESS_MODE_DISABLED if _disable else Node.PROCESS_MODE_ALWAYS
|
||||
|
||||
|
|
Loading…
Reference in a new issue