Kim Kulling 2017-05-16 21:07:20 +02:00
parent 428a4cdd71
commit 542fe31a94
2 changed files with 11 additions and 2 deletions

View File

@ -196,7 +196,6 @@ namespace Grammar {
return NoneType;
}
} // Namespace Grammar
namespace Assimp {
@ -523,6 +522,10 @@ void OpenGEXImporter::handleObjectRefNode( DDLNode *node, aiScene *pScene ) {
if ( !objRefNames.empty() ) {
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 ) {
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" ) );
if ( nullptr != prop ) {

View File

@ -132,7 +132,6 @@ protected:
void copyMeshes( aiScene *pScene );
void copyCameras( aiScene *pScene );
void copyLights( aiScene *pScene );
void resolveReferences();
void pushNode( aiNode *node, aiScene *pScene );
aiNode *popNode();