fix for issue #1037 (TestHoveringTank hull-shape performance issue)

This commit is contained in:
Stephen Gold 2019-04-12 23:03:56 -07:00
parent 06aa011208
commit 0814858284

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009-2012 jMonkeyEngine * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -61,6 +61,8 @@ extern "C" {
shape->addPoint(vect); shape->addPoint(vect);
} }
shape->optimizeConvexHull();
return reinterpret_cast<jlong>(shape); return reinterpret_cast<jlong>(shape);
} }