summaryrefslogtreecommitdiff
path: root/editor/plugins/path_2d_editor_plugin.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-12 16:02:55 +0100
committerGitHub <noreply@github.com>2018-12-12 16:02:55 +0100
commit4d27b1fe4f5e56d53b9fcd13c08b7e2e497b2d8e (patch)
tree9ec9dc9e20dc99e1d9c6cd615d319e52ad8c9cd8 /editor/plugins/path_2d_editor_plugin.h
parent31349eec8e6ebf725c93b22abc3b98c03433b425 (diff)
parentbce3599bd7de6eb1bd65f5d9589b66e261d0f03c (diff)
Merge pull request #24109 from remorse107/godotengine-path2d-editor-fix
Fixed Path2D Plugin Editor so segments can be split.
Diffstat (limited to 'editor/plugins/path_2d_editor_plugin.h')
-rw-r--r--editor/plugins/path_2d_editor_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/path_2d_editor_plugin.h b/editor/plugins/path_2d_editor_plugin.h
index 3a78657746..34952b473a 100644
--- a/editor/plugins/path_2d_editor_plugin.h
+++ b/editor/plugins/path_2d_editor_plugin.h
@@ -73,6 +73,7 @@ class Path2DEditor : public HBoxContainer {
bool mirror_handle_angle;
bool mirror_handle_length;
+ bool on_edge;
enum HandleOption {
HANDLE_OPTION_ANGLE,
@@ -93,6 +94,7 @@ class Path2DEditor : public HBoxContainer {
Point2 moving_screen_from;
float orig_in_length;
float orig_out_length;
+ Vector2 edge_point;
void _mode_selected(int p_mode);
void _handle_option_pressed(int p_option);