Skip to content

Commit

Permalink
[CtrlDragable] Omitting drag preview processing when not in the scene
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-kish committed Apr 16, 2024
1 parent 4ff2eee commit 86b98c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/gloot/ui/ctrl_dragable.gd
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func _notification(what) -> void:


func _process(_delta) -> void:
if is_instance_valid(drag_preview) && drag_preview.visible:
if is_instance_valid(drag_preview) && is_instance_valid(drag_preview.get_parent()):
drag_preview.scale = get_global_transform().get_scale()
drag_preview.global_position = _get_global_preview_position()
if _show_queued:
Expand Down

0 comments on commit 86b98c3

Please sign in to comment.