Merge pull request #1 from assimp/master
I'm trying to merge in changes from the main project.pull/615/head
commit
868f8081e7
|
@ -677,10 +677,11 @@ aiNode* ProcessSpatialStructure(aiNode* parent, const IfcProduct& el, Conversion
|
||||||
const STEP::DB::RefMap& refs = conv.db.GetRefs();
|
const STEP::DB::RefMap& refs = conv.db.GetRefs();
|
||||||
|
|
||||||
// skip over space and annotation nodes - usually, these have no meaning in Assimp's context
|
// skip over space and annotation nodes - usually, these have no meaning in Assimp's context
|
||||||
|
bool skipGeometry = false;
|
||||||
if(conv.settings.skipSpaceRepresentations) {
|
if(conv.settings.skipSpaceRepresentations) {
|
||||||
if(const IfcSpace* const space = el.ToPtr<IfcSpace>()) {
|
if(const IfcSpace* const space = el.ToPtr<IfcSpace>()) {
|
||||||
IFCImporter::LogDebug("skipping IfcSpace entity due to importer settings");
|
IFCImporter::LogDebug("skipping IfcSpace entity due to importer settings");
|
||||||
return NULL;
|
skipGeometry = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -850,8 +851,10 @@ aiNode* ProcessSpatialStructure(aiNode* parent, const IfcProduct& el, Conversion
|
||||||
conv.apply_openings = &openings;
|
conv.apply_openings = &openings;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessProductRepresentation(el,nd.get(),subnodes,conv);
|
if (!skipGeometry) {
|
||||||
conv.apply_openings = conv.collect_openings = NULL;
|
ProcessProductRepresentation(el,nd.get(),subnodes,conv);
|
||||||
|
conv.apply_openings = conv.collect_openings = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (subnodes.size()) {
|
if (subnodes.size()) {
|
||||||
nd->mChildren = new aiNode*[subnodes.size()]();
|
nd->mChildren = new aiNode*[subnodes.size()]();
|
||||||
|
|
Loading…
Reference in New Issue