Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilStrezikozin committed Feb 22, 2023
1 parent 4ad4f70 commit de928ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@ class BM_Object(bpy.types.PropertyGroup):

matgroups_batch_naming_type : bpy.props.EnumProperty(
name="Mat Groups naming",
description="How to name material groups in the output image batch name if it contains $matgroups",
description="How to name material groups in the output image batch name if it contains $matgroup tag",
default='GROUP_INDEX',
items=[('GROUP_INDEX', 'Index', "Put material group index into the batch name"),
('GROUP_NAMES', 'Materials names', "Put material names with the same group index into the batch name")],
Expand Down
5 changes: 3 additions & 2 deletions ui_panel_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def invoke(self, context, event):

class BM_UL_Table_of_MatGroups_Item(bpy.types.UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
split = layout.row().split(factor=1.0 - 0.12*len(str(item.global_group_index)))
factor=1.0 - 0.13*len(str(item.global_group_index))
split = layout.row().split(factor=factor)
split.column().label(text=item.global_material_name + " ", icon='MATERIAL')
index_column = split.column()
index_column.prop(item, 'global_group_index', text="")
Expand Down Expand Up @@ -842,7 +843,7 @@ def draw(self, context):
# matgroups body
if scene.bm_props.global_is_matgroups_panel_expanded:
# maps table
mg_table_box = layout.box()
mg_table_box = matgroups_box.box()
mg_table_row = mg_table_box.row()

rows = BM_template_list_get_rows(object.matgroups_table_of_mats, 4, 0, 5, False)
Expand Down

1 comment on commit de928ff

@KirilStrezikozin
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finishing #25

Please sign in to comment.