Skip to content

Commit

Permalink
Fix #109
Browse files Browse the repository at this point in the history
* Fix #109

* Bump version 0.27.1
  • Loading branch information
Mustard2 authored Oct 26, 2023
1 parent 3f642e8 commit 72f08a7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mustard_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"name": "MustardUI",
"description": "Create a MustardUI for a human character.",
"author": "Mustard",
"version": (0, 27, 0),
"version": (0, 27, 1),
"blender": (3, 5, 0),
"warning": "",
"doc_url": "https://github.com/Mustard2/MustardUI",
"category": "User Interface",
}
mustardui_buildnum = "031"
mustardui_buildnum = "001"

import bpy
import addon_utils
Expand Down Expand Up @@ -589,15 +589,18 @@ def outfits_visibility_update(self, context):

for collection in [x.collection for x in rig_settings.outfits_collections if x.collection != None]:

items = collection.all_objects if rig_settings.outfit_config_subcollections else collection.objects
locked_items = [x for x in items if x.MustardUI_outfit_lock]
items = {}
for obj in (collection.all_objects if rig_settings.outfit_config_subcollections else collection.objects):
items[obj.name] = obj

locked_items = [items[x] for x in items if items[x].MustardUI_outfit_lock]

locked_collection = len(locked_items)>0

collection.hide_viewport = not (collection.name == outfits_list or locked_collection)
collection.hide_render = not (collection.name == outfits_list or locked_collection)

for obj in items:
for _, obj in items.items():

if locked_collection and collection.name != outfits_list:

Expand Down

0 comments on commit 72f08a7

Please sign in to comment.