diff options
Diffstat (limited to 'object_collection_manager/operators.py')
-rw-r--r-- | object_collection_manager/operators.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/object_collection_manager/operators.py b/object_collection_manager/operators.py index 642860fa..1025535e 100644 --- a/object_collection_manager/operators.py +++ b/object_collection_manager/operators.py @@ -1099,3 +1099,15 @@ class CMPhantomModeOperator(Operator): return {'FINISHED'} + + +class CMApplyPhantomModeOperator(Operator): + '''Make all changes made in Phantom Mode permanent''' + bl_label = "Apply Phantom Mode" + bl_idname = "view3d.apply_phantom_mode" + + def execute(self, context): + cm = context.scene.collection_manager + cm.in_phantom_mode = False + + return {'FINISHED'} |