Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 8f2c6d1

Browse files
author
Sebastian Sille
committed
Import_3ds: Moved use_shadow boolean to light chunk
Moved use_shadow boolean from spotlight to light chunk
1 parent f0286ae commit 8f2c6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_scene_3ds/import_3ds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ def read_track_angle(track_chunk):
11681168
context.view_layer.active_layer_collection.collection.objects.link(contextLamp)
11691169
imported_objects.append(contextLamp)
11701170
object_dictionary[contextObName] = contextLamp
1171+
contextLamp.data.use_shadow = False
11711172
contextLamp.location = read_float_array(new_chunk) # Position
11721173
contextMatrix = None # Reset matrix
11731174
elif CreateLightObject and new_chunk.ID == COLOR_F: # Color
@@ -1184,7 +1185,6 @@ def read_track_angle(track_chunk):
11841185
# If spotlight chunk
11851186
elif CreateLightObject and new_chunk.ID == LIGHT_SPOTLIGHT: # Spotlight
11861187
contextLamp.data.type = 'SPOT'
1187-
contextLamp.data.use_shadow = False
11881188
spot = mathutils.Vector(read_float_array(new_chunk)) # Spot location
11891189
aim = calc_target(contextLamp.location, spot) # Target
11901190
contextLamp.rotation_euler.x = aim[0]

0 commit comments

Comments
 (0)