Rotation fix (I think)

This commit is contained in:
Will Snyder
2020-10-15 14:44:17 -05:00
parent 1892a1cdbd
commit f426237785
4 changed files with 34 additions and 20 deletions

View File

@@ -72,6 +72,7 @@ def create_scene(generate_triangle_strips: bool, apply_modifiers: bool, export_t
#now that we've collected all models, we should remap WGHT indices...
'''
names_to_indices = {}
for i,model in enumerate(scene.models):
names_to_indices[model.name] = i;
@@ -82,11 +83,12 @@ def create_scene(generate_triangle_strips: bool, apply_modifiers: bool, export_t
for i in range(len(segment.weights)):
vgroup_index = segment.weights[i][0]
segment.weights[i][0] = names_to_indices[model.vgroups_to_modelnames_map[vgroup_index]]
'''
scene.materials = remove_unused_materials(scene.materials, scene.models)
#scene.anims = gather_animdata(bpy.context.scene.objects["Armature"])
scene.anims = gather_animdata(bpy.context.scene.objects["Armature"])
return scene