diff options
Diffstat (limited to 'object_collection_manager/qcd_operators.py')
-rw-r--r-- | object_collection_manager/qcd_operators.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/object_collection_manager/qcd_operators.py b/object_collection_manager/qcd_operators.py index 208e5ae0..53212920 100644 --- a/object_collection_manager/qcd_operators.py +++ b/object_collection_manager/qcd_operators.py @@ -201,15 +201,17 @@ class ViewQCDSlot(Operator): locked_objs_mode = "" for obj in context.view_layer.objects: if obj.mode != 'OBJECT': - locked_objs.append(obj) - locked_objs_mode = obj.mode + if obj.mode not in ['POSE', 'WEIGHT_PAINT'] or obj == locked_active_obj: + locked_objs.append(obj) + locked_objs_mode = obj.mode if self.toggle: # check if slot can be toggled off. for obj in qcd_laycol.collection.objects: if obj.mode != 'OBJECT': - return {'CANCELLED'} + if obj.mode not in ['POSE', 'WEIGHT_PAINT'] or obj == locked_active_obj: + return {'CANCELLED'} # get current child exclusion state child_exclusion = [] |