diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-02-16 17:38:42 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-02-16 17:51:37 +0300 |
commit | 8971018eb64a68119687c74db875fd45f89cbdf8 (patch) | |
tree | 8f960e3eaa76edffe279322d4a9e8b0e5497d212 /release | |
parent | e81fca1ed38ea447a1023dae3841f8980def28e4 (diff) |
UI: Add support for bl_description for panels
This commit adds support for `bl_description` and python docstrings for panels.
This is useful for pop-over panel types so they can have a label and description.
This commit also includes an example use case.
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D10429
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_properties.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_properties.py b/release/scripts/startup/bl_ui/space_properties.py index 053df113dd7..b7d5b5007d6 100644 --- a/release/scripts/startup/bl_ui/space_properties.py +++ b/release/scripts/startup/bl_ui/space_properties.py @@ -72,9 +72,10 @@ class PROPERTIES_PT_navigation_bar(Panel): class PROPERTIES_PT_options(Panel): + """Show options for the properties editor""" bl_space_type = 'PROPERTIES' bl_region_type = 'HEADER' - bl_label = 'Show options for the properties editor' + bl_label = "Options" def draw(self, context): layout = self.layout |