Fix incorrect parameter value passed to ID template

This argument is a boolean, not an icon. Value of both would be 0.
This commit is contained in:
Julian Eisel
2023-08-10 17:13:02 +02:00
parent ff636ed092
commit 4095e6a14c
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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) {