[Bf-blender-cvs] [ea69d47] master: Sculpting: Avoid calculating and chaching viewport matrices

Julian Eisel noreply at git.blender.org
Mon Aug 22 00:00:26 CEST 2016


Commit: ea69d471c89a504a71b6906ed081057dafd196d0
Author: Julian Eisel
Date:   Sun Aug 21 23:59:18 2016 +0200
Branches: master
https://developer.blender.org/rBea69d471c89a504a71b6906ed081057dafd196d0

Sculpting: Avoid calculating and chaching viewport matrices

Really couldn't find where this was used.

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

M	source/blender/editors/sculpt_paint/paint_stroke.c

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

diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index d53d87d..05270db 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -88,7 +88,6 @@ typedef struct PaintStroke {
 
 	/* Cached values */
 	ViewContext vc;
-	bglMats mats;
 	Brush *brush;
 	UnifiedPaintSettings *ups;
 
@@ -675,8 +674,6 @@ PaintStroke *paint_stroke_new(bContext *C,
 	float zoomx, zoomy;
 
 	view3d_set_viewcontext(C, &stroke->vc);
-	if (stroke->vc.v3d)
-		view3d_get_transformation(stroke->vc.ar, stroke->vc.rv3d, stroke->vc.obact, &stroke->mats);
 
 	stroke->get_location = get_location;
 	stroke->test_start = test_start;




More information about the Bf-blender-cvs mailing list