Use helloworld as X3D-Testcase
parent
8ed18621db
commit
a31c979abc
|
@ -63,15 +63,12 @@ inline X3DNodeElementBase *X3DImporter::MACRO_USE_CHECKANDAPPLY(XmlNode &node, s
|
||||||
if (nullptr == mNodeElementCur) {
|
if (nullptr == mNodeElementCur) {
|
||||||
printf("here\n");
|
printf("here\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
//do {
|
|
||||||
checkNodeMustBeEmpty(node);
|
checkNodeMustBeEmpty(node);
|
||||||
if (!pDEF.empty())
|
if (!pDEF.empty())
|
||||||
Assimp::Throw_DEF_And_USE(node.name());
|
Assimp::Throw_DEF_And_USE(node.name());
|
||||||
if (!FindNodeElement(pUSE, pType, &pNE))
|
if (!FindNodeElement(pUSE, pType, &pNE))
|
||||||
Assimp::Throw_USE_NotFound(node.name(), pUSE);
|
Assimp::Throw_USE_NotFound(node.name(), pUSE);
|
||||||
mNodeElementCur->Children.push_back(pNE); /* add found object as child to current element */
|
mNodeElementCur->Children.push_back(pNE); /* add found object as child to current element */
|
||||||
//} while (false);
|
|
||||||
|
|
||||||
return pNE;
|
return pNE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ class utX3DImportExport : public AbstractImportExportBase {
|
||||||
public:
|
public:
|
||||||
bool importerTest() override {
|
bool importerTest() override {
|
||||||
Assimp::Importer importer;
|
Assimp::Importer importer;
|
||||||
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/X3D/ComputerKeyboard.x3d", aiProcess_ValidateDataStructure);
|
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/X3D/HelloX3dTrademark.x3d", aiProcess_ValidateDataStructure);
|
||||||
return nullptr != scene;
|
return nullptr != scene;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue