summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-05-18 15:49:24 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-05-18 15:49:24 +0200
commit9155752f861ae43e3534cdfa833d8c644cb0e5d3 (patch)
treefb1a0b115c1b23099796b56b30a04cb6fd1864d2 /Objects
parent3e94dd0704d7b4005f17c1086796afdbbe36b1f5 (diff)
save/load
Diffstat (limited to 'Objects')
-rw-r--r--Objects/BuilderObject.gd8
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")