[chronojump] Fixed curve saving with isometric since 1.3.6
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed curve saving with isometric since 1.3.6
- Date: Thu, 7 Mar 2013 18:50:26 +0000 (UTC)
commit d4d8515712209eedc1e5cd77d076cf573be66311
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 7 19:49:30 2013 +0100
Fixed curve saving with isometric since 1.3.6
src/gui/encoder.cs | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index b8cfc3d..957655c 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -1028,7 +1028,18 @@ public partial class ChronoJumpWindow
int duration = Convert.ToInt32(decimal.Truncate(Convert.ToDecimal(curve.Duration)));
if(ecconLast != "c") {
EncoderCurve curveNext =
treeviewEncoderCaptureCurvesGetCurve(selectedID+1,false);
- duration +=
Convert.ToInt32(decimal.Truncate(Convert.ToDecimal(curveNext.Duration)));
+
+ //since isometric phase has been implemented (Chronojump 1.3.6)
+ //curveE.start + curveE.duration < curveC.start (because there's isometric
between)
+ int curveEccEnd = curveStart + duration;
+ int curveConStart = Convert.ToInt32(
+ decimal.Truncate(Convert.ToDecimal(curveNext.Start)));
+ int curveConDuration = Convert.ToInt32(
+ decimal.Truncate(Convert.ToDecimal(curveNext.Duration)));
+ int isometricDuration = curveConStart - curveEccEnd;
+
+ //duration is duration of ecc + duration of iso + duration of concentric
+ duration += (isometricDuration + curveConDuration);
}
desc = Util.RemoveTildeAndColonAndDot(entry_encoder_curve_comment.Text.ToString());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]