Fixed Geometry::removePrimitiveSet method so that it no longer emits a warning when
removing 0 elements form an empty primtive set list.
This commit is contained in:
@@ -867,7 +867,9 @@ bool Geometry::insertPrimitiveSet(unsigned int i,PrimitiveSet* primitiveset)
|
||||
|
||||
bool Geometry::removePrimitiveSet(unsigned int i, unsigned int numElementsToRemove)
|
||||
{
|
||||
if (i<_primitives.size() && numElementsToRemove>0)
|
||||
if (numElementsToRemove==0) return false;
|
||||
|
||||
if (i<_primitives.size())
|
||||
{
|
||||
if (i+numElementsToRemove<=_primitives.size())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user