Allow change import type without restarting editor
This commit is contained in:
parent
46424488ed
commit
244968c8d1
4 changed files with 87 additions and 16 deletions
|
|
@ -1775,9 +1775,9 @@ void ResourceFormatSaverBinaryInstance::write_variant(Ref<FileAccess> f, const V
|
|||
case Variant::OBJECT: {
|
||||
f->store_32(VARIANT_OBJECT);
|
||||
Ref<Resource> res = p_property;
|
||||
if (res.is_null()) {
|
||||
if (res.is_null() || res->get_meta(SNAME("_skip_save_"), false)) {
|
||||
f->store_32(OBJECT_EMPTY);
|
||||
return; // don't save it
|
||||
return; // Don't save it.
|
||||
}
|
||||
|
||||
if (!res->is_built_in()) {
|
||||
|
|
@ -1942,7 +1942,7 @@ void ResourceFormatSaverBinaryInstance::_find_resources(const Variant &p_variant
|
|||
case Variant::OBJECT: {
|
||||
Ref<Resource> res = p_variant;
|
||||
|
||||
if (res.is_null() || external_resources.has(res)) {
|
||||
if (res.is_null() || external_resources.has(res) || res->get_meta(SNAME("_skip_save_"), false)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue