mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Print a warning if a 3D editor gizmo has no name defined
Unnamed gizmos should be avoided, so this should help editor plugin
authors resolve issues with gizmo naming if they forgot to override
the function.
(cherry picked from commit e5406ba952)
			
			
This commit is contained in:
		
							parent
							
								
									e902ee06ef
								
							
						
					
					
						commit
						da68feb0ca
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -6947,7 +6947,8 @@ String EditorSpatialGizmoPlugin::get_name() const { | |||
| 	if (get_script_instance() && get_script_instance()->has_method("get_name")) { | ||||
| 		return get_script_instance()->call("get_name"); | ||||
| 	} | ||||
| 	return TTR("Nameless gizmo"); | ||||
| 	WARN_PRINT_ONCE("A 3D editor gizmo has no name defined (it will appear as \"Unnamed Gizmo\" in the \"View > Gizmos\" menu). To resolve this, override the `get_name()` function to return a String in the script that extends EditorSpatialGizmoPlugin."); | ||||
| 	return TTR("Unnamed Gizmo"); | ||||
| } | ||||
| 
 | ||||
| int EditorSpatialGizmoPlugin::get_priority() const { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hugo Locurcio
						Hugo Locurcio