mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 14:15:28 +02:00
fix unit ShapeManager unit tests
This commit is contained in:
parent
8cb8092310
commit
71ab4a5780
1 changed files with 3 additions and 2 deletions
|
@ -139,11 +139,12 @@ void ShapeManagerTests::addManyShapes() {
|
|||
std::cout << __FILE__ << ":" << __LINE__
|
||||
<< " ERROR: i = " << i << " null box shape for scale = " << scale << std::endl;
|
||||
}
|
||||
info.setSphere(s);
|
||||
float radius = 0.5f * s;
|
||||
info.setSphere(radius);
|
||||
shape = shapeManager.getShape(info);
|
||||
if (!shape) {
|
||||
std::cout << __FILE__ << ":" << __LINE__
|
||||
<< " ERROR: i = " << i << " null sphere shape for radius = " << s << std::endl;
|
||||
<< " ERROR: i = " << i << " null sphere shape for radius = " << radius << std::endl;
|
||||
}
|
||||
}
|
||||
int numShapes = shapeManager.getNumShapes();
|
||||
|
|
Loading…
Reference in a new issue