diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-03-12 01:19:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 01:19:39 +0100 |
commit | 6d86450a8356b8930b503c8ff5cc07d9e34e6287 (patch) | |
tree | 1a94c0a00c059c19ccb95da75e5b8cf7fa2321a1 /modules/csg | |
parent | 3ebde6fac3fac514a0ef2a2e339743992b14fb32 (diff) | |
parent | 2658e5d03d86034cf926584ed3d4a63f5e9d7329 (diff) |
Merge pull request #26941 from JFonS/add_gizmos_priority
Add priority to gizmos and fix small issues
Diffstat (limited to 'modules/csg')
-rw-r--r-- | modules/csg/csg_gizmos.cpp | 4 | ||||
-rw-r--r-- | modules/csg/csg_gizmos.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/csg/csg_gizmos.cpp b/modules/csg/csg_gizmos.cpp index 3044887ef5..d4069b901f 100644 --- a/modules/csg/csg_gizmos.cpp +++ b/modules/csg/csg_gizmos.cpp @@ -283,6 +283,10 @@ String CSGShapeSpatialGizmoPlugin::get_name() const { return "CSGShapes"; } +int CSGShapeSpatialGizmoPlugin::get_priority() const { + return -1; +} + bool CSGShapeSpatialGizmoPlugin::is_selectable_when_hidden() const { return true; } diff --git a/modules/csg/csg_gizmos.h b/modules/csg/csg_gizmos.h index b208c39938..0915d05111 100644 --- a/modules/csg/csg_gizmos.h +++ b/modules/csg/csg_gizmos.h @@ -42,6 +42,7 @@ class CSGShapeSpatialGizmoPlugin : public EditorSpatialGizmoPlugin { public: bool has_gizmo(Spatial *p_spatial); String get_name() const; + int get_priority() const; bool is_selectable_when_hidden() const; void redraw(EditorSpatialGizmo *p_gizmo); |