Renamed parameters as 'from' is a reserved word in Python and so SWIG produced warnings.
This commit is contained in:
parent
4667a4cd37
commit
68077e2d79
@ -34,11 +34,11 @@ namespace PolyVox
|
|||||||
|
|
||||||
//FIXME - Make this a member of CubicSurfaceExtractorWithNormals?
|
//FIXME - Make this a member of CubicSurfaceExtractorWithNormals?
|
||||||
template<typename VoxelType>
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user