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 /editor/plugins/spatial_editor_plugin.h | |
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 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index 6256b8b055..4a9d34a7f7 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -639,7 +639,8 @@ private: static SpatialEditor *singleton; void _node_removed(Node *p_node); - Vector<Ref<EditorSpatialGizmoPlugin> > gizmo_plugins; + Vector<Ref<EditorSpatialGizmoPlugin> > gizmo_plugins_by_priority; + Vector<Ref<EditorSpatialGizmoPlugin> > gizmo_plugins_by_name; void _register_all_gizmos(); @@ -782,6 +783,7 @@ public: Ref<SpatialMaterial> get_material(const String &p_name, const Ref<EditorSpatialGizmo> &p_gizmo = Ref<EditorSpatialGizmo>()); virtual String get_name() const; + virtual int get_priority() const; virtual bool can_be_hidden() const; virtual bool is_selectable_when_hidden() const; @@ -794,6 +796,7 @@ public: Ref<EditorSpatialGizmo> get_gizmo(Spatial *p_spatial); void set_state(int p_state); + int get_state() const; void unregister_gizmo(EditorSpatialGizmo *p_gizmo); EditorSpatialGizmoPlugin(); |