mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Abort threaded preview generators on exit
This commit is contained in:
		
							parent
							
								
									2b987d1c54
								
							
						
					
					
						commit
						e90ea87b42
					
				
					 5 changed files with 114 additions and 110 deletions
				
			
		|  | @ -295,6 +295,10 @@ void EditorMaterialPreviewPlugin::_preview_done() { | |||
| 	preview_done.post(); | ||||
| } | ||||
| 
 | ||||
| void EditorMaterialPreviewPlugin::abort() { | ||||
| 	preview_done.post(); | ||||
| } | ||||
| 
 | ||||
| bool EditorMaterialPreviewPlugin::handles(const String &p_type) const { | ||||
| 	return ClassDB::is_parent_class(p_type, "Material"); // Any material.
 | ||||
| } | ||||
|  | @ -690,6 +694,10 @@ void EditorMeshPreviewPlugin::_preview_done() { | |||
| 	preview_done.post(); | ||||
| } | ||||
| 
 | ||||
| void EditorMeshPreviewPlugin::abort() { | ||||
| 	preview_done.post(); | ||||
| } | ||||
| 
 | ||||
| bool EditorMeshPreviewPlugin::handles(const String &p_type) const { | ||||
| 	return ClassDB::is_parent_class(p_type, "Mesh"); // Any mesh.
 | ||||
| } | ||||
|  | @ -807,6 +815,10 @@ void EditorFontPreviewPlugin::_preview_done() { | |||
| 	preview_done.post(); | ||||
| } | ||||
| 
 | ||||
| void EditorFontPreviewPlugin::abort() { | ||||
| 	preview_done.post(); | ||||
| } | ||||
| 
 | ||||
| bool EditorFontPreviewPlugin::handles(const String &p_type) const { | ||||
| 	return ClassDB::is_parent_class(p_type, "Font"); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yuri Sizov
						Yuri Sizov