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_game.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_game.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_game.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py
index ec061370fe5..2e309a10940 100644
--- a/release/scripts/startup/bl_ui/properties_game.py
+++ b/release/scripts/startup/bl_ui/properties_game.py
@@ -852,5 +852,30 @@ class OBJECT_PT_levels_of_detail(ObjectButtonsPanel, Panel):
row.menu("OBJECT_MT_lod_tools", text="", icon='TRIA_DOWN')
+classes = (
+ DATA_PT_shadow_game,
+ OBJECT_MT_lod_tools,
+ OBJECT_PT_levels_of_detail,
+ PHYSICS_PT_game_collision_bounds,
+ PHYSICS_PT_game_obstacles,
+ PHYSICS_PT_game_physics,
+ RENDER_PT_embedded,
+ RENDER_PT_game_display,
+ RENDER_PT_game_player,
+ RENDER_PT_game_shading,
+ RENDER_PT_game_stereo,
+ RENDER_PT_game_system,
+ SCENE_PT_game_hysteresis,
+ SCENE_PT_game_navmesh,
+ SCENE_PT_game_physics,
+ SCENE_PT_game_physics_obstacles,
+ WORLD_PT_game_context_world,
+ WORLD_PT_game_environment_lighting,
+ WORLD_PT_game_mist,
+ WORLD_PT_game_world,
+)
+
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)