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:
parent
a689eabdf5
commit
a7acf9e1d3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue