diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-18 12:03:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-18 12:03:24 +0300 |
commit | 9bdda427e6ffa2b07f924530b7d2a2db6adbb797 (patch) | |
tree | 69d04799288c73d4eb24e67bdc335666dd9203b3 /release/scripts/startup/bl_ui/properties_object.py | |
parent | 2fbc50e4c1714d393453209ff6c305c01bb3421f (diff) |
PyAPI: remove bpy.utils.register_module()
In preparation for it being removed, see: T47811
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_object.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py index 4a596981983..099b82e000e 100644 --- a/release/scripts/startup/bl_ui/properties_object.py +++ b/release/scripts/startup/bl_ui/properties_object.py @@ -366,5 +366,23 @@ class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel): _context_path = "object" _property_type = bpy.types.Object + +classes = ( + GROUP_MT_specials, + OBJECT_PT_context_object, + OBJECT_PT_custom_props, + OBJECT_PT_delta_transform, + OBJECT_PT_display, + OBJECT_PT_duplication, + OBJECT_PT_groups, + OBJECT_PT_motion_paths, + OBJECT_PT_relations, + OBJECT_PT_relations_extras, + OBJECT_PT_transform, + OBJECT_PT_transform_locks, +) + 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) |