[Bf-blender-cvs] [e850ae14ee8] blender2.8: Fix T58659: absolute grid snapping wrong with custom grid scale.

Sebastian Parborg noreply at git.blender.org
Thu Dec 6 13:07:37 CET 2018


Commit: e850ae14ee8b44f126e986c37ee4307ed64c14d1
Author: Sebastian Parborg
Date:   Thu Dec 6 13:04:34 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBe850ae14ee8b44f126e986c37ee4307ed64c14d1

Fix T58659: absolute grid snapping wrong with custom grid scale.

Differential Revision: https://developer.blender.org/D4039

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

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 4f572e3a337..b9db773aaee 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -802,7 +802,7 @@ float ED_view3d_grid_view_scale(
 		}
 	}
 
-	return v3d->grid * grid_scale;
+	return grid_scale;
 }
 
 static void draw_view_axis(RegionView3D *rv3d, const rcti *rect)



More information about the Bf-blender-cvs mailing list