Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Inch <mythologylover75@gmail.com>2020-10-25 08:14:53 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-10-25 08:14:53 +0300
commit7cc2e4b14f8855659b611d3da1d0dc702618d43f (patch)
treea13096731e21b3fe17ca327e8b4be3b1d35f53f0 /object_collection_manager/qcd_init.py
parent8488f40e0b1f27acba8185e44c1b8566c388516c (diff)
Collection Manager: Add disable override. Task: T69577.
Add an override checkbox to the preferences to override the object hiding hotkeys with object disabling hotkeys and add menu items to the Object->Show/Hide menu for the disable object operators. Disabling objects is needed to preserve their visibility state when excluding and unexcluding collections. This makes it easier to disable objects, and disabling objects prevents QCD slot switching from resetting the objects visibility state.
Diffstat (limited to 'object_collection_manager/qcd_init.py')
-rw-r--r--object_collection_manager/qcd_init.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/object_collection_manager/qcd_init.py b/object_collection_manager/qcd_init.py
index 3a8dfc2f..41363b7b 100644
--- a/object_collection_manager/qcd_init.py
+++ b/object_collection_manager/qcd_init.py
@@ -18,16 +18,27 @@
# Copyright 2011, Ryan Inch
+if "bpy" in locals():
+ import importlib
+
+ importlib.reload(internals)
+ importlib.reload(qcd_move_widget)
+ importlib.reload(qcd_operators)
+ importlib.reload(ui)
+ importlib.reload(preferences)
+
+else:
+ from . import internals
+ from . import qcd_move_widget
+ from . import qcd_operators
+ from . import ui
+ from . import preferences
+
import os
import bpy
import bpy.utils.previews
from bpy.app.handlers import persistent
-from . import internals
-from . import preferences
-from . import qcd_move_widget
-from . import qcd_operators
-from . import ui
addon_qcd_keymaps = []
addon_qcd_view_hotkey_keymaps = []