You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Abort threaded preview generators on exit
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user