[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18166] branches/soc-2008-nicholasbishop/ source/blender/blenkernel/intern/scene.c: Based on user feedback, changed the default curve from the sinusoidal shape to a sharper point.
Nicholas Bishop
nicholasbishop at gmail.com
Tue Dec 30 05:41:37 CET 2008
Revision: 18166
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18166
Author: nicholasbishop
Date: 2008-12-30 05:41:34 +0100 (Tue, 30 Dec 2008)
Log Message:
-----------
Based on user feedback, changed the default curve from the sinusoidal shape to a sharper point. Makes the default brush less blobby.
Modified Paths:
--------------
branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/scene.c
Modified: branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/scene.c
===================================================================
--- branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/scene.c 2008-12-30 04:17:55 UTC (rev 18165)
+++ branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/scene.c 2008-12-30 04:41:34 UTC (rev 18166)
@@ -688,7 +688,6 @@
}
}
-/* Default curve approximates 0.5 * (cos(pi * x) + 1), with 0 <= x <= 1 */
void sculpt_reset_curve(SculptData *sd)
{
CurveMap *cm = NULL;
@@ -700,21 +699,15 @@
if(cm->curve)
MEM_freeN(cm->curve);
- cm->curve= MEM_callocN(6*sizeof(CurveMapPoint), "curve points");
+ cm->curve= MEM_callocN(3*sizeof(CurveMapPoint), "curve points");
cm->flag &= ~CUMA_EXTEND_EXTRAPOLATE;
- cm->totpoint= 6;
+ cm->totpoint= 3;
cm->curve[0].x= 0;
cm->curve[0].y= 1;
- cm->curve[1].x= 0.1;
- cm->curve[1].y= 0.97553;
- cm->curve[2].x= 0.3;
- cm->curve[2].y= 0.79389;
- cm->curve[3].x= 0.9;
- cm->curve[3].y= 0.02447;
- cm->curve[4].x= 0.7;
- cm->curve[4].y= 0.20611;
- cm->curve[5].x= 1;
- cm->curve[5].y= 0;
+ cm->curve[1].x= 0.33;
+ cm->curve[1].y= 0.33;
+ cm->curve[2].x= 1;
+ cm->curve[2].y= 0;
curvemapping_changed(sd->cumap, 0);
}
More information about the Bf-blender-cvs
mailing list