mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Better fix
This commit is contained in:
		
							parent
							
								
									aa929bc1f1
								
							
						
					
					
						commit
						f77349a4c2
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -32,6 +32,8 @@ void MeshInstanceEditor::_menu_option(int p_option) { | |||
| 
 | ||||
| 	Ref<Mesh> mesh = node->get_mesh(); | ||||
| 	if (mesh.is_null()) { | ||||
| 		err_dialog->set_text("Mesh is empty!"); | ||||
| 		err_dialog->popup_centered(Size2(100,80)); | ||||
| 		return; | ||||
| 	} | ||||
| 
 | ||||
|  | @ -238,6 +240,9 @@ MeshInstanceEditor::MeshInstanceEditor() { | |||
| 	add_child(outline_dialog); | ||||
| 	outline_dialog->connect("confirmed",this,"_create_outline_mesh"); | ||||
| 
 | ||||
| 	err_dialog = memnew( AcceptDialog ); | ||||
| 	add_child(err_dialog); | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Franklin Sobrinho
						Franklin Sobrinho