summaryrefslogtreecommitdiffstats
path: root/editor/plugins/collision_shape_2d_editor_plugin.h
diff options
context:
space:
mode:
authorEric M <itsjusteza@gmail.com>2023-01-10 21:30:07 +1000
committerEric M <itsjusteza@gmail.com>2023-01-10 21:30:07 +1000
commit871ddf80c097717ad55026ce0cf60481af489eae (patch)
treed9f8b397e56da073d3cc83887704ff7e13a43d93 /editor/plugins/collision_shape_2d_editor_plugin.h
parent269fa200d04ae96b0114b788e18df638c5fb164b (diff)
downloadredot-engine-871ddf80c097717ad55026ce0cf60481af489eae.tar.gz
Fix cancelling selection (pressing escape) while gizmo editing making uncommitted changes.
* Pressing escape while gizmo editing will discard the changes made during that edit 'session'
Diffstat (limited to 'editor/plugins/collision_shape_2d_editor_plugin.h')
-rw-r--r--editor/plugins/collision_shape_2d_editor_plugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/collision_shape_2d_editor_plugin.h b/editor/plugins/collision_shape_2d_editor_plugin.h
index 68fc0ddbdf..9c37b6cf9d 100644
--- a/editor/plugins/collision_shape_2d_editor_plugin.h
+++ b/editor/plugins/collision_shape_2d_editor_plugin.h
@@ -71,6 +71,7 @@ class CollisionShape2DEditor : public Control {
bool pressed;
Variant original;
Transform2D original_transform;
+ Vector2 original_point;
Point2 last_point;
Variant get_handle_value(int idx) const;