diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-17 01:13:23 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-17 01:13:23 -0300 |
commit | f0d9245ecf981dada4595da0e525cc95a0caf785 (patch) | |
tree | 037a745f42c5b89a1fcae1166b10a17c90883254 /scene/resources/scene_format_text.cpp | |
parent | 816b3fa94de91fb671b58d7cda57f10104a682da (diff) | |
download | redot-engine-f0d9245ecf981dada4595da0e525cc95a0caf785.tar.gz |
-added missing .inc files
-Made it possible to change the editor theme
-Added two options to theme editor plugin to create empty template themes and editor themes
-Make sure that saved themes to .tres keep the null theme fields, to make it easier to keep those when saving/loading the theme
Diffstat (limited to 'scene/resources/scene_format_text.cpp')
-rw-r--r-- | scene/resources/scene_format_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index f9f7f7807d..99daa1b31b 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; |