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-05-04 10:55:49 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-05-04 10:55:49 +0300
commitb7bb14aa7caa8c8deb196bbc7907b82f24b6cb60 (patch)
tree31f4e6c04b071c85e48220696077d253c1c839e9
parent5ec31459289eaa4031dc32ac39b93b80855fa9ed (diff)
Collection Manager: Fix tooltips. Task: T69577
-rw-r--r--object_collection_manager/__init__.py2
-rw-r--r--object_collection_manager/operators.py17
-rw-r--r--object_collection_manager/qcd_operators.py2
3 files changed, 18 insertions, 3 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py
index 2caf6bc7..242ca1aa 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": (2, 7, 18),
+ "version": (2, 7, 19),
"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 1d60d60c..ce39867e 100644
--- a/object_collection_manager/operators.py
+++ b/object_collection_manager/operators.py
@@ -926,13 +926,28 @@ class CMRemoveCollectionOperator(Operator):
rename = [False]
class CMNewCollectionOperator(Operator):
- '''Add New Collection'''
bl_label = "Add New Collection"
bl_idname = "view3d.add_collection"
bl_options = {'UNDO'}
child: BoolProperty()
+ @classmethod
+ def description(cls, context, properties):
+ if properties.child:
+ tooltip = (
+ "Add New SubCollection.\n"
+ "Add a new subcollection to the currently selected collection"
+ )
+
+ else:
+ tooltip = (
+ "Add New Collection.\n"
+ "Add a new collection as a sibling of the currently selected collection"
+ )
+
+ return tooltip
+
def execute(self, context):
global rto_history
diff --git a/object_collection_manager/qcd_operators.py b/object_collection_manager/qcd_operators.py
index ba299a65..9d5242e5 100644
--- a/object_collection_manager/qcd_operators.py
+++ b/object_collection_manager/qcd_operators.py
@@ -142,7 +142,7 @@ class ViewMoveQCDSlot(Operator):
hotkey_string = (
" * Shift+LMB - Toggle QCD slot.\n"
" * Ctrl+LMB - Move objects to QCD slot.\n"
- " * Ctrl+Shift+Click - Toggle objects' slot"
+ " * Ctrl+Shift+LMB - Toggle objects' slot"
)
return f"{slot_string}{hotkey_string}"