quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated...
[blender.git] / source / blender / editors / space_view3d / drawvolume.c
index 5ac6382bdbecb30bd41a7ee7c160e0df1df7065b..542ed7af0e605fec8e9ccfce4362aa8b88167266 100644 (file)
@@ -461,7 +461,9 @@ void draw_smoke_volume(SmokeDomainSettings *sds, Object *ob,
                                glTexCoord3d((points[i * 3 + 0] - min[0]) * cor[0] / size[0],
                                             (points[i * 3 + 1] - min[1]) * cor[1] / size[1],
                                             (points[i * 3 + 2] - min[2]) * cor[2] / size[2]);
-                               glVertex3f(points[i * 3 + 0] / fabs(ob->size[0]), points[i * 3 + 1] / fabs(ob->size[1]), points[i * 3 + 2] / fabs(ob->size[2]));
+                               glVertex3f(points[i * 3 + 0] / fabsf(ob->size[0]),
+                                          points[i * 3 + 1] / fabsf(ob->size[1]),
+                                          points[i * 3 + 2] / fabsf(ob->size[2]));
                        }
                        glEnd();
 
@@ -474,7 +476,9 @@ void draw_smoke_volume(SmokeDomainSettings *sds, Object *ob,
                                glTexCoord3d((points[i * 3 + 0] - min[0]) * cor[0] / size[0],
                                             (points[i * 3 + 1] - min[1]) * cor[1] / size[1],
                                             (points[i * 3 + 2] - min[2]) * cor[2] / size[2]);
-                               glVertex3f(points[i * 3 + 0] / fabs(ob->size[0]), points[i * 3 + 1] / fabs(ob->size[1]), points[i * 3 + 2] / fabs(ob->size[2]));
+                               glVertex3f(points[i * 3 + 0] / fabsf(ob->size[0]),
+                                          points[i * 3 + 1] / fabsf(ob->size[1]),
+                                          points[i * 3 + 2] / fabsf(ob->size[2]));
                        }
                        glEnd();
                }