ソースを参照

Bug tracking in the python exporter scripts

Panagiotis Christopoulos Charitos 15 年 前
コミット
3077d76486
3 ファイル変更8 行追加5 行削除
  1. 1 2
      blenderscripts/common.py
  2. 2 3
      blenderscripts/mesh.py
  3. 5 0
      src/Main.cpp

+ 1 - 2
blenderscripts/common.py

@@ -3,7 +3,6 @@ import string
 import os.path
 from Blender import Mathutils
 from Blender.Mathutils import *
-from Numeric import *
 
 
 #===================================================================================================
@@ -49,4 +48,4 @@ def INFO( msg ):
 #===================================================================================================
 def WriteFile( filename, txt ):
 	file = open( filename, "w" )
-	file.write( txt )
+	file.write( txt )

+ 2 - 3
blenderscripts/mesh.py

@@ -1,10 +1,9 @@
 import sys
 import common
 import os
-from copy import copy
+import copy
 from Blender import Mathutils
 from Blender.Mathutils import *
-from Numeric import *
 
 
 #=======================================================================================================================
@@ -170,7 +169,7 @@ def	getAnkiMeshScript(mesh, skeleton, mtlName, flipYZ):
 			ankiTris[i] = Tri() # create new tri
 			
 			# for verts in the face
-			for j in [0, 1, 2]:
+			for j in [2, 1, 0]:
 				vertId = face.verts[j].index
 			
 				# vert does not exist

+ 5 - 0
src/Main.cpp

@@ -186,6 +186,11 @@ void init()
 		node->setLocalTransform(Transform(Vec3(0.0, -0.0, 0.0), Mat3::getIdentity(), 0.01));
 	}*/
 
+	// sponza map
+	MeshNode* node = new MeshNode();
+	node->init("maps/sponza/sponza.mesh");
+	//node->setLocalTransform(Transform(Vec3(0.0, -0.0, 0.0), Mat3::getIdentity(), 0.01));
+
 	// particle emitter
 	partEmitter = new ParticleEmitter;
 	partEmitter->init("asdf");