Merge pull request #617 from RytoEX/master
image-source: Reload file when timestamp has changed
This commit is contained in:
commit
1946ee6443
@ -207,7 +207,7 @@ static void image_source_tick(void *data, float seconds)
|
||||
time_t t = get_modified_timestamp(context->file);
|
||||
context->update_time_elapsed = 0.0f;
|
||||
|
||||
if (context->file_timestamp < t) {
|
||||
if (context->file_timestamp != t) {
|
||||
image_source_load(context);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user