[Bf-blender-cvs] [95d3ca8] master: Fix inconsistency: expected scale not be subject to scale influence

Ichthyostega noreply at git.blender.org
Tue Aug 23 11:53:39 CEST 2016


Commit: 95d3ca8bc68c85643b9ce6b7340e2e1f48224fc2
Author: Ichthyostega
Date:   Fri Aug 19 15:12:52 2016 +0200
Branches: master
https://developer.blender.org/rB95d3ca8bc68c85643b9ce6b7340e2e1f48224fc2

Fix inconsistency: expected scale not be subject to scale influence

We should treat all three "target" ("expected") parameters in a similar way:
The "influence" control should only work on the measurement part of stabilisation,
i.e. it should only control the automatic part of stabilisation, while
the target parameters are deliberately set by the user and thus should
even be in effect when the automatic stabilsation is turned down.

It used to be so for location and rotation, but for the scale part,
I re-used the existing code for autoscale, which also had the scale influence
work on the autoscale factor. This was sensible in the old version,
since scale_influence was the only way to control the result. But now,
the user has always total control trough the "target_*" parameters
and thus we should prefer to treat all similar.

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

M	source/blender/blenkernel/intern/tracking_stabilize.c

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

diff --git a/source/blender/blenkernel/intern/tracking_stabilize.c b/source/blender/blenkernel/intern/tracking_stabilize.c
index 4d72d85..0f04724 100644
--- a/source/blender/blenkernel/intern/tracking_stabilize.c
+++ b/source/blender/blenkernel/intern/tracking_stabilize.c
@@ -1023,7 +1023,7 @@ static void stabilization_calculate_data(StabContext *ctx,
 	float target_pos[2];
 	float scaleinf = get_animated_scaleinf(ctx, framenr);
 
-	*r_scale = (get_animated_target_scale(ctx,framenr) - 1.0f) * scaleinf + 1.0f;
+	*r_scale = get_animated_target_scale(ctx,framenr);
 
 	if (ctx->stab->flag & TRACKING_STABILIZE_SCALE) {
 		*r_scale *= expf(scale_step * scaleinf);  /* Averaged in log scale */




More information about the Bf-blender-cvs mailing list