Update props_traits.py
Add a few check to navmesh generation and message logs
This commit is contained in:
parent
f07469db90
commit
92153e15f2
|
@ -317,8 +317,14 @@ class ArmoryGenerateNavmeshButton(bpy.types.Operator):
|
|||
if obj.type != 'MESH':
|
||||
return{'CANCELLED'}
|
||||
|
||||
if not arm.utils.check_saved(self):
|
||||
return {"CANCELLED"}
|
||||
|
||||
if not arm.utils.check_sdkpath(self):
|
||||
return {"CANCELLED"}
|
||||
|
||||
# TODO: build tilecache here
|
||||
|
||||
print("Started visualization generation")
|
||||
# For visualization
|
||||
nav_full_path = arm.utils.get_fp_build() + '/compiled/Assets/navigation'
|
||||
if not os.path.exists(nav_full_path):
|
||||
|
@ -373,6 +379,8 @@ class ArmoryGenerateNavmeshButton(bpy.types.Operator):
|
|||
bpy.ops.mesh.remove_doubles()
|
||||
bpy.ops.object.editmode_toggle()
|
||||
|
||||
print("Finished visualization generation")
|
||||
|
||||
return{'FINISHED'}
|
||||
|
||||
class ArmEditCanvasButton(bpy.types.Operator):
|
||||
|
|
Loading…
Reference in a new issue