[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20009] trunk/blender/source/gameengine/ Ketsji/KX_Dome.cpp: supporting warp data files with tabs instead of spaces.
Dalai Felinto
dfelinto at gmail.com
Thu Apr 30 17:27:38 CEST 2009
Revision: 20009
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20009
Author: dfelinto
Date: 2009-04-30 17:27:38 +0200 (Thu, 30 Apr 2009)
Log Message:
-----------
supporting warp data files with tabs instead of spaces.
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_Dome.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_Dome.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_Dome.cpp 2009-04-30 12:51:38 UTC (rev 20008)
+++ trunk/blender/source/gameengine/Ketsji/KX_Dome.cpp 2009-04-30 15:27:38 UTC (rev 20009)
@@ -434,6 +434,8 @@
return false;
}
columns = lines[1].Explode(' ');
+ if(columns.size() == 1)
+ columns = lines[1].Explode('\t');
if(columns.size() !=2){
printf("Error: Warp Mesh File incorrect. The second line should contain: width height.\n");
@@ -453,6 +455,8 @@
for(i=2; i-2 < (warp.n_width*warp.n_height); i++){
columns = lines[i].Explode(' ');
+ if(columns.size() == 1)
+ columns = lines[i].Explode('\t');
if (columns.size() == 5){
nodeX = (i-2)%warp.n_width;
More information about the Bf-blender-cvs
mailing list