summaryrefslogtreecommitdiffstats
path: root/editor/plugins/collision_shape_2d_editor_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/collision_shape_2d_editor_plugin.h')
-rw-r--r--editor/plugins/collision_shape_2d_editor_plugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/collision_shape_2d_editor_plugin.h b/editor/plugins/collision_shape_2d_editor_plugin.h
index 13a99ec6f3..d58f5d511f 100644
--- a/editor/plugins/collision_shape_2d_editor_plugin.h
+++ b/editor/plugins/collision_shape_2d_editor_plugin.h
@@ -69,6 +69,7 @@ class CollisionShape2DEditor : public Control {
int shape_type = -1;
int edit_handle = -1;
bool pressed = false;
+ real_t grab_threshold = 8;
Variant original;
Transform2D original_transform;
Vector2 original_point;
@@ -90,6 +91,8 @@ public:
bool forward_canvas_gui_input(const Ref<InputEvent> &p_event);
void forward_canvas_draw_over_viewport(Control *p_overlay);
void edit(Node *p_node);
+
+ CollisionShape2DEditor();
};
class CollisionShape2DEditorPlugin : public EditorPlugin {