mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fix an exception when trying to close down editor with plugins enabled.
This commit is contained in:
		
							parent
							
								
									05a4310899
								
							
						
					
					
						commit
						daf443bcbc
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -439,11 +439,11 @@ void EditorAutoloadSettings::update_autoload() { | ||||||
| 		} | 		} | ||||||
| 		if (info.in_editor) { | 		if (info.in_editor) { | ||||||
| 			ERR_CONTINUE(!info.node); | 			ERR_CONTINUE(!info.node); | ||||||
| 			get_tree()->get_root()->remove_child(info.node); | 			get_tree()->get_root()->call_deferred("remove_child", info.node); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if (info.node) { | 		if (info.node) { | ||||||
| 			memdelete(info.node); | 			info.node->queue_delete(); | ||||||
| 			info.node = NULL; | 			info.node = NULL; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Saracen
						Saracen