Skip to content

Commit 2e0985c

Browse files
authored
Fix wrong render time after loading a scene that was rendered before but has no dump. (#715)
1 parent 5d75a99 commit 2e0985c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • chunky/src/java/se/llbit/chunky/renderer/scene

chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,9 @@ public synchronized boolean loadDump(RenderContext context, TaskTracker taskTrac
19741974
if (!tryLoadDump(context, name + ".dump", taskTracker)) {
19751975
// Failed to load the default render dump - try the backup file.
19761976
if (!tryLoadDump(context, name + ".dump.backup", taskTracker)) {
1977-
spp = 0; // Set spp = 0 because we don't have the old render state.
1977+
// we don't have the old render state, so reset spp and render time
1978+
spp = 0;
1979+
renderTime = 0;
19781980
return false;
19791981
}
19801982
}

0 commit comments

Comments
 (0)