-----------------------------------
| 1215 | |
| 1216 | // ----------------------------------- |
| 1217 | void VisualSceneImporter::createTransformAnimation ( |
| 1218 | const COLLADAFW::UniqueId& transformId, |
| 1219 | const COLLADAFW::Transformation* transformation, |
| 1220 | const MayaTransform::TransformPhase& transformPhase, |
| 1221 | const bool isJointTransform, |
| 1222 | std::vector<TransformAnimation>& transformAnimations ) |
| 1223 | { |
| 1224 | // Get the id of animation list of the current transformation and store |
| 1225 | // the transform node id, the mayaTransform node and the transformation type. |
| 1226 | const COLLADAFW::UniqueId& animationListId = transformation->getAnimationList (); |
| 1227 | if ( animationListId.isValid () ) |
| 1228 | { |
| 1229 | // Create a TransformAnimation objekt and push it in the list. |
| 1230 | TransformAnimation transformAnim; |
| 1231 | transformAnim.setAnimationListId ( animationListId ); |
| 1232 | transformAnim.setAnimationSourceId ( transformId ); |
| 1233 | transformAnim.setTransformation ( transformation ); |
| 1234 | transformAnim.setTransformPhase ( transformPhase ); |
| 1235 | transformAnim.setIsJointTransform ( isJointTransform ); |
| 1236 | transformAnimations.push_back ( transformAnim ); |
| 1237 | } |
| 1238 | } |
| 1239 | |
| 1240 | // ----------------------------------- |
| 1241 | const BaseImporter::MayaNodesList* VisualSceneImporter::findMayaTransformNodes ( |
nothing calls this directly
no test coverage detected