mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 14:41:57 +00:00
Draw wire sphere on selected lights to visualize light radius
This commit is contained in:
@@ -811,6 +811,12 @@ void CModelEditorWindow::on_actionImport_triggered()
|
||||
aiProcess_RemoveRedundantMaterials |
|
||||
aiProcess_OptimizeGraph);
|
||||
|
||||
if (!pScene)
|
||||
{
|
||||
QMessageBox::warning(this, "Error", "Error: Couldn't import file!");
|
||||
return;
|
||||
}
|
||||
|
||||
CModel *pModel = nullptr;
|
||||
CMaterialSet *pSet = CMaterialLoader::ImportAssimpMaterials(pScene, ePrime);
|
||||
pModel = CModelLoader::ImportAssimpNode(pScene->mRootNode, pScene, *pSet);
|
||||
|
||||
Reference in New Issue
Block a user