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

Commit b42d686

Browse files
author
Sebastian Sille
committed
Import_3ds: Improved distance cue node setup
Change node position if distance cue was found
1 parent f2e3297 commit b42d686

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

io_scene_3ds/import_3ds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,13 +1134,13 @@ def read_track_angle(track_chunk):
11341134
camera_data = nodes.new(type='ShaderNodeCameraData')
11351135
distcue_node.label = "Distance Cue"
11361136
distcue_node.clamp = False
1137-
distcue_node.location = (-940, 10)
1138-
camera_data.location = (-1340, 170)
11391137
distcue_mix = next((wn for wn in worldnodes if wn.name == "Volume" and wn.type == 'MIX_SHADER'), False)
11401138
distcuepath = next((wn for wn in worldnodes if wn.type == 'LIGHT_PATH'), False)
11411139
if not distcuepath:
11421140
distcuepath = nodes.new(type='ShaderNodeLightPath')
1143-
distcuepath.location = (-1140, 70)
1141+
distcue_node.location = (-940, 10)
1142+
distcuepath.location = (-1140, 70)
1143+
camera_data.location = (-1340, 170)
11441144
raysource = distcuepath.outputs[7] if distcue_mix else distcuepath.outputs[0]
11451145
raytarget = distcue_mix.inputs[0] if distcue_mix else nodes['Background'].inputs[1]
11461146
links.new(camera_data.outputs[1], distcue_node.inputs[1])

0 commit comments

Comments
 (0)