mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:56:25 +02:00
Fix bug in naming animated screenshots since the change to PNG
This commit is contained in:
parent
ca142c2ff3
commit
eb3bb82e0c
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ void SnapshotAnimated::saveSnapshotAnimated(QString pathStill, float aspectRatio
|
||||||
SnapshotAnimated::snapshotStillPath = pathStill;
|
SnapshotAnimated::snapshotStillPath = pathStill;
|
||||||
SnapshotAnimated::snapshotAnimatedPath = pathStill;
|
SnapshotAnimated::snapshotAnimatedPath = pathStill;
|
||||||
SnapshotAnimated::snapshotAnimatedPath.replace("jpg", "gif");
|
SnapshotAnimated::snapshotAnimatedPath.replace("jpg", "gif");
|
||||||
|
SnapshotAnimated::snapshotAnimatedPath.replace("png", "gif");
|
||||||
|
|
||||||
// Ensure the snapshot timer is Precise (attempted millisecond precision)
|
// Ensure the snapshot timer is Precise (attempted millisecond precision)
|
||||||
SnapshotAnimated::snapshotAnimatedTimer->setTimerType(Qt::PreciseTimer);
|
SnapshotAnimated::snapshotAnimatedTimer->setTimerType(Qt::PreciseTimer);
|
||||||
|
@ -148,7 +149,7 @@ void SnapshotAnimated::processFrames() {
|
||||||
GifEnd(&(SnapshotAnimated::snapshotAnimatedGifWriter));
|
GifEnd(&(SnapshotAnimated::snapshotAnimatedGifWriter));
|
||||||
|
|
||||||
SnapshotAnimated::clearTempVariables();
|
SnapshotAnimated::clearTempVariables();
|
||||||
|
|
||||||
// Update the "Share" dialog with the processed GIF.
|
// Update the "Share" dialog with the processed GIF.
|
||||||
emit SnapshotAnimated::snapshotAnimatedDM->processingGifCompleted(SnapshotAnimated::snapshotAnimatedPath);
|
emit SnapshotAnimated::snapshotAnimatedDM->processingGifCompleted(SnapshotAnimated::snapshotAnimatedPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue