Skip to content

Commit ed91c87

Browse files
Merge pull request #320 from Simarilius-uk/main
entity placement fixes
2 parents d4efe68 + c879873 commit ed91c87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

i_scene_cp77_gltf/importers/entity_import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def importEnt(with_materials, filepath='', appearances=[], exclude_meshes=[], in
500500
bindname=chunk_pt['Data']['bindName']['$value']
501501
# if it has a bindname of vehicle_slots, you may need to find the bone name in the vehicle slots in the root ent components
502502
# this should have been loaded earlier, check for it in the vehicle slots if not just set to the slot value
503-
if bindname=='vehicle_slots' or 'slots':
503+
if bindname=='vehicle_slots' or bindname=='slots':
504504
if vehicle_slots:
505505
slotname=chunk_pt['Data']['slotName']['$value']
506506
for slot in vehicle_slots:
@@ -510,7 +510,7 @@ def importEnt(with_materials, filepath='', appearances=[], exclude_meshes=[], in
510510
bindname= chunk_pt['Data']['slotName']['$value']
511511

512512
# some meshes have boneRigMatrices in the mesh file which means we need jsons for the meshes or we cant access it. oh joy
513-
elif bindname=="deformation_rig" and (not chunk_pt['Data']['slotName']['$value'] or len(chunk_pt['Data']['slotName']['$value'])==1):
513+
elif bindname=="deformation_rig" and (not chunk_pt['Data']['slotName']['$value'] or len(chunk_pt['Data']['slotName']['$value'])==1 or chunk_pt['Data']['slotName']['$value']=='None'):
514514
json_name=os.path.join(path, c['mesh']['DepotPath']['$value']+'.json')
515515
#print("in the deformation rig bit",json_name)
516516
if json_name in mesh_jsons:

0 commit comments

Comments
 (0)