metadata
Wenzel Jakob 2014-05-20 18:42:26 +02:00
parent d2fb59ca4e
commit 20f0b03fa3
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ public:
/// When the file contains multiple meshes, this index specifies which one to load
int shapeIndex = props.getInteger("shapeIndex", 0);
AssertEx(shapeIndex >= 0, "Shape index must be nonnegative!");
std::string name = (props.getID() != "unnamed") ? props.getID()
: formatString("%s@%i", filePath.stem().string().c_str(), shapeIndex);