Project file update for elbeem
[blender-staging.git] / source / blender / python / api2_2x / Material.c
index fc550545857a823d660af40db0f4050debabf56a..31f6bb2290cd6c6a077ff307980ff82b958f630f 100644 (file)
@@ -1987,7 +1987,7 @@ static int Material_setColorComponent( BPy_Material * self, PyObject * value,
                return EXPP_ReturnIntError( PyExc_TypeError,
                                                "expected float argument in [0.0,1.0]" );
 
-       param = PyFloat_AsDouble( value );
+       param = (float)PyFloat_AsDouble( value );
        param = EXPP_ClampFloat( param, EXPP_MAT_COL_MIN, EXPP_MAT_COL_MAX );
 
        switch ( (int)closure ) {