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-07-29 10:26:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-29 10:26:13 +0400
commit3f7e914d5effb63290ab4b1676abbc0556ee04a7 (patch)
treeb5312b816ffcb479bdae251afc5bd486433eba1d /io_scene_x3d/export_x3d.py
parent2a9841dc56d9a7d1df773c4114f6805674471dd3 (diff)
pep8 edits and some style change
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 52f19a93..a89fb30a 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -218,7 +218,7 @@ def export(file,
return ident
def writeFooter(ident):
-
+
if use_h3d:
# global
for route in h3d_material_route:
@@ -1012,7 +1012,7 @@ def export(file,
value = '%.6g %.6g %.6g' % (global_matrix * lamp_obj.matrix_world).to_translation()[:]
fw('%s<field name="%s" type="SFVec3f" accessType="inputOutput" value="%s" />\n' % (ident, uniform['varname'], value))
-
+
# ------------------------------------------------------
# shader-patch
fw('%s<field name="%s_transform" type="SFMatrix4f" accessType="inputOutput" />\n' % (ident, uniform['varname']))
@@ -1022,7 +1022,7 @@ def export(file,
h3d_material_route.append(
'<ROUTE fromNode=%s fromField="accForwardMatrix" toNode=%s toField="%s_transform" />' %
(suffix_quoted_str(lamp_obj_id, "_TRANSFORM"), material_id, uniform['varname']))
-
+
h3d_material_route.append(
'<ROUTE fromNode=%s fromField="location" toNode=%s toField="%s" />' %
(suffix_quoted_str(lamp_obj_id, "_TRANSFORM"), material_id, uniform['varname']))