Import_3ds: Avoid any None in object lists #104785
@ -74,7 +74,7 @@ class Import3DS(bpy.types.Operator, ImportHelper):
|
|||||||
('CAMERA',"Camera".rjust(11),"",'CAMERA_DATA',0x8),
|
('CAMERA',"Camera".rjust(11),"",'CAMERA_DATA',0x8),
|
||||||
('EMPTY',"Empty".rjust(11),"",'EMPTY_DATA',0x10),
|
('EMPTY',"Empty".rjust(11),"",'EMPTY_DATA',0x10),
|
||||||
),
|
),
|
||||||
description="Object types to export",
|
description="Object types to import",
|
||||||
default={'WORLD', 'MESH', 'LIGHT', 'CAMERA', 'EMPTY'},
|
default={'WORLD', 'MESH', 'LIGHT', 'CAMERA', 'EMPTY'},
|
||||||
)
|
)
|
||||||
use_apply_transform: BoolProperty(
|
use_apply_transform: BoolProperty(
|
||||||
|
@ -1049,7 +1049,7 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
|
|||||||
imported_objects.append(child)
|
imported_objects.append(child)
|
||||||
else:
|
else:
|
||||||
tracking = tracktype = None
|
tracking = tracktype = None
|
||||||
if tracktype != 'TARGET' and tracking != 'AMBIENT':
|
if child is not None and tracktype != 'TARGET' and tracking != 'AMBIENT':
|
||||||
object_dict[object_id] = child
|
object_dict[object_id] = child
|
||||||
object_list.append(child)
|
object_list.append(child)
|
||||||
object_parent.append(hierarchy)
|
object_parent.append(hierarchy)
|
||||||
|
Loading…
Reference in New Issue
Block a user