You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add priority to gizmos and fix small issues
User defined gizmos will haave higher preference than editor gizmos by default. Also fixed some inconsistencies in the gizmos menu when using custom gizmos.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user