[Bf-extensions-cvs] [a7acf9e1] master: Collection Manager: Fix bug with enabling toggle. Task: T69577

Ryan Inch noreply at git.blender.org
Mon Dec 16 07:32:37 CET 2019


Commit: a7acf9e1d3ac63430b3a0671e106c0ec29d696fe
Author: Ryan Inch
Date:   Mon Dec 16 01:26:45 2019 -0500
Branches: master
https://developer.blender.org/rBAa7acf9e1d3ac63430b3a0671e106c0ec29d696fe

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.

===================================================================

M	object_collection_manager/__init__.py
M	object_collection_manager/operators.py

===================================================================

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



More information about the Bf-extensions-cvs mailing list