From bfede1c0602dce5ba5b2eec00f6606ae441b56de Mon Sep 17 00:00:00 2001 From: totlmstr Date: Sat, 8 Aug 2020 12:43:47 -0700 Subject: [PATCH] Add missing #ifdef MODULE_SVG_ENABLED --- editor/editor_themes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index a93763810b5..8d54bc80219 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -85,7 +85,8 @@ static Ref make_line_stylebox(Color p_color, int p_thickness = 1, return style; } -Ref editor_generate_icon(int p_index, bool p_convert_color, float p_scale = EDSCALE, bool p_force_filter = false) { +#ifdef MODULE_SVG_ENABLED +static Ref editor_generate_icon(int p_index, bool p_convert_color, float p_scale = EDSCALE, bool p_force_filter = false) { Ref icon = memnew(ImageTexture); Ref img = memnew(Image); @@ -99,6 +100,7 @@ Ref editor_generate_icon(int p_index, bool p_convert_color, float return icon; } +#endif #ifndef ADD_CONVERT_COLOR #define ADD_CONVERT_COLOR(dictionary, old_color, new_color) dictionary[Color::html(old_color)] = Color::html(new_color)