//------------------------------ bool LibraryEffectsLoader::begin__instance_image( const instance_image__AttributeData& attributeData ) { if ( (attributeData.present_attributes & instance_image__AttributeData::ATTRIBUTE_URL_PRESENT) == instance_image__AttributeData::ATTRIBUTE_URL_PRESENT ) { mCurrentSampler->setSource(createUniqueIdFromUrl(attributeData.url, COLLADAFW::Image::ID())); } return true; }
//------------------------------ bool LibraryControllersLoader::begin__morph( const morph__AttributeData& attributeData ) { mCurrentControllerType = MORPH_CONTROLLER; mCurrentMorphController = FW_NEW COLLADAFW::MorphController(createUniqueIdFromId(mCurrentControllerId.c_str(), COLLADAFW::MorphController::ID())); mCurrentControllerSourceUniqueId = createUniqueIdFromUrl(attributeData.source, COLLADAFW::Geometry::ID()); mCurrentMorphController->setSource( mCurrentControllerSourceUniqueId); mCurrentMorphController->setOriginalId ( mOriginalId ); mCurrentMorphController->setName ( mCurrentControllerName ); return true; }