From 4095e6a14c281f490bfed5cdd2e7cce7243cc1d5 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 10 Aug 2023 17:13:02 +0200 Subject: [PATCH] Fix incorrect parameter value passed to ID template This argument is a boolean, not an icon. Value of both would be 0. --- source/blender/modifiers/intern/MOD_volume_displace.cc | 2 +- source/blender/modifiers/intern/MOD_weightvg_util.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/modifiers/intern/MOD_volume_displace.cc b/source/blender/modifiers/intern/MOD_volume_displace.cc index 4f3c0640183..86867206c42 100644 --- a/source/blender/modifiers/intern/MOD_volume_displace.cc +++ b/source/blender/modifiers/intern/MOD_volume_displace.cc @@ -106,7 +106,7 @@ static void panel_draw(const bContext *C, Panel *panel) uiLayoutSetPropSep(layout, true); - uiTemplateID(layout, C, ptr, "texture", "texture.new", nullptr, nullptr, 0, ICON_NONE, nullptr); + uiTemplateID(layout, C, ptr, "texture", "texture.new", nullptr, nullptr, 0, false, nullptr); uiItemR(layout, ptr, "texture_map_mode", UI_ITEM_NONE, "Texture Mapping", ICON_NONE); if (vdmd->texture_map_mode == MOD_VOLUME_DISPLACE_MAP_OBJECT) { diff --git a/source/blender/modifiers/intern/MOD_weightvg_util.cc b/source/blender/modifiers/intern/MOD_weightvg_util.cc index fc2d31aeb27..dadbfc60600 100644 --- a/source/blender/modifiers/intern/MOD_weightvg_util.cc +++ b/source/blender/modifiers/intern/MOD_weightvg_util.cc @@ -334,7 +334,7 @@ void weightvg_ui_common(const bContext *C, PointerRNA *ob_ptr, PointerRNA *ptr, nullptr, nullptr, 0, - ICON_NONE, + false, IFACE_("Mask Texture")); if (has_mask_texture) {