Project file update for elbeem
[blender-staging.git] / source / blender / python / api2_2x / rgbTuple.c
index f7ad9dc10af3f6a6db070ffbbebc8b8b2f51ff30..2e228e7066141c620aa2886bb421c3df86a13749 100644 (file)
@@ -161,9 +161,9 @@ int rgbTuple_setCol( BPy_rgbTuple * self, PyObject * args )
                                PyNumber_Check( PySequence_Fast_GET_ITEM( args, 0 ) ) &&
                                PyNumber_Check( PySequence_Fast_GET_ITEM( args, 1 ) ) &&
                                PyNumber_Check( PySequence_Fast_GET_ITEM( args, 2 ) ) ) {
-                       r = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 0 ) );
-                       g = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 1 ) );
-                       b = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 2 ) );
+                       r = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 0 ) );
+                       g = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 1 ) );
+                       b = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 2 ) );
                        ok = 1;
                } else
                        ok = PyArg_ParseTuple( args, "fff", &r, &g, &b );