Changed: When shape is a pacs_prim file, don't put "Not found" message

This commit is contained in:
kervala 2016-10-25 16:04:06 +02:00
parent d93fde2853
commit fcd8ba8b4f

View file

@ -573,7 +573,7 @@ bool CInstanceGroup::addToScene (CScene& scene, IDriver *driver, uint selectedTe
else
{
_Instances[i] = scene.createInstance (shapeName);
}
if (_Instances[i] == NULL)
{
nlwarning("Not found '%s' file", shapeName.c_str());
@ -581,6 +581,7 @@ bool CInstanceGroup::addToScene (CScene& scene, IDriver *driver, uint selectedTe
}
}
}
}
scene.setWaterCallback(oldCallback);
return addToSceneWhenAllShapesLoaded (scene, driver, selectedTexture);
}