Skip to content
Snippets Groups Projects
Commit cc22864e authored by anikhalder's avatar anikhalder
Browse files

Add a convenience function to check if model owns any object

parent 87354d85
No related branches found
No related tags found
No related merge requests found
......@@ -144,6 +144,14 @@ void Model::releaseGeometries()
o->releaseGeometry();
}
bool Model::modelIsEmpty()
{
if(objects.isEmpty() && objectsBlend.isEmpty())
return true;
else
return false;
}
void Model::draw(Canvas& canvas) const
{
for (auto o : objects)
......
......@@ -46,6 +46,8 @@ public:
void releaseGeometries(); // may be called any time
bool modelIsEmpty();
virtual void cameraUpdated(Camera const&) {}
Camera::Position defCamPos; // default camera params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment