I have a simple script which updates the position of the child node in tool mode
@tool
extends Node2D
@export var btn := false : set=set_btn
func set_btn(new_val):
if !new_val:
return
$ChildNode.global_position=Vector2(-100, -100)
when the function executes the position of the child node changes as evident by the Icon (green) changing it’s position:
but as you see the gizmo (red) of the node still remains at the previous position and doesn’t update until the scene is saved
Is there anyway to fix this? I even tried calling queue_redraw()
but it doesn’t work