[Bf-extensions-cvs] [64a6912] master: X3D: use vrml name for point lamps
Campbell Barton
noreply at git.blender.org
Sun Nov 22 23:33:10 CET 2015
Commit: 64a691202970905f78c54e3aaa820377ad4d5b74
Author: Campbell Barton
Date: Mon Nov 23 09:26:47 2015 +1100
Branches: master
https://developer.blender.org/rBA64a691202970905f78c54e3aaa820377ad4d5b74
X3D: use vrml name for point lamps
===================================================================
M io_scene_x3d/import_x3d.py
===================================================================
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 8c39fcc..75ca612 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -3143,7 +3143,7 @@ def importLamp_PointLight(node, ancestry):
# is_on = node.getFieldAsBool('on', True, ancestry) # TODO
radius = node.getFieldAsFloat('radius', 100.0, ancestry)
- bpylamp = bpy.data.lamps.new("ToDo", 'POINT')
+ bpylamp = bpy.data.lamps.new(vrmlname, 'POINT')
bpylamp.energy = intensity
bpylamp.distance = radius
bpylamp.color = color
More information about the Bf-extensions-cvs
mailing list