Renamed parameters as 'from' is a reserved word in Python and so SWIG produced warnings.

This commit is contained in:
unknown 2012-07-15 21:23:31 +02:00
parent 4667a4cd37
commit 68077e2d79

View File

@ -34,11 +34,11 @@ namespace PolyVox
//FIXME - Make this a member of CubicSurfaceExtractorWithNormals?
template<typename VoxelType>
bool defaultIsQuadNeeded(VoxelType from, VoxelType to, float& materialToUse)
bool defaultIsQuadNeeded(VoxelType back, VoxelType front, float& materialToUse)
{
if((from > 0) && (to == 0))
if((back > 0) && (front == 0))
{
materialToUse = static_cast<float>(from);
materialToUse = static_cast<float>(back);
return true;
}
else