io_scene_3ds: Added cursor location #104797
@ -739,15 +739,15 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
|
||||
context.scene.world = contextWorld
|
||||
else:
|
||||
contextWorld.use_nodes = True
|
||||
links = newWorld.node_tree.links
|
||||
nodes = newWorld.node_tree.nodes
|
||||
links = contextWorld.node_tree.links
|
||||
nodes = contextWorld.node_tree.nodes
|
||||
context.view_layer.use_pass_mist = False
|
||||
layerfog = nodes.new(type='ShaderNodeVolumeScatter')
|
||||
layerfog.label = "Layer Fog"
|
||||
layerfog.location = (300, 100)
|
||||
links.new(layerfog.outputs['Volume'], nodes['World Output'].inputs['Volume'])
|
||||
world.mist_settings.start = read_float(new_chunk)
|
||||
world.mist_settings.depth = read_float(new_chunk)
|
||||
contextWorld.mist_settings.start = read_float(new_chunk)
|
||||
contextWorld.mist_settings.depth = read_float(new_chunk)
|
||||
layerfog.inputs[1].default_value = read_float(new_chunk)
|
||||
layerfogflag = read_long(new_chunk)
|
||||
read_chunk(file, temp_chunk)
|
||||
|
Loading…
Reference in New Issue
Block a user