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_data_mesh.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_data_mesh.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_mesh.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 59907692fe0..8647d5d6644 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -392,5 +392,24 @@ class DATA_PT_custom_props_mesh(MeshButtonsPanel, PropertyPanel, Panel):
_property_type = bpy.types.Mesh
+classes = (
+ DATA_PT_context_mesh,
+ DATA_PT_custom_props_mesh,
+ DATA_PT_customdata,
+ DATA_PT_normals,
+ DATA_PT_shape_keys,
+ DATA_PT_texture_space,
+ DATA_PT_uv_texture,
+ DATA_PT_vertex_colors,
+ DATA_PT_vertex_groups,
+ MESH_MT_shape_key_specials,
+ MESH_MT_vertex_group_specials,
+ MESH_UL_shape_keys,
+ MESH_UL_uvmaps_vcols,
+ MESH_UL_vgroups,
+)
+
if __name__ == "__main__": # only for live edit.
- bpy.utils.register_module(__name__)
+ from bpy.utils import register_class
+ for cls in classes:
+ register_class(cls)