Fix for [#22924] KX_PolygonMaterial.diffuse does not return expected list[r,g,b]
authorJoerg Mueller <nexyon@gmail.com>
Tue, 10 Aug 2010 10:26:25 +0000 (10:26 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Tue, 10 Aug 2010 10:26:25 +0000 (10:26 +0000)
source/gameengine/Ketsji/KX_PolygonMaterial.cpp

index dacc74f139f6a97796a1a3ce8ad2818a856eeeb0..63204b16e8b5043a93e1850aa0b6c0d81e881269 100644 (file)
@@ -233,7 +233,7 @@ PyAttributeDef KX_PolygonMaterial::Attributes[] = {
        KX_PYATTRIBUTE_FLOAT_RW("shininess", 0.0f, 1000.0f, KX_PolygonMaterial, m_shininess),
        KX_PYATTRIBUTE_FLOAT_RW("specularity", 0.0f, 1000.0f, KX_PolygonMaterial, m_specularity),
        
-       KX_PYATTRIBUTE_RW_FUNCTION("diffuse", KX_PolygonMaterial, pyattr_get_texture, pyattr_set_diffuse),
+       KX_PYATTRIBUTE_RW_FUNCTION("diffuse", KX_PolygonMaterial, pyattr_get_diffuse, pyattr_set_diffuse),
        KX_PYATTRIBUTE_RW_FUNCTION("specular",KX_PolygonMaterial, pyattr_get_specular, pyattr_set_specular),    
        
        KX_PYATTRIBUTE_RO_FUNCTION("tface",     KX_PolygonMaterial, pyattr_get_tface), /* How the heck is this even useful??? - Campbell */