Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilStrezikozin committed Feb 18, 2023
1 parent 2cb6ecd commit 418f1b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def execute(self, context):

### constructing new Table_of_Objects items
for index, shell in enumerate(groups):
new_container = BM_Table_of_Objects_Add(scene, context)
universal_container = BM_Table_of_Objects_Add(scene, context)

# name is set to the root_name of the first object in the shell
universal_container.nm_container_name_old = BM_ITEM_PROPS_nm_container_name_GlobalUpdate_OnCreate(context, CombineToRaw(roots[shell[0]][0]))
Expand Down
9 changes: 2 additions & 7 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,12 +659,7 @@ def BM_ITEM_PROPS_nm_uni_container_is_global_Update(self, context):
for map_index, map in enumerate(object.global_maps):
to_remove.append(map_index)
for map_index in sorted(to_remove, reverse=True):
# unset highpolies
BM_ITEM_PROPS_hl_highpoly_SyncedRemoval(context, map_index, 'MAP', False)
# update use_cage
BM_ITEM_PROPS_hl_cage_UpdateOnRemove(context, map_index, 'MAP')
object.global_maps.remove(map_index)
BM_ITEM_PROPS_hl_highpoly_EnsureHighpolyMarked(context)
BM_Table_of_Maps_Remove(object.global_maps, context, map_index)
object.global_maps_active_index = 0

# add
Expand Down Expand Up @@ -2255,7 +2250,7 @@ def BM_ITEM_PROPS_hl_highpoly_unset_none(context, container):

for index in sorted(to_remove, reverse=True):
container.hl_highpoly_table.remove(index)
container.hl_highpoly_table_active_index = highpoly_index
container.hl_highpoly_table_active_index = highpoly_index - 1

def BM_ITEM_PROPS_hl_highpoly_UpdateOnAddOT(context):
for object in context.scene.bm_table_of_objects:
Expand Down

0 comments on commit 418f1b7

Please sign in to comment.