From ab38a1c317e1a7b881659b8c433fc4d71b462e8e Mon Sep 17 00:00:00 2001 From: Tom Musgrove Date: Thu, 25 May 2006 11:59:35 +0000 Subject: [PATCH] ==md2 export update== centers object to export correctly by Bob Holcomb --- release/scripts/md2_export.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release/scripts/md2_export.py b/release/scripts/md2_export.py index bf214dd1b58..15561388d1a 100644 --- a/release/scripts/md2_export.py +++ b/release/scripts/md2_export.py @@ -603,6 +603,9 @@ class md2_obj: ###################################################### def validation(object): global user_frame_list + + #move the object to the origin if it's not already there + object.setLocation(0.0,0.0,0.0) #get access to the mesh data mesh=object.getData(False, True) #get the object (not just name) and the Mesh, not NMesh @@ -1200,4 +1203,4 @@ def save_md2(filename): #cleanup md2=0 - print "Closed the file" + print "Closed the file" \ No newline at end of file