Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/ArmatureExporter.cpp
| Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | if (this->export_settings.get_use_blender_profile()) { | ||||
| if (this->export_settings.get_apply_global_orientation()) { | if (this->export_settings.get_apply_global_orientation()) { | ||||
| bc_add_global_transform(head, bone->arm_head, global_transform); | bc_add_global_transform(head, bone->arm_head, global_transform); | ||||
| bc_add_global_transform(tail, bone->arm_tail, global_transform); | bc_add_global_transform(tail, bone->arm_tail, global_transform); | ||||
| } | } | ||||
| else { | else { | ||||
| copy_v3_v3(head, bone->arm_head); | copy_v3_v3(head, bone->arm_head); | ||||
| copy_v3_v3(tail, bone->arm_tail); | copy_v3_v3(tail, bone->arm_tail); | ||||
| } | } | ||||
| node.addExtraTechniqueParameter("blender", "tip_x", tail[0] - head[0]); | node.addExtraTechniqueParameter("blender", "tip_x", tail[0] - head[0]); | ||||
| node.addExtraTechniqueParameter("blender", "tip_y", tail[1] - head[1]); | node.addExtraTechniqueParameter("blender", "tip_y", tail[1] - head[1]); | ||||
| node.addExtraTechniqueParameter("blender", "tip_z", tail[2] - head[2]); | node.addExtraTechniqueParameter("blender", "tip_z", tail[2] - head[2]); | ||||
| node.addExtraTechniqueParameter("blender", "inherit_scale", bone->inherit_scale_mode); | |||||
| //node.addExtraTechniqueParameter("blender", "inherit_rotation", bone->use_inherit_rotation); | |||||
gaiaclary: Why is this added only to leaf bones ? Shouldn't this go into the if block starting at line 169… | |||||
| } | } | ||||
| bool local_location = (bone->flag & eBone_Flag::BONE_NO_LOCAL_LOCATION) == 0; | |||||
| node.addExtraTechniqueParameter("blender", "use_local_location", local_location); | |||||
| } | } | ||||
Not Done Inline ActionsSame as previous comment gaiaclary: Same as previous comment | |||||
| node.start(); | node.start(); | ||||
| add_bone_transform(ob_arm, bone, node); | add_bone_transform(ob_arm, bone, node); | ||||
| /* Write nodes of child-objects, remove written objects from list. */ | /* Write nodes of child-objects, remove written objects from list. */ | ||||
| std::vector<Object *>::iterator iter = child_objects.begin(); | std::vector<Object *>::iterator iter = child_objects.begin(); | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||
Why is this added only to leaf bones ? Shouldn't this go into the if block starting at line 169 ?