[Bf-blender-cvs] [e6169db6ed9] PSketch-279: Push -> Easing: "Second" formulation attempt

Joshua Leung noreply at git.blender.org
Tue May 8 18:03:37 CEST 2018


Commit: e6169db6ed9957457e363b35048b634705cf64a7
Author: Joshua Leung
Date:   Tue Jan 2 05:18:14 2018 +1300
Branches: PSketch-279
https://developer.blender.org/rBe6169db6ed9957457e363b35048b634705cf64a7

Push -> Easing: "Second" formulation attempt

* First attempt directly using the scaled amount yielded zero effect
* Second attempt yields some effects, but probably changes to abruptly?

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

M	source/blender/editors/armature/pose_sculpt.c

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

diff --git a/source/blender/editors/armature/pose_sculpt.c b/source/blender/editors/armature/pose_sculpt.c
index ebefe3fa3ea..1a47dec7ea3 100644
--- a/source/blender/editors/armature/pose_sculpt.c
+++ b/source/blender/editors/armature/pose_sculpt.c
@@ -1622,10 +1622,14 @@ static void psculpt_brush_push_apply(tPoseSculptingOp *pso, bPoseChannel *pchan,
 	if (do_head) {
 		if (do_x) pchan->curveInX += delta[0];
 		if (do_z) pchan->curveInY += delta[2];
+		
+		if (do_ease) pchan->ease1 += delta[1]; // / (pchan->bone->length / 2.0f);
 	}
 	if (do_tail) {
 		if (do_x) pchan->curveOutX += delta[0];
 		if (do_z) pchan->curveOutY += delta[2];
+		
+		if (do_ease) pchan->ease2 -= delta[1]; // / (pchan->bone->length / 2.0f);
 	}
 	
 	/* move the endpoints of the bone too? */



More information about the Bf-blender-cvs mailing list