[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2791] trunk/py/scripts/addons/ io_scene_x3d/export_x3d.py: dont write the default value

Campbell Barton ideasman42 at gmail.com
Mon Dec 19 09:07:11 CET 2011


Revision: 2791
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2791
Author:   campbellbarton
Date:     2011-12-19 08:06:59 +0000 (Mon, 19 Dec 2011)
Log Message:
-----------
dont write the default value

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x3d/export_x3d.py

Modified: trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/export_x3d.py	2011-12-19 07:53:20 UTC (rev 2790)
+++ trunk/py/scripts/addons/io_scene_x3d/export_x3d.py	2011-12-19 08:06:59 UTC (rev 2791)
@@ -1152,12 +1152,9 @@
                 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))



More information about the Bf-extensions-cvs mailing list