added extra file search path for cmake-generated msvc projectfiles (needs 4 levels back)

This commit is contained in:
erwin.coumans
2010-02-08 08:51:08 +00:00
parent a6d9e977f7
commit 558abff4db
5 changed files with 24 additions and 2 deletions

View File

@@ -169,6 +169,11 @@ void ConvexDecompositionDemo::initPhysics(const char* filename)
//when running this app from visual studio, the default starting folder is different, so make a second attempt...
tcount = wo.loadObj("../../file.obj");
}
if (!tcount)
{
//cmake generated msvc files need 4 levels deep back... so make a 3rd attempt...
tcount = wo.loadObj("../../../../file.obj");
}