Skip to content

Commit

Permalink
fix having removed anims from glob calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Simarilius-uk authored Apr 4, 2024
1 parent 478b41b commit cbb5128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions i_scene_cp77_gltf/importers/entity_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def importEnt( filepath='', appearances=[], exclude_meshes=[], with_materials=Tr
# then check for an anim in the project thats using the rig (some things like the arch bike dont ref the anim in the ent)
# otherwise just skip this section
#
anim_files = glob.glob(os.path.join(path,"base","animations","**","*.glb"), recursive = True)
ep1_anim_files = glob.glob(os.path.join(path,"ep1","animations","**","*.glb"), recursive = True)
anim_files = glob.glob(os.path.join(path,"base","animations","**","*anims.glb"), recursive = True)
ep1_anim_files = glob.glob(os.path.join(path,"ep1","animations","**","*anims.glb"), recursive = True)
anim_files = anim_files + ep1_anim_files

rig=None
Expand Down Expand Up @@ -732,4 +732,4 @@ def importEnt( filepath='', appearances=[], exclude_meshes=[], with_materials=Tr
if os.path.basename(e)== ent_name+'.json' :
filepath=e

importEnt( filepath, appearances )
importEnt( filepath, appearances )

0 comments on commit cbb5128

Please sign in to comment.