diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-05 10:57:09 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-05 10:57:09 (GMT) |
commit | 047b10a5217b5845ff6d8976bf2812957a54b196 (patch) | |
tree | f6ccf10f43e10c3e7c0e2c141b8f6d5bd879d99b | |
parent | 7b6303d99dbaacf03abb402e654b4cb8d4dcb05c (diff) |
Further improved searching for next frame with data.
-rw-r--r-- | src/lib/tng_io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 32f02ea..99b468c 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -18120,7 +18120,8 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_next_frame_present_dat continue; } } - if(p_data->last_retrieved_frame >= 0) + if(frame_set->first_frame != current_frame && + p_data->last_retrieved_frame >= 0) { data_frame = p_data->last_retrieved_frame + p_data->stride_length; } @@ -18206,7 +18207,8 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_next_frame_present_dat continue; } } - if(np_data->last_retrieved_frame >= 0) + if(frame_set->first_frame != current_frame && + np_data->last_retrieved_frame >= 0) { data_frame = np_data->last_retrieved_frame + np_data->stride_length; } |