io_scene_3ds: Added imperial unit length measure #104805
@ -731,7 +731,7 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
|
|||||||
new_chunk.bytes_read += read_str_len
|
new_chunk.bytes_read += read_str_len
|
||||||
|
|
||||||
# If fog chunk
|
# If fog chunk
|
||||||
elif new_chunk.ID == LAYER_FOG:
|
elif CreateWorld and new_chunk.ID == LAYER_FOG:
|
||||||
if contextWorld is None:
|
if contextWorld is None:
|
||||||
path, filename = os.path.split(file.name)
|
path, filename = os.path.split(file.name)
|
||||||
realname, ext = os.path.splitext(filename)
|
realname, ext = os.path.splitext(filename)
|
||||||
@ -758,7 +758,7 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
|
|||||||
else:
|
else:
|
||||||
skip_to_end(file, temp_chunk)
|
skip_to_end(file, temp_chunk)
|
||||||
new_chunk.bytes_read += temp_chunk.bytes_read
|
new_chunk.bytes_read += temp_chunk.bytes_read
|
||||||
elif new_chunk.ID == USE_LAYER_FOG:
|
elif CreateWorld and new_chunk.ID == USE_LAYER_FOG:
|
||||||
context.view_layer.use_pass_mist = True
|
context.view_layer.use_pass_mist = True
|
||||||
|
|
||||||
# is it an object info chunk?
|
# is it an object info chunk?
|
||||||
|
Loading…
Reference in New Issue
Block a user