public override void _EnterTree() { if (!IsInstanceValid(curve)) { curve = new Curve3D(); } if (!curve.IsConnected("changed", this, "update_gizmo")) { curve.Connect("changed", this, "update_gizmo"); } }