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-03-16 09:48:02 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-03-16 09:48:02 +0300
commitb752de9e0da4e8ad694de25497275f66168a2df4 (patch)
tree8a8f5471e22cf2a1037f0fea1a74149dbff461cc /object_collection_manager/operators.py
parenta35d66c1337ae5e3f86f11a760ad24770386f9a9 (diff)
Collection Manager: Add QCD System. Task: T69577
Adds a Quick Content Display (QCD) system to the Collection Manager. This consists of a 3D View Header widget and a floating panel similar to the layers system in blender 2.7x, along with hotkeys to view/move objects to QCD slots, and additions to the main Collection Manager popup to allow you to manage which collections correspond to which slots.
Diffstat (limited to 'object_collection_manager/operators.py')
-rw-r--r--object_collection_manager/operators.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py
index 473a5908..067a5277 100644
--- a/object_collection_manager/operators.py
+++ b/object_collection_manager/operators.py
@@ -35,6 +35,7 @@ from bpy.props import (
from .internals import (
expanded,
layer_collections,
+ qcd_slots,
update_property_group,
get_modifiers,
send_report,
@@ -1418,6 +1419,7 @@ class CMRemoveCollectionOperator(Operator):
def execute(self, context):
global rto_history
+ global qcd_slots
cm = context.scene.collection_manager
@@ -1448,6 +1450,13 @@ class CMRemoveCollectionOperator(Operator):
update_property_group(context)
+ # update qcd
+ if self.collection_name in qcd_slots:
+ qcd_slots.del_slot(self.collection_name)
+
+ if self.collection_name in qcd_slots.overrides:
+ del qcd_slots.overrides[self.collection_name]
+
# reset history
for rto in rto_history.values():
rto.clear()