forked from LeenkxTeam/LNXSDK
		
	moisesjpelaez - Oimo Physics
This commit is contained in:
		@ -1566,8 +1566,7 @@ class LeenkxExporter:
 | 
			
		||||
                        log.error(e.message)
 | 
			
		||||
                    else:
 | 
			
		||||
                        # 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.
 | 
			
		||||
Make sure the mesh only has tris/quads.""")
 | 
			
		||||
                        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.""")
 | 
			
		||||
 | 
			
		||||
                tangdata = np.empty(num_verts * 3, dtype='<f4')
 | 
			
		||||
        if has_col:
 | 
			
		||||
@ -3040,16 +3039,16 @@ Make sure the mesh only has tris/quads.""")
 | 
			
		||||
            if rbw is not None and rbw.enabled:
 | 
			
		||||
                out_trait['parameters'] = [str(rbw.time_scale), str(rbw.substeps_per_frame), str(rbw.solver_iterations)]
 | 
			
		||||
 | 
			
		||||
                if phys_pkg == 'bullet':
 | 
			
		||||
                    debug_draw_mode = 1 if wrd.lnx_bullet_dbg_draw_wireframe else 0
 | 
			
		||||
                    debug_draw_mode |= 2 if wrd.lnx_bullet_dbg_draw_aabb else 0
 | 
			
		||||
                    debug_draw_mode |= 8 if wrd.lnx_bullet_dbg_draw_contact_points else 0
 | 
			
		||||
                    debug_draw_mode |= 2048 if wrd.lnx_bullet_dbg_draw_constraints else 0
 | 
			
		||||
                    debug_draw_mode |= 4096 if wrd.lnx_bullet_dbg_draw_constraint_limits else 0
 | 
			
		||||
                    debug_draw_mode |= 16384 if wrd.lnx_bullet_dbg_draw_normals else 0
 | 
			
		||||
                    debug_draw_mode |= 32768 if wrd.lnx_bullet_dbg_draw_axis_gizmo else 0
 | 
			
		||||
                if phys_pkg == 'bullet' or phys_pkg == 'oimo':
 | 
			
		||||
                    debug_draw_mode = 1 if wrd.lnx_physics_dbg_draw_wireframe else 0
 | 
			
		||||
                    debug_draw_mode |= 2 if wrd.lnx_physics_dbg_draw_aabb else 0
 | 
			
		||||
                    debug_draw_mode |= 8 if wrd.lnx_physics_dbg_draw_contact_points else 0
 | 
			
		||||
                    debug_draw_mode |= 2048 if wrd.lnx_physics_dbg_draw_constraints else 0
 | 
			
		||||
                    debug_draw_mode |= 4096 if wrd.lnx_physics_dbg_draw_constraint_limits else 0
 | 
			
		||||
                    debug_draw_mode |= 16384 if wrd.lnx_physics_dbg_draw_normals 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(wrd.lnx_bullet_dbg_draw_raycast).lower())
 | 
			
		||||
 | 
			
		||||
            self.output['traits'].append(out_trait)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user