Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Bantle <hairbat@yahoo.com>2008-01-09 22:51:22 +0300
committerGeoffrey Bantle <hairbat@yahoo.com>2008-01-09 22:51:22 +0300
commita7184e9afd1df6df0bf337506d4181073447d423 (patch)
tree3938aee057fca264190edd5a2a34a3de7a7477d1 /release/scripts/flt_import.py
parentead7a3324784277239d5960eaa5408c3b973f79d (diff)
-> Fix for billboard faces
Faces with billboard render (axis with alpha) were not being preserved on import/export. Fixed
Diffstat (limited to 'release/scripts/flt_import.py')
-rw-r--r--release/scripts/flt_import.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/flt_import.py b/release/scripts/flt_import.py
index 220fc9f355c..3ba118c0d18 100644
--- a/release/scripts/flt_import.py
+++ b/release/scripts/flt_import.py
@@ -742,9 +742,13 @@ class InterNode(Node):
self.mesh.faces.addPropertyLayer("FLT_SFLEVEL", Blender.Mesh.PropertyTypes["INT"])
for i, f in enumerate(self.mesh.faces):
- f.transp |= Blender.Mesh.FaceTranspModes["ALPHA"] #fix this!
- f.mode |= Blender.Mesh.FaceModes["LIGHT"]
props = new_faces_props[i]
+ if props[6]['template billboard'] > 0:
+ f.transp |= Blender.Mesh.FaceTranspModes["ALPHA"]
+ if props[6]['template billboard'] == 2:
+ f.mode |= Blender.Mesh.FaceModes["BILLBOARD"]
+ f.mode |= Blender.Mesh.FaceModes["LIGHT"]
+
#f.mat = props[0]
f.image = props[1]
f.uv = props[2]