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:
authorThomas Dinges <blender@dingto.org>2011-09-10 02:47:26 +0400
committerThomas Dinges <blender@dingto.org>2011-09-10 02:47:26 +0400
commit015813642b5633fc6917d45fc4fbd5cf3a007345 (patch)
treea0698b3fe4e43254b7acca4911e35d0b91d1c721 /release/scripts/startup/bl_ui/properties_scene.py
parenta7f3e347b7799b73d19adeee0057fce783ca2f32 (diff)
Fixing bugs after Recast & Detour branch merge!!
* The new NAVMESH Modifier did not show any buttons, console printed errors instead! * Poll of "PHYSICS_PT_game_obstacles" panel caused errors as well, self instead of cls was used as argument. * Check to show/hide buttons in "WORLD_PT_game_physics_obstacles" panel did not worked due to wrong ENUM identifier ('None' instead if 'NONE') * Moved "SCENE_PT_navmesh" panel out of properties_scene.py into the properties_game.py where it belongs and renamed it. Also, don't use abreviations in Panel Headers (Navmesh > Navigaion Mesh) * Code cleanup, removed unnescecary code. * bpy.types.Panel > Panel
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_scene.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_scene.py71
1 files changed, 0 insertions, 71 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 001897c222f..66f967bb6e1 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -331,76 +331,5 @@ class ANIM_OT_keying_set_export(Operator):
wm.fileselect_add(self)
return {'RUNNING_MODAL'}
-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")
-
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)