Skip to content

Commit 2a9e718

Browse files
author
Sebastian Sille
committed
Import_x3d: Fixed light radius variable
Changed light radius variable from distance to cutoff_distance #105235
1 parent 487b433 commit 2a9e718

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io_scene_x3d/import_x3d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ def importLamp_PointLight(node, ancestry):
31713171

31723172
bpylamp = bpy.data.lights.new(vrmlname, 'POINT')
31733173
bpylamp.energy = intensity
3174-
bpylamp.distance = radius
3174+
bpylamp.cutoff_distance = radius
31753175
bpylamp.color = color
31763176

31773177
mtx = Matrix.Translation(Vector(location))
@@ -3220,7 +3220,7 @@ def importLamp_SpotLight(node, ancestry):
32203220

32213221
bpylamp = bpy.data.lights.new(vrmlname, 'SPOT')
32223222
bpylamp.energy = intensity
3223-
bpylamp.distance = radius
3223+
bpylamp.cutoff_distance = radius
32243224
bpylamp.color = color
32253225
bpylamp.spot_size = cutOffAngle
32263226
if beamWidth > cutOffAngle:

0 commit comments

Comments
 (0)