[Bf-blender-cvs] [577b1a6] PSketch: PSculpt: Code Cleanup - Remove some old debugging cruft

Joshua Leung noreply at git.blender.org
Sun Jan 31 14:29:39 CET 2016


Commit: 577b1a6c913a7fc546551ca1b9d1a552b4232af1
Author: Joshua Leung
Date:   Mon Feb 1 01:49:11 2016 +1300
Branches: PSketch
https://developer.blender.org/rB577b1a6c913a7fc546551ca1b9d1a552b4232af1

PSculpt: Code Cleanup - Remove some old debugging cruft

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

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 8ec227d..54602d7 100644
--- a/source/blender/editors/armature/pose_sculpt.c
+++ b/source/blender/editors/armature/pose_sculpt.c
@@ -890,8 +890,8 @@ static void psculpt_brush_curl_apply(tPoseSculptingOp *pso, bPoseChannel *pchan,
 	 *   however is much too strong for controllability. So, leaving it as-is.
 	 * - Rotations are internally represented using radians, which are very sensitive
 	 */
-	angle = psculpt_brush_calc_influence(pso, dist);      //printf("%f ", angle);
-	angle = DEG2RAD(angle);                               //printf("%f \n", angle);
+	angle = psculpt_brush_calc_influence(pso, dist);
+	angle = DEG2RAD(angle);
 	
 	if (pso->invert) angle = -angle;
 	
@@ -932,8 +932,8 @@ static void psculpt_brush_twist_apply(tPoseSculptingOp *pso, bPoseChannel *pchan
 	 *   however is much too strong for controllability. So, leaving it as-is.
 	 * - Rotations are internally represented using radians, which are very sensitive
 	 */
-	angle = psculpt_brush_calc_influence(pso, dist);  //printf("%f ", angle);
-	angle = DEG2RAD(angle);                           //printf("%f \n", angle);
+	angle = psculpt_brush_calc_influence(pso, dist);
+	angle = DEG2RAD(angle);
 	
 	if (pso->invert) angle = -angle;
 	
@@ -1017,7 +1017,6 @@ static void psculpt_brush_reset_apply(tPoseSculptingOp *pso, bPoseChannel *pchan
 		if ((locks & OB_LOCK_ROTZ) == 0)
 			eul[2] = interpf(0.0f, eul[2], fac);
 		
-		// do compat euler?
 		set_pchan_eul_rotation(eul, pchan);
 	}
 	
@@ -1096,7 +1095,6 @@ static void psculpt_brush_restore_apply(tPoseSculptingOp *pso, bPoseChannel *pch
 			if ((locks & OB_LOCK_ROTZ) == 0)
 				eul[2] = interpf(oldeul[2], eul[2], fac);
 			
-			// do compat euler?
 			set_pchan_eul_rotation(eul, pchan);
 		}
 	}
@@ -1554,7 +1552,6 @@ static void psculpt_brush_apply(bContext *C, wmOperator *op, PointerRNA *itemptr
 			bArmature *arm = (bArmature *)ob->data;
 			
 			/* perform autokeying first */
-			// XXX: order?
 			psculpt_brush_do_autokey(C, pso);
 			
 			/* old optimize trick... this enforces to bypass the depgraph




More information about the Bf-blender-cvs mailing list