diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/BuilderObject.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/BuilderObject.gd b/Objects/BuilderObject.gd index 91465bc..fde2660 100644 --- a/Objects/BuilderObject.gd +++ b/Objects/BuilderObject.gd @@ -30,7 +30,7 @@ func _process(_delta): func _on_area_2d_input_event(_viewport, event: InputEvent, _shape_idx): if event.is_action_pressed("drag_start"): drag_start() - if event.is_action_released("drag_start"): + if is_dragging and event.is_action_released("drag_start"): drag_end() @@ -79,6 +79,6 @@ func _on_area_2d_area_entered(_area): func _on_area_2d_area_exited(_area): - #if $Area2D.get_overlapping_areas().size() == 0: - is_colliding = false - modulate = Color("fff") + if $Area2D.get_overlapping_areas().size() == 0: + is_colliding = false + modulate = Color("fff") |