[tubras] r1915 committed - Update to use bmesh tessfaces.

11 views
Skip to first unread message

tub...@googlecode.com

unread,
Mar 23, 2012, 2:39:42 AM3/23/12
to tubras-s...@googlegroups.com
Revision: 1915
Author: pc0der
Date: Thu Mar 22 23:38:09 2012
Log: Update to use bmesh tessfaces.

http://code.google.com/p/tubras/source/detail?r=1915

Modified:
/trunk/tools/irrb/io_export_irrlicht.py

=======================================
--- /trunk/tools/irrb/io_export_irrlicht.py Sat Mar 17 15:26:32 2012
+++ /trunk/tools/irrb/io_export_irrlicht.py Thu Mar 22 23:38:09 2012
@@ -3287,7 +3287,7 @@

bImage = None
if len(bMesh.uv_textures):
- bImage = bMesh.uv_textures[0].data[bMesh.faces[0].index].image
+ bImage =
bMesh.uv_textures[0].data[bMesh.tessfaces[0].index].image

self._writeSBImageAttributes(file, i2, material, bImage)

@@ -3408,7 +3408,7 @@

# get 'Mesh'
self.bMesh = bObject.data
- if not len(self.bMesh.faces):
+ if not len(self.bMesh.tessfaces):
self.bMesh.update(calc_tessface=True)

self._setUVImageCount()
@@ -3648,7 +3648,7 @@
# face/vertex info into the MeshBuffer.
#
result = True
- faces = self.bMesh.faces
+ faces = self.bMesh.tessfaces

fcount = 0
tfaces = len(faces)
@@ -4825,7 +4825,7 @@
addWarning(msg)
return None

- faces = mesh.faces
+ faces = mesh.tessfaces
if len(faces) != 1:
msg = 'Ignoring billboard: {}, ' \
'invalid face count: {}'.format(mesh.name, len(faces))
@@ -4942,7 +4942,7 @@
addWarning(msg)
return None

- faces = mesh.faces
+ faces = mesh.tessfaces
if len(faces) < 1:
msg = 'Ignoring volume light: {}, ' \
'invalid face count: {}'.format(mesh.name, len(faces))

Reply all
Reply to author
Forward
0 new messages