Archived
1
0
Fork 0

Fixed some export bugs

This commit is contained in:
Augs 2018-07-24 22:54:14 +01:00
parent 0b0fcd7087
commit c8150cd763

View file

@ -271,7 +271,7 @@ class ExportCOL(Operator, ExportHelper): #Operator that exports the collision mo
Triangles = [] #List of triangles, each containing indicies of verticies
IndexOffset = 0 #Since each object starts their vertex indicies at 0, we need to shift these indicies once we add elements to the vertex list from various objects
for Obj in bpy.context.scene.objects: #for all objects
Obj.mode_set(mode = 'OBJECT') #Set mode to be object mode
bpy.ops.object.mode_set(mode = 'OBJECT')#Set mode to be object mode
if Obj.type != 'MESH':
continue
bm = bmesh.new() #Define new bmesh