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:
parent
59aa79f218
commit
2658e5d03d
8 changed files with 202 additions and 45 deletions
|
|
@ -638,6 +638,10 @@ String PathSpatialGizmoPlugin::get_name() const {
|
|||
return "Path";
|
||||
}
|
||||
|
||||
int PathSpatialGizmoPlugin::get_priority() const {
|
||||
return -1;
|
||||
}
|
||||
|
||||
PathSpatialGizmoPlugin::PathSpatialGizmoPlugin() {
|
||||
|
||||
Color path_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/path", Color(0.5, 0.5, 1.0, 0.8));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue