Commit: 4f4c7808e407ba4d86ec0311ddf0c45c9fb6cf3f
Author: Mike Erwin
Date:   Fri Oct 14 22:40:55 2016 -0400
Branches: blender2.8
https://developer.blender.org/rB4f4c7808e407ba4d86ec0311ddf0c45c9fb6cf3f

fix pointer type warning

thanks, gcc

===================================================================

M       source/blender/editors/space_view3d/view3d_draw.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_draw.c 
b/source/blender/editors/space_view3d/view3d_draw.c
index 05dd937..7b7fe25 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -1277,9 +1277,10 @@ static void view3d_draw_grid(const bContext *C, ARegion 
*ar)
        const char *grid_unit = NULL;
 
        /* ortho grid goes first, does not write to depth buffer and doesn't 
need depth test so it will override
-       * objects if done last */
-       /* needs to be done always, gridview is adjusted in drawgrid() now, but 
only for ortho views. */
-       rv3d->gridview = ED_view3d_grid_scale(scene, v3d, grid_unit);
+        * objects if done last
+        * needs to be done always, gridview is adjusted in drawgrid() now, but 
only for ortho views.
+        */
+       rv3d->gridview = ED_view3d_grid_scale(scene, v3d, &grid_unit);
 
        glEnable(GL_DEPTH_TEST);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to