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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-19 12:06:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-19 12:06:59 +0400
commitc50f007551baa357ed0444fc9f693f0a3c6de2ec (patch)
tree97d0d1aa16ea684f5d73024320d882152f2886bb /io_scene_x3d/export_x3d.py
parent1137323a10d2330c0230103b75280e396f944b7e (diff)
dont write the default value
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 51b66b5a..a3964db6 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1152,12 +1152,9 @@ def export(file,
elif uniform['type'] == gpu.GPU_DYNAMIC_OBJECT_VIEWIMAT:
frag_uniform_var_map[uniform['varname']] = None
if uniform['datatype'] == gpu.GPU_DATA_16F:
- # must be updated dynamically
- # TODO, write out 'viewpointMatrices.py'
- value = ' '.join(['%.6f' % f for v in mathutils.Matrix() for f in v])
field_descr = " <!--- Object View Matrix Inverse '%s' -->" % obj.name
- fw('%s<field name="%s" type="SFMatrix4f" accessType="inputOutput" value="%s" />%s\n' % (ident, uniform['varname'], value, field_descr))
-
+ fw('%s<field name="%s" type="SFMatrix4f" accessType="inputOutput" />%s\n' % (ident, uniform['varname'], field_descr))
+
h3d_material_route.append(
'<ROUTE fromNode="%s" fromField="glModelViewMatrixInverse" toNode=%s toField="%s" />%s' %
(H3D_TOP_LEVEL, material_id, uniform['varname'], field_descr))