forked from LeenkxTeam/LNXSDK
Update leenkx/blender/lnx/props_traits.py
This commit is contained in:
@ -516,6 +516,9 @@ class LeenkxGenerateNavmeshButton(bpy.types.Operator):
|
|||||||
proc = subprocess.Popen(args, cwd=nav_full_path)
|
proc = subprocess.Popen(args, cwd=nav_full_path)
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|
||||||
|
if bpy.app.version[0] >= 4:
|
||||||
|
navmesh = bpy.ops.wm.obj_import(filepath=mesh_path)
|
||||||
|
else:
|
||||||
navmesh = bpy.ops.import_scene.obj(filepath=mesh_path)
|
navmesh = bpy.ops.import_scene.obj(filepath=mesh_path)
|
||||||
navmesh = bpy.context.selected_objects[0]
|
navmesh = bpy.context.selected_objects[0]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user