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.
This commit is contained in:
Ryan Inch 2019-12-16 01:26:45 -05:00
parent a689eabdf5
commit a7acf9e1d3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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