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:
Diffstat (limited to 'object_collection_manager/operators.py')
-rw-r--r--object_collection_manager/operators.py17
1 files changed, 16 insertions, 1 deletions
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