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_scene.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_scene.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index d6253ec7fbc..7268a68a724 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -443,5 +443,25 @@ class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel): _context_path = "scene" _property_type = bpy.types.Scene + +classes = ( + SCENE_MT_units_length_presets, + SCENE_PT_audio, + SCENE_PT_color_management, + SCENE_PT_custom_props, + SCENE_PT_keying_set_paths, + SCENE_PT_keying_sets, + SCENE_PT_physics, + SCENE_PT_rigid_body_cache, + SCENE_PT_rigid_body_field_weights, + SCENE_PT_rigid_body_world, + SCENE_PT_scene, + SCENE_PT_simplify, + SCENE_PT_unit, + SCENE_UL_keying_set_paths, +) + 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) |