From a7acf9e1d3ac63430b3a0671e106c0ec29d696fe Mon Sep 17 00:00:00 2001 From: Ryan Inch <mythologylover75@gmail.com> Date: Mon, 16 Dec 2019 01:26:45 -0500 Subject: [PATCH] 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. --- object_collection_manager/__init__.py | 2 +- object_collection_manager/operators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index 4a6ea451e..5f41598a8 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 e5d08f983..056146257 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 -- GitLab