Renamed parameters as 'from' is a reserved word in Python.
This commit is contained in:
		| @@ -75,11 +75,11 @@ namespace PolyVox | ||||
| 		MaterialType getMaterial() const throw() { return m_uMaterial; } | ||||
| 		void setMaterial(MaterialType uMaterial) { m_uMaterial = uMaterial; } | ||||
|  | ||||
| 		static bool isQuadNeeded(Material<Type> from, Material<Type> to, float& materialToUse) | ||||
| 		static bool isQuadNeeded(Material<Type> back, Material<Type> front, float& materialToUse) | ||||
| 		{ | ||||
| 			if((from.getMaterial() > 0) && (to.getMaterial() == 0)) | ||||
| 			if((back.getMaterial() > 0) && (front.getMaterial() == 0)) | ||||
| 			{ | ||||
| 				materialToUse = static_cast<float>(from.getMaterial()); | ||||
| 				materialToUse = static_cast<float>(back.getMaterial()); | ||||
| 				return true; | ||||
| 			} | ||||
| 			else | ||||
|   | ||||
| @@ -96,11 +96,11 @@ namespace PolyVox | ||||
| 		static DensityType getMaxDensity() throw() { return (0x01 << NoOfDensityBits) - 1; } | ||||
| 		static DensityType getMinDensity() throw() { return 0; } | ||||
|  | ||||
| 		static bool isQuadNeeded(MaterialDensityPair<Type, NoOfMaterialBits, NoOfDensityBits> from, MaterialDensityPair<Type, NoOfMaterialBits, NoOfDensityBits> to, float& materialToUse) | ||||
| 		static bool isQuadNeeded(MaterialDensityPair<Type, NoOfMaterialBits, NoOfDensityBits> back, MaterialDensityPair<Type, NoOfMaterialBits, NoOfDensityBits> front, float& materialToUse) | ||||
| 		{ | ||||
| 			if((from.getMaterial() > 0) && (to.getMaterial() == 0)) | ||||
| 			if((back.getMaterial() > 0) && (front.getMaterial() == 0)) | ||||
| 			{ | ||||
| 				materialToUse = static_cast<float>(from.getMaterial()); | ||||
| 				materialToUse = static_cast<float>(back.getMaterial()); | ||||
| 				return true; | ||||
| 			} | ||||
| 			else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user