mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Fix crashes, ability to add blendpsace into blendtree, ability to delete with delete key
This commit is contained in:
		
							parent
							
								
									a0719533bd
								
							
						
					
					
						commit
						b80946ee0d
					
				
					 6 changed files with 112 additions and 48 deletions
				
			
		|  | @ -1309,7 +1309,11 @@ bool EditorNode::item_has_editor(Object *p_object) { | |||
| 
 | ||||
| void EditorNode::edit_item(Object *p_object) { | ||||
| 
 | ||||
| 	Vector<EditorPlugin *> sub_plugins = editor_data.get_subeditors(p_object); | ||||
| 	Vector<EditorPlugin *> sub_plugins; | ||||
| 
 | ||||
| 	if (p_object) { | ||||
| 		sub_plugins = editor_data.get_subeditors(p_object); | ||||
| 	} | ||||
| 
 | ||||
| 	if (!sub_plugins.empty()) { | ||||
| 		_display_top_editors(false); | ||||
|  | @ -1317,6 +1321,8 @@ void EditorNode::edit_item(Object *p_object) { | |||
| 		_set_top_editors(sub_plugins); | ||||
| 		_set_editing_top_editors(p_object); | ||||
| 		_display_top_editors(true); | ||||
| 	} else { | ||||
| 		_hide_top_editors(); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky