Mercurial > hg > Game > Cerium
comparison SceneGraph/BlenderScript/export_xml3.py @ 1238:8c2711796060 draft
fix blender script
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 21 Oct 2011 18:20:49 +0900 |
parents | 3c7e09953326 |
children | 759798f134e3 |
comparison
equal
deleted
inserted
replaced
1237:3c7e09953326 | 1238:8c2711796060 |
---|---|
330 | 330 |
331 for ob_derived, mat in derived: | 331 for ob_derived, mat in derived: |
332 if ob.type not in ('MESH', 'CURVE', 'SURFACE', 'TEXT', 'META'): | 332 if ob.type not in ('MESH', 'CURVE', 'SURFACE', 'TEXT', 'META'): |
333 continue | 333 continue |
334 | 334 |
335 data = bpy.data.meshes[ob_derived.name] | 335 data = ob_derived.data |
336 | 336 |
337 if data: | 337 if data: |
338 data.transform(mat) | 338 data.transform(mat) |
339 mesh_objects.append((ob_derived, data)) | 339 mesh_objects.append((ob_derived, data)) |
340 mat_ls = data.materials | 340 mat_ls = data.materials |