aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/scene_format_text.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-17 01:13:23 -0300
committerJuan Linietsky2016-06-17 01:13:23 -0300
commitf0d9245ecf981dada4595da0e525cc95a0caf785 (patch)
tree037a745f42c5b89a1fcae1166b10a17c90883254 /scene/resources/scene_format_text.cpp
parent816b3fa94de91fb671b58d7cda57f10104a682da (diff)
downloadgodot-f0d9245ecf981dada4595da0e525cc95a0caf785.tar.gz
godot-f0d9245ecf981dada4595da0e525cc95a0caf785.tar.zst
godot-f0d9245ecf981dada4595da0e525cc95a0caf785.zip
Diffstat (limited to 'scene/resources/scene_format_text.cpp')
-rw-r--r--scene/resources/scene_format_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index f9f7f7807..99daa1b31 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -1263,7 +1263,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path,const RES& p_re
if ((PE->get().usage&PROPERTY_USAGE_STORE_IF_NONZERO && value.is_zero())||(PE->get().usage&PROPERTY_USAGE_STORE_IF_NONONE && value.is_one()) )
continue;
- if (PE->get().type==Variant::OBJECT && value.is_zero())
+ if (PE->get().type==Variant::OBJECT && value.is_zero() && (!PE->get().usage&PROPERTY_USAGE_STORE_IF_NULL))
continue;
String vars;