[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29966] branches/soc-2010-jwilkins/source/ blender/editors/sculpt_paint/paint_stroke.c: * on-surface brush cursor now takes scaling into account

Jason Wilkins Jason.A.Wilkins at gmail.com
Mon Jul 5 07:58:00 CEST 2010


Revision: 29966
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29966
Author:   jwilkins
Date:     2010-07-05 07:57:58 +0200 (Mon, 05 Jul 2010)

Log Message:
-----------
* on-surface brush cursor now takes scaling into account

Interestingly enough, it also shows the distortion of the brush caused by uneven scaling much better than the normal brush cursor.  

Modified Paths:
--------------
    branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/paint_stroke.c

Modified: branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/paint_stroke.c	2010-07-05 05:52:17 UTC (rev 29965)
+++ branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/paint_stroke.c	2010-07-05 05:57:58 UTC (rev 29966)
@@ -584,6 +584,8 @@
 
 				GLUquadric* sphere;
 
+				Object *ob= CTX_data_active_object(C);
+
 				glPushAttrib(
 					GL_COLOR_BUFFER_BIT|
 					GL_CURRENT_BIT|
@@ -609,6 +611,8 @@
 				else
 					glTranslatef(location[0], location[1], location[2]);
 
+				glScalef(ob->size[0], ob->size[1], ob->size[2]);
+
 				glMatrixMode(GL_PROJECTION);
 				glPushMatrix();
 				glLoadMatrixf(projection);





More information about the Bf-blender-cvs mailing list