mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
-fixed many memory initialization issues
-fixed deadlock on previews thread -fixed compilation errors on unix
This commit is contained in:
parent
14c4c1b568
commit
b524b40fdc
23 changed files with 80 additions and 41 deletions
|
|
@ -63,14 +63,15 @@ EditorTexturePreviewPlugin::EditorTexturePreviewPlugin() {
|
|||
|
||||
Ref<Texture> EditorPackedScenePreviewPlugin::_gen_from_imd(Ref<ResourceImportMetadata> p_imd) {
|
||||
|
||||
if (p_imd.is_null())
|
||||
if (p_imd.is_null()) {
|
||||
return Ref<Texture>();
|
||||
}
|
||||
|
||||
if (!p_imd->has_option("thumbnail"))
|
||||
return Ref<Texture>();
|
||||
|
||||
Variant tn = p_imd->get_option("thumbnail");
|
||||
print_line(Variant::get_type_name(tn.get_type()));
|
||||
//print_line(Variant::get_type_name(tn.get_type()));
|
||||
DVector<uint8_t> thumbnail = tn;
|
||||
|
||||
int len = thumbnail.size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue