From c8150cd763caaad587150dcc21a14f59b1151139 Mon Sep 17 00:00:00 2001 From: Augs Date: Tue, 24 Jul 2018 22:54:14 +0100 Subject: [PATCH] Fixed some export bugs --- BlenderCOL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlenderCOL.py b/BlenderCOL.py index 0860377..1f89944 100644 --- a/BlenderCOL.py +++ b/BlenderCOL.py @@ -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