navmesh: solve bad level calls to edit mesh functions

Move navmesh operators from editors/object to editors/mesh
This commit is contained in:
Sergey Sharybin
2011-09-27 09:09:52 +00:00
parent a25c7f647e
commit dcccf3fc1f
10 changed files with 52 additions and 53 deletions

View File

@@ -380,8 +380,8 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
col.prop(md, "mirror_object", text="")
def NAVMESH(self, layout, ob, md):
layout.operator("object.assign_navpolygon")
layout.operator("object.assign_new_navpolygon")
layout.operator("mesh.assign_navpolygon")
layout.operator("mesh.assign_new_navpolygon")
def MULTIRES(self, layout, ob, md):
layout.row().prop(md, "subdivision_type", expand=True)

View File

@@ -412,7 +412,7 @@ class SCENE_PT_game_navmesh(SceneButtonsPanel, bpy.types.Panel):
rd = context.scene.game_settings.recast_data
layout.operator("object.create_navmesh", text='Build navigation mesh')
layout.operator("mesh.create_navmesh", text='Build navigation mesh')
col = layout.column()
col.label(text="Rasterization:")