closes https://github.com/assimp/assimp/issues/1262: fix .
parent
428a4cdd71
commit
542fe31a94
|
@ -196,7 +196,6 @@ namespace Grammar {
|
||||||
|
|
||||||
return NoneType;
|
return NoneType;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Namespace Grammar
|
} // Namespace Grammar
|
||||||
|
|
||||||
namespace Assimp {
|
namespace Assimp {
|
||||||
|
@ -523,6 +522,10 @@ void OpenGEXImporter::handleObjectRefNode( DDLNode *node, aiScene *pScene ) {
|
||||||
if ( !objRefNames.empty() ) {
|
if ( !objRefNames.empty() ) {
|
||||||
m_unresolvedRefStack.push_back( new RefInfo( m_currentNode, RefInfo::MeshRef, objRefNames ) );
|
m_unresolvedRefStack.push_back( new RefInfo( m_currentNode, RefInfo::MeshRef, objRefNames ) );
|
||||||
}
|
}
|
||||||
|
} else if ( m_tokenType == Grammar::LightNodeToken ) {
|
||||||
|
// TODO!
|
||||||
|
} else if ( m_tokenType == Grammar::CameraNodeToken ) {
|
||||||
|
// TODO!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -602,6 +605,13 @@ void OpenGEXImporter::handleCameraObject( ODDLParser::DDLNode *node, aiScene *pS
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------
|
||||||
void OpenGEXImporter::handleLightObject( ODDLParser::DDLNode *node, aiScene *pScene ) {
|
void OpenGEXImporter::handleLightObject( ODDLParser::DDLNode *node, aiScene *pScene ) {
|
||||||
|
aiLight *light( new aiLight );
|
||||||
|
m_lightCache.push_back( light );
|
||||||
|
std::string objName = node->getName();
|
||||||
|
if ( !objName.empty() ) {
|
||||||
|
light->mName.Set( objName );
|
||||||
|
}
|
||||||
|
m_currentLight = light;
|
||||||
|
|
||||||
Property *prop( node->findPropertyByName( "type" ) );
|
Property *prop( node->findPropertyByName( "type" ) );
|
||||||
if ( nullptr != prop ) {
|
if ( nullptr != prop ) {
|
||||||
|
|
|
@ -132,7 +132,6 @@ protected:
|
||||||
void copyMeshes( aiScene *pScene );
|
void copyMeshes( aiScene *pScene );
|
||||||
void copyCameras( aiScene *pScene );
|
void copyCameras( aiScene *pScene );
|
||||||
void copyLights( aiScene *pScene );
|
void copyLights( aiScene *pScene );
|
||||||
|
|
||||||
void resolveReferences();
|
void resolveReferences();
|
||||||
void pushNode( aiNode *node, aiScene *pScene );
|
void pushNode( aiNode *node, aiScene *pScene );
|
||||||
aiNode *popNode();
|
aiNode *popNode();
|
||||||
|
|
Loading…
Reference in New Issue