コード例 #1
0
ファイル: GLTFExtraDataHandler.cpp プロジェクト: ammar1/glTF
 shared_ptr <JSONObject> ExtraDataHandler::getExtras(COLLADAFW::UniqueId uniqueId)
 {
     std::string id = uniqueId.toAscii();
     
     if (!this->_allExtras->contains(id)) {
         this->_allExtras->setValue(id, shared_ptr<JSONObject> (new JSONObject()));
     }
     
     return static_pointer_cast<JSONObject>(this->_allExtras->getValue(id));
 }
コード例 #2
0
ファイル: DocumentImporter.cpp プロジェクト: DrangPo/blender
bool DocumentImporter::addExtraTags(const COLLADAFW::UniqueId &uid, ExtraTags *extra_tags)
{
	uid_tags_map[uid.toAscii()] = extra_tags;
	return true;
}