1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fixed an issue with the Path2D plugin editor not supporting the capability to split curves as its toolbar buttons originally advertised.

This commit is contained in:
Robert Morse
2018-12-01 14:45:54 -06:00
parent 6343d05d9b
commit bce3599bd7
5 changed files with 96 additions and 12 deletions

View File

@@ -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);