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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-18 12:03:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-18 12:03:24 +0300
commit9bdda427e6ffa2b07f924530b7d2a2db6adbb797 (patch)
tree69d04799288c73d4eb24e67bdc335666dd9203b3 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py
parent2fbc50e4c1714d393453209ff6c305c01bb3421f (diff)
PyAPI: remove bpy.utils.register_module()
In preparation for it being removed, see: T47811
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 4529c127839..83c27c1ccfc 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -1155,3 +1155,24 @@ class GreasePencilToolsPanel:
layout.separator()
gpencil_stroke_placement_settings(context, layout)
+
+
+classes = (
+ GPENCIL_MT_brush_specials,
+ GPENCIL_MT_gpencil_edit_specials,
+ GPENCIL_MT_layer_specials,
+ GPENCIL_MT_palettecolor_specials,
+ GPENCIL_MT_snap,
+ GPENCIL_PIE_sculpt,
+ GPENCIL_PIE_settings_palette,
+ GPENCIL_PIE_tool_palette,
+ GPENCIL_PIE_tools_more,
+ GPENCIL_UL_brush,
+ GPENCIL_UL_layer,
+ GPENCIL_UL_palettecolor,
+)
+
+if __name__ == "__main__": # only for live edit.
+ from bpy.utils import register_class
+ for cls in classes:
+ register_class(cls)