Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Inch <mythologylover75@gmail.com>2020-09-26 10:20:53 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-09-26 10:20:53 +0300
commitbf176041da95d4b07d74727acb78f7cf6a46785e (patch)
tree23ac07c7a260172f8767c2f31c63404d9cf61870 /object_collection_manager/operators.py
parent3d2076556a73af15779fc06630a3254fd584af02 (diff)
Collection Manager: Add QVT. Task: T69577
Add Quick View Toggles for influencing QCD setup, e.g. enable all slots. Fix bugs with QCD slot switching. Fix the active object sometimes getting lost when toggling slots.
Diffstat (limited to 'object_collection_manager/operators.py')
-rw-r--r--object_collection_manager/operators.py19
1 files changed, 2 insertions, 17 deletions
diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py
index 1e265e52..b18fc44a 100644
--- a/object_collection_manager/operators.py
+++ b/object_collection_manager/operators.py
@@ -66,6 +66,7 @@ from .operator_utils import (
link_child_collections_to_parent,
remove_collection,
select_collection_objects,
+ set_exclude_state,
)
class SetActiveCollection(Operator):
@@ -424,23 +425,7 @@ class CMExcludeOperator(Operator):
# reset exclude history
del rto_history["exclude"][view_layer]
-
- # get current child exclusion state
- child_exclusion = []
-
- def get_child_exclusion(layer_collection):
- child_exclusion.append([layer_collection, layer_collection.exclude])
-
- apply_to_children(laycol_ptr, get_child_exclusion)
-
-
- # toggle exclusion of collection
- laycol_ptr.exclude = not laycol_ptr.exclude
-
-
- # set correct state for all children
- for laycol in child_exclusion:
- laycol[0].exclude = laycol[1]
+ set_exclude_state(laycol_ptr, not laycol_ptr.exclude)
cls.isolated = False