Update leenkx/blender/lnx/props_traits.py

This commit is contained in:
2025-06-20 15:50:09 +00:00
parent 1fd1973470
commit 3e0cd2be35

View File

@ -516,6 +516,9 @@ class LeenkxGenerateNavmeshButton(bpy.types.Operator):
proc = subprocess.Popen(args, cwd=nav_full_path)
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.context.selected_objects[0]