changeset 1239:759798f134e3 draft

sample_white change by 095732B 095736E
author e095732 <e095732@ie.u-ryukyu.ac.jp>
date Fri, 21 Oct 2011 19:25:41 +0900
parents 8c2711796060
children cdd04411b8a4
files SceneGraph/BlenderScript/export_xml3.py
diffstat 1 files changed, 23 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/SceneGraph/BlenderScript/export_xml3.py	Fri Oct 21 18:20:49 2011 +0900
+++ b/SceneGraph/BlenderScript/export_xml3.py	Fri Oct 21 19:25:41 2011 +0900
@@ -228,8 +228,16 @@
 					file.write(loadTexture(texture))
 				else:
 					file.write("\t\t<image name=\"{0:s}\">\n".format("sample_white.png"))
+					#sample_whited = 0 
+					#if (sample_whited == 0):
+					file.write("\t\t\tiVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAEElEQVQImWP8zwABTAwUMQBJQQEP\n")
+					file.write("\t\t\tlYH+agAAAABJRU5ErkJggg==\n")
+					#sample_whited=1
 					file.write("\t\t</image>\n")
 
+					
+
+
 
 	vdata = []
 	vlist = []
@@ -263,21 +271,22 @@
 
 	#return str
 	
-sample_whited = 0
+
 
-def make_material_chunk(material, image, file):
-	if image:
-		file.write(loadTexture(image))
-	else:
-		file.write("\t\t<image name=\"{0:s}\">\n".format("sample_white.png"))
-		global sample_whited
-		if (sample_whited == 0):
-
-		    file.write("\t\t\tiVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAEElEQVQImWP8zwABTAwUMQBJQQEP\n");
-		    file.write("\t\t\tlYH+agAAAABJRU5ErkJggg==\n");
-		    sample_whited=1
-
-		file.write("\t\t</image>\n")
+#sample_whited = 0
+# don't call this method#
+#def make_material_chunk(material, image, file):
+#	if image:
+#		file.write(loadTexture(image))
+#	else:
+#		file.write("\t\t<image name=\"{0:s}\">\n".format("sample_white.png"))
+#		global sample_whited
+#		if (sample_whited == 0):
+#		    file.write("\t\t\tiVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAEElEQVQImWP8zwABTAwUMQBJQQEP\n");
+#		    file.write("\t\t\tlYH+agAAAABJRU5ErkJggg==\n");
+#		    sample_whited=1
+#
+#		file.write("\t\t</image>\n")
 
 ######################################################
 # EXPORT