Changeset View
Changeset View
Standalone View
Standalone View
io_scene_fbx/import_fbx.py
| Context not available. | |||||
| else: # Object or PoseBone: | else: # Object or PoseBone: | ||||
| if item.is_bone: | if item.is_bone: | ||||
| bl_obj = item.bl_obj.pose.bones[item.bl_bone] | bl_obj = item.bl_obj.pose.bones[item.bl_bone] | ||||
| grpname = item.bl_bone | |||||
| else: | else: | ||||
| bl_obj = item.bl_obj | bl_obj = item.bl_obj | ||||
| grpname = item.bl_obj.name | |||||
| # We want to create actions for objects, but for bones we 'reuse' armatures' actions! | |||||
| grpname = item.bl_obj.name | |||||
| # Since we might get other channels animated in the end, due to all FBX transform magic, | # Since we might get other channels animated in the end, due to all FBX transform magic, | ||||
| # we need to add curves for whole loc/rot/scale in any case. | # we need to add curves for whole loc/rot/scale in any case. | ||||
| Context not available. | |||||