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>2019-12-16 09:26:45 +0300
committerRyan Inch <mythologylover75@gmail.com>2019-12-16 09:26:45 +0300
commita7acf9e1d3ac63430b3a0671e106c0ec29d696fe (patch)
tree039c49538569e9c5730a0accfdd8d4f5b34866c5 /object_collection_manager
parenta689eabdf5a05ee28ccb419264a42f3872a07aa8 (diff)
Collection Manager: Fix bug with enabling toggle. Task: T69577
Fixes incorrect restoration of rto_history on disabling Phantom Mode which led to an error using the enabling toggles.
Diffstat (limited to 'object_collection_manager')
-rw-r--r--object_collection_manager/__init__.py2
-rw-r--r--object_collection_manager/operators.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py
index 4a6ea451..5f41598a 100644
--- a/object_collection_manager/__init__.py
+++ b/object_collection_manager/__init__.py
@@ -22,7 +22,7 @@ bl_info = {
"name": "Collection Manager",
"description": "Manage collections and their objects",
"author": "Ryan Inch",
- "version": (1,8,0),
+ "version": (1,8,1),
"blender": (2, 80, 0),
"location": "View3D - Object Mode (Shortcut - M)",
"warning": '', # used for warning icon and text in addons panel
diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py
index e5d08f98..05614625 100644
--- a/object_collection_manager/operators.py
+++ b/object_collection_manager/operators.py
@@ -1195,7 +1195,7 @@ class CMPhantomModeOperator(Operator):
# save current rto history
for rto, history, in rto_history.items():
- phantom_history[rto+"_history"] = history.get(view_layer, {}).copy()
+ phantom_history[rto+"_history"] = history.get(view_layer, [] if rto[-3:] == "all" else {}).copy()
# return to normal mode