forked from LeenkxTeam/LNXSDK
moisesjpelaez - Oimo Physics
This commit is contained in:
parent
8aeaa0368e
commit
6d4c1a680b
@ -1566,8 +1566,7 @@ class LeenkxExporter:
|
|||||||
log.error(e.message)
|
log.error(e.message)
|
||||||
else:
|
else:
|
||||||
# Assume it was caused because of encountering n-gons
|
# Assume it was caused because of encountering n-gons
|
||||||
log.error(f"""object {bobject.name} contains n-gons in its mesh, so it's impossible to compute tanget space for normal mapping.
|
log.error(f"""object {bobject.name} contains n-gons in its mesh, so it's impossible to compute tanget space for normal mapping. Make sure the mesh only has tris/quads.""")
|
||||||
Make sure the mesh only has tris/quads.""")
|
|
||||||
|
|
||||||
tangdata = np.empty(num_verts * 3, dtype='<f4')
|
tangdata = np.empty(num_verts * 3, dtype='<f4')
|
||||||
if has_col:
|
if has_col:
|
||||||
@ -3040,16 +3039,16 @@ Make sure the mesh only has tris/quads.""")
|
|||||||
if rbw is not None and rbw.enabled:
|
if rbw is not None and rbw.enabled:
|
||||||
out_trait['parameters'] = [str(rbw.time_scale), str(rbw.substeps_per_frame), str(rbw.solver_iterations)]
|
out_trait['parameters'] = [str(rbw.time_scale), str(rbw.substeps_per_frame), str(rbw.solver_iterations)]
|
||||||
|
|
||||||
if phys_pkg == 'bullet':
|
if phys_pkg == 'bullet' or phys_pkg == 'oimo':
|
||||||
debug_draw_mode = 1 if wrd.lnx_bullet_dbg_draw_wireframe else 0
|
debug_draw_mode = 1 if wrd.lnx_physics_dbg_draw_wireframe else 0
|
||||||
debug_draw_mode |= 2 if wrd.lnx_bullet_dbg_draw_aabb else 0
|
debug_draw_mode |= 2 if wrd.lnx_physics_dbg_draw_aabb else 0
|
||||||
debug_draw_mode |= 8 if wrd.lnx_bullet_dbg_draw_contact_points else 0
|
debug_draw_mode |= 8 if wrd.lnx_physics_dbg_draw_contact_points else 0
|
||||||
debug_draw_mode |= 2048 if wrd.lnx_bullet_dbg_draw_constraints else 0
|
debug_draw_mode |= 2048 if wrd.lnx_physics_dbg_draw_constraints else 0
|
||||||
debug_draw_mode |= 4096 if wrd.lnx_bullet_dbg_draw_constraint_limits else 0
|
debug_draw_mode |= 4096 if wrd.lnx_physics_dbg_draw_constraint_limits else 0
|
||||||
debug_draw_mode |= 16384 if wrd.lnx_bullet_dbg_draw_normals else 0
|
debug_draw_mode |= 16384 if wrd.lnx_physics_dbg_draw_normals else 0
|
||||||
debug_draw_mode |= 32768 if wrd.lnx_bullet_dbg_draw_axis_gizmo else 0
|
debug_draw_mode |= 32768 if wrd.lnx_physics_dbg_draw_axis_gizmo else 0
|
||||||
|
debug_draw_mode |= 65536 if wrd.lnx_physics_dbg_draw_raycast else 0
|
||||||
out_trait['parameters'].append(str(debug_draw_mode))
|
out_trait['parameters'].append(str(debug_draw_mode))
|
||||||
out_trait['parameters'].append(str(wrd.lnx_bullet_dbg_draw_raycast).lower())
|
|
||||||
|
|
||||||
self.output['traits'].append(out_trait)
|
self.output['traits'].append(out_trait)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user