You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Merge pull request #89933 from jsjtxietian/path3d-remove
Support "clear points" function in Path3D topmenu bar
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
|
||||
class HBoxContainer;
|
||||
class MenuButton;
|
||||
class ConfirmationDialog;
|
||||
|
||||
class Path3DGizmo : public EditorNode3DGizmo {
|
||||
GDCLASS(Path3DGizmo, EditorNode3DGizmo);
|
||||
@@ -118,8 +119,11 @@ class Path3DEditorPlugin : public EditorPlugin {
|
||||
Button *curve_edit_tilt = nullptr;
|
||||
Button *curve_del = nullptr;
|
||||
Button *curve_close = nullptr;
|
||||
Button *curve_clear_points = nullptr;
|
||||
MenuButton *handle_menu = nullptr;
|
||||
|
||||
ConfirmationDialog *clear_points_dialog = nullptr;
|
||||
|
||||
float disk_size = 0.8;
|
||||
|
||||
enum Mode {
|
||||
@@ -142,6 +146,11 @@ class Path3DEditorPlugin : public EditorPlugin {
|
||||
bool mirror_handle_angle;
|
||||
bool mirror_handle_length;
|
||||
|
||||
void _confirm_clear_points();
|
||||
void _clear_points();
|
||||
void _clear_curve_points();
|
||||
void _restore_curve_points(const PackedVector3Array &p_points);
|
||||
|
||||
enum HandleOption {
|
||||
HANDLE_OPTION_ANGLE,
|
||||
HANDLE_OPTION_LENGTH
|
||||
|
||||
Reference in New Issue
Block a user