Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/ArmatureExporter.cpp
| Context not available. | |||||
| 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]); | ||||
gaiaclary: Why is this added only to leaf bones ? Shouldn't this go into the if block starting at line 169… | |||||
| node.addExtraTechniqueParameter("blender", "inherit_scale", bone->inherit_scale_mode); | |||||
| //node.addExtraTechniqueParameter("blender", "inherit_rotation", bone->use_inherit_rotation); | |||||
| } | } | ||||
gaiaclaryUnsubmitted Not Done Inline ActionsSame as previous comment gaiaclary: Same as previous comment | |||||
| bool local_location = (bone->flag & eBone_Flag::BONE_NO_LOCAL_LOCATION) == 0; | |||||
| node.addExtraTechniqueParameter("blender", "use_local_location", local_location); | |||||
| } | } | ||||
| node.start(); | node.start(); | ||||
| Context not available. | |||||
Why is this added only to leaf bones ? Shouldn't this go into the if block starting at line 169 ?