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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user