mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Fix crash in ~EditorSpatialGizmoPlugin when generating documentation data
This commit is contained in:
		
							parent
							
								
									3481c47e71
								
							
						
					
					
						commit
						faf0a49cbf
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -4062,7 +4062,6 @@ void _update_all_gizmos(Node *p_node) { | |||
| 
 | ||||
| void SpatialEditor::update_all_gizmos(Node *p_node) { | ||||
| 	if (!p_node) { | ||||
| 		if (!SceneTree::get_singleton()) return; | ||||
| 		p_node = SceneTree::get_singleton()->get_root(); | ||||
| 	} | ||||
| 	_update_all_gizmos(p_node); | ||||
|  | @ -6269,5 +6268,7 @@ EditorSpatialGizmoPlugin::~EditorSpatialGizmoPlugin() { | |||
| 		current_gizmos[i]->set_plugin(NULL); | ||||
| 		current_gizmos[i]->get_spatial_node()->set_gizmo(NULL); | ||||
| 	} | ||||
| 	SpatialEditor::get_singleton()->update_all_gizmos(); | ||||
| 	if (SpatialEditor::get_singleton()) { | ||||
| 		SpatialEditor::get_singleton()->update_all_gizmos(); | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Bojidar Marinov
						Bojidar Marinov