comparison SceneGraph/BlenderScript/export_xml.py @ 1029:22d7263cec2d

copy script add.
author tkaito
date Mon, 15 Nov 2010 22:39:25 +0900
parents 30a72124c7fd
children ff0e6d00c060
comparison
equal deleted inserted replaced
1028:3191cae6f7a2 1029:22d7263cec2d
445 445
446 446
447 def loadTexture(texture): 447 def loadTexture(texture):
448 global images, imageCount 448 global images, imageCount
449 name = texture.getName() 449 name = texture.getName()
450 if name in images: 450 #if name in images:
451 return "\t\t<image name=\"" + name + "\"/>\n" 451 # return "\t\t<image name=\"" + name + "\"/>\n"
452 out = "\t\t<image name=\"" + name + "\">\n" 452 out = "\t\t<image name=\"" + name + "\">\n"
453 imageCount += 1 453 imageCount += 1
454 images[name] = imageCount 454 images[name] = imageCount
455 image_path = texture.getFilename() 455 image_path = texture.getFilename()
456 input = open(expandpath(image_path), 'r') 456 input = open(expandpath(image_path), 'r')