synched with trunk at revision 34793
authorNick Samarin <nicks1987@bigmir.net>
Wed, 16 Feb 2011 16:56:11 +0000 (16:56 +0000)
committerNick Samarin <nicks1987@bigmir.net>
Wed, 16 Feb 2011 16:56:11 +0000 (16:56 +0000)
1  2 
release/scripts/ui/properties_data_modifier.py
release/scripts/ui/properties_game.py
release/scripts/ui/properties_scene.py

@@@ -515,22 -508,9 +533,22 @@@ class WORLD_PT_game_physics(WorldButton
              col.label(text="Logic Steps:")
              col.prop(gs, "logic_step_max", text="Max")
  
 +class WORLD_PT_game_physics_obstacles(WorldButtonsPanel, bpy.types.Panel):
 +    bl_label = "Obstacle simulation"
 +    COMPAT_ENGINES = {'BLENDER_GAME'}
 +
 +    def draw(self, context):
 +        layout = self.layout
 +
 +        gs = context.scene.game_settings
 +
 +        layout.prop(gs, "obstacle_simulation", text = "Type")
 +        if gs.obstacle_simulation != 'None':
 +            layout.prop(gs, "level_height")
 +            layout.prop(gs, "show_obstacle_simulation")
  
  def register():
-     pass
+     bpy.utils.register_module(__name__)
  
  
  def unregister():
@@@ -306,83 -306,12 +306,83 @@@ class ANIM_OT_keying_set_export(bpy.typ
  
      def invoke(self, context, event):
          wm = context.window_manager
-         wm.add_fileselect(self)
+         wm.fileselect_add(self)
          return {'RUNNING_MODAL'}
  
-     COMPAT_ENGINES = {'BLENDER_RENDER'}
 +class SCENE_PT_navmesh(SceneButtonsPanel, bpy.types.Panel):
 +    bl_label = "Navmesh"
 +    bl_default_closed = True
++    COMPAT_ENGINES = {'BLENDER_GAME'}
 +
 +    def draw(self, context):
 +        layout = self.layout
 +
 +        rd = context.scene.game_settings.recast_data
 +
 +        layout.operator("object.create_navmesh", text='Build navigation mesh')
 +
 +        layout.label(text="Rasterization:")
 +        split = layout.split()
 +
 +        col = split.column()
 +        col.prop(rd, "cell_size")
 +        col = split.column()
 +        col.prop(rd, "cell_height")
 +
 +        layout.separator()
 +
 +        layout.label(text="Agent:")
 +        split = layout.split()
 +
 +        col = split.column()
 +        row = col.row()
 +        row.prop(rd, "agent_height")
 +        row = col.row()
 +        row.prop(rd, "agent_radius")
 +
 +        col = split.column()
 +        row = col.row()
 +        row.prop(rd, "max_slope")
 +        row = col.row()
 +        row.prop(rd, "max_climb")
 +
 +        layout.separator()
 +
 +        layout.label(text="Region:")
 +        split = layout.split()
 +        col = split.column()
 +        col.prop(rd, "region_min_size")
 +
 +        col = split.column()
 +        col.prop(rd, "region_merge_size")
 +
 +        layout.separator()
 +
 +        layout.label(text="Polygonization:")
 +        split = layout.split()
 +        col = split.column()
 +        row = col.row()
 +        row.prop(rd, "edge_max_len")
 +        row = col.row()
 +        row.prop(rd, "edge_max_error")
 +
 +        col = split.column()
 +        row = col.row()
 +        row.prop(rd, "verts_per_poly")
 +
 +        layout.separator()
 +
 +        layout.label(text="Detail Mesh:")
 +        split = layout.split()
 +        col = split.column()
 +        col.prop(rd, "sample_dist")
 +
 +        col = split.column()
 +        col.prop(rd, "sample_max_error")
 +
  
  def register():
-     pass
+     bpy.utils.register_module(__name__)
  
  
  def unregister():