From a24f52c51cff4e11a65298363de8cb0fa7260814 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Sat, 28 Mar 2020 16:40:09 -0400 Subject: Fix T75088: Add tooltips for custom properties --- release/scripts/startup/bl_operators/wm.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'release') diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 335a2a633cd..6e3b883aa8a 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1147,22 +1147,26 @@ rna_property = StringProperty( rna_min = FloatProperty( name="Min", + description="Minimum value of the property", default=-10000.0, precision=3, ) rna_max = FloatProperty( name="Max", + description="Maximum value of the property", default=10000.0, precision=3, ) rna_use_soft_limits = BoolProperty( name="Use Soft Limits", + description="Limits the Property Value slider to a range, values outside the range must be inputed numerically", ) rna_is_overridable_library = BoolProperty( name="Is Library Overridable", + description="Allow the property to be overridden when the Data-Block is linked", default=False, ) @@ -1177,6 +1181,7 @@ rna_vector_subtype_items = ( class WM_OT_properties_edit(Operator): + """Edit the attributes of the property""" bl_idname = "wm.properties_edit" bl_label = "Edit Property" # register only because invoke_props_popup requires. @@ -1468,6 +1473,7 @@ class WM_OT_properties_edit(Operator): class WM_OT_properties_add(Operator): + """Add your own property to the data-block""" bl_idname = "wm.properties_add" bl_label = "Add Property" bl_options = {'UNDO', 'INTERNAL'} -- cgit v1.2.3