[Bf-blender-cvs] [1b415e4456f] blender2.8: Motion paths: default to bone head instead of tail location.

Brecht Van Lommel noreply at git.blender.org
Tue Jul 24 11:38:48 CEST 2018


Commit: 1b415e4456ff4f6666c92efabeb88ead84227648
Author: Brecht Van Lommel
Date:   Mon Jul 23 16:38:25 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1b415e4456ff4f6666c92efabeb88ead84227648

Motion paths: default to bone head instead of tail location.

This puts the motion path in the same location as the transform gizmo,
which is less confusing especially if you have a custom bone shape where
the tail is not visible.

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

M	source/blender/blenkernel/intern/anim.c
M	source/blender/editors/armature/pose_edit.c

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

diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c
index eed8943cd5b..a867accfe44 100644
--- a/source/blender/blenkernel/intern/anim.c
+++ b/source/blender/blenkernel/intern/anim.c
@@ -99,6 +99,8 @@ void animviz_settings_init(bAnimVizSettings *avs)
 	avs->path_viewflag = (MOTIONPATH_VIEW_KFRAS | MOTIONPATH_VIEW_KFNOS);
 
 	avs->path_step = 1;
+
+	avs->path_bakeflag |= MOTIONPATH_BAKE_HEADS;
 }
 
 /* ------------------- */
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c
index a9ba8c405ba..3ae578279ca 100644
--- a/source/blender/editors/armature/pose_edit.c
+++ b/source/blender/editors/armature/pose_edit.c
@@ -287,7 +287,8 @@ void POSE_OT_paths_calculate(wmOperatorType *ot)
 	RNA_def_int(ot->srna, "end_frame", 250, MINAFRAME, MAXFRAME, "End",
 	            "Last frame to calculate bone paths on", MINFRAME, MAXFRAME / 2.0);
 
-	RNA_def_enum(ot->srna, "bake_location", rna_enum_motionpath_bake_location_items, 0,
+	RNA_def_enum(ot->srna, "bake_location", rna_enum_motionpath_bake_location_items,
+	             MOTIONPATH_BAKE_HEADS,
 	             "Bake Location",
 	             "Which point on the bones is used when calculating paths");
 }



More information about the Bf-blender-cvs mailing list