summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-04 14:53:11 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-04 14:53:11 (GMT)
commit26c3065c86a21b63672f844fa1b255596b2c3587 (patch)
treeb0b3998f74580f42ce8ce26e9283070e4c6be32f
parent0ee6c43355df1a1150429484fbe08191b8024f04 (diff)
Better way to update time of frame set.
-rw-r--r--src/lib/tng_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index f8a32cc..c0b3da9 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -17647,7 +17647,8 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_with_time_write
{
return(stat);
}
- if(tng_data->current_trajectory_frame_set.first_frame == frame_nr)
+ /* first_frame_time is -1 when it is not yet set. */
+ if(tng_data->current_trajectory_frame_set.first_frame_time < -0.1)
{
stat = tng_frame_set_first_frame_time_set(tng_data, time);
}
contact: Jan Huwald // Impressum