From 238e231e6e480168f34d124eebe98ede932a9688 Mon Sep 17 00:00:00 2001 From: Sebastian Sille Date: Mon, 13 May 2024 07:35:25 +0200 Subject: [PATCH] Import_3ds: Improved distance cue chunk import Fixed mismatched variables --- io_scene_3ds/import_3ds.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py index 8c4d3617..9afc328e 100644 --- a/io_scene_3ds/import_3ds.py +++ b/io_scene_3ds/import_3ds.py @@ -1143,14 +1143,14 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, distcuepath.location = (-1140, 160) raysource = distcuepath.outputs[7] if distcue_mix else distcuepath.outputs[0] raytarget = distcue_mix.inputs[0] if distcue_mix else nodes['Background'].inputs[1] - links.new(camdata.outputs[1], distnode.inputs[1]) - links.new(camdata.outputs[2], distnode.inputs[0]) - links.new(raysource, distnode.inputs[4]) - links.new(distnode.outputs[0], raytarget) - distcue_node.inputs[1].default_value = read_float(new_chunk) - distcue_node.inputs[2].default_value = read_float(new_chunk) - contextWorld.light_settings.distance = read_float(new_chunk) - distnode.inputs[3].default_value = distnode.inputs[4].default_value = read_float(new_chunk) + links.new(camera_data.outputs[1], distcue_node.inputs[1]) + links.new(camera_data.outputs[2], distcue_node.inputs[0]) + links.new(raysource, distcue_node.inputs[4]) + links.new(distcue_node.outputs[0], raytarget) + distcue_node.inputs[1].default_value = read_float(new_chunk) # Near Cue + distcue_node.inputs[2].default_value = read_float(new_chunk) # Near Dim + distcue_node.inputs[4].default_value = contextWorld.light_settings.distance = read_float(new_chunk) # Far Cue + distcue_node.inputs[3].default_value = read_float(new_chunk) # Far Dim elif CreateWorld and new_chunk.ID == DCUE_BGND: pass -- 2.11.4.GIT