summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2016-08-28 16:43:00 +0900
committervolzhs <volzhs@gmail.com>2016-08-28 20:25:35 +0900
commit85f373691ffe1f1a3080435fd378720615068fae (patch)
treef8d3c728d4cce9d2ab0984b2b4a142b3679e8a90 /tools
parent449ad2b37a1aeb49029b500f4cf8471ce25f3d1f (diff)
check "disable_filter" option for backward compatibility
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/io_plugins/editor_font_import_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/io_plugins/editor_font_import_plugin.cpp b/tools/editor/io_plugins/editor_font_import_plugin.cpp
index 888186192f..df3741f0d4 100644
--- a/tools/editor/io_plugins/editor_font_import_plugin.cpp
+++ b/tools/editor/io_plugins/editor_font_import_plugin.cpp
@@ -1592,6 +1592,9 @@ Ref<BitmapFont> EditorFontImportPlugin::generate_font(const Ref<ResourceImportMe
int top_space = from->get_option("extra_space/top");
int bottom_space = from->get_option("extra_space/bottom");
bool enable_filter = from->get_option("advanced/enable_filter");
+ if (from->has_option("advanced/disable_filter")){ // this is a compatibility check for a deprecated option
+ enable_filter = !from->get_option("advanced/disable_filter");
+ }
Ref<BitmapFont> font;