mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 05:12:00 +02:00
Merge pull request #2463 from alicevision/fix/envVarSequencePlayer
[ui] Add MESHROOM_USE_SEQUENCE_PLAYER environment variable
This commit is contained in:
commit
f53dbf6a01
3 changed files with 7 additions and 2 deletions
|
@ -463,6 +463,9 @@ class MeshroomApp(QApplication):
|
||||||
|
|
||||||
def _default8bitViewerEnabled(self):
|
def _default8bitViewerEnabled(self):
|
||||||
return bool(os.environ.get("MESHROOM_USE_8BIT_VIEWER", False))
|
return bool(os.environ.get("MESHROOM_USE_8BIT_VIEWER", False))
|
||||||
|
|
||||||
|
def _defaultSequencePlayerEnabled(self):
|
||||||
|
return bool(os.environ.get("MESHROOM_USE_SEQUENCE_PLAYER", False))
|
||||||
|
|
||||||
activeProjectChanged = Signal()
|
activeProjectChanged = Signal()
|
||||||
activeProject = Property(Variant, lambda self: self._activeProject, notify=activeProjectChanged)
|
activeProject = Property(Variant, lambda self: self._activeProject, notify=activeProjectChanged)
|
||||||
|
@ -476,3 +479,4 @@ class MeshroomApp(QApplication):
|
||||||
recentProjectFiles = Property("QVariantList", _recentProjectFiles, notify=recentProjectFilesChanged)
|
recentProjectFiles = Property("QVariantList", _recentProjectFiles, notify=recentProjectFilesChanged)
|
||||||
recentImportedImagesFolders = Property("QVariantList", _recentImportedImagesFolders, notify=recentImportedImagesFoldersChanged)
|
recentImportedImagesFolders = Property("QVariantList", _recentImportedImagesFolders, notify=recentImportedImagesFoldersChanged)
|
||||||
default8bitViewerEnabled = Property(bool, _default8bitViewerEnabled, constant=True)
|
default8bitViewerEnabled = Property(bool, _default8bitViewerEnabled, constant=True)
|
||||||
|
defaultSequencePlayerEnabled = Property(bool, _defaultSequencePlayerEnabled, constant=True)
|
||||||
|
|
|
@ -279,6 +279,8 @@ FocusScope {
|
||||||
currentFrame = frameRange.min
|
currentFrame = frameRange.min
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enableSequencePlayerAction.checked = true
|
||||||
|
|
||||||
return resolved
|
return resolved
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < _reconstruction.viewpoints.count; i++) {
|
for (let i = 0; i < _reconstruction.viewpoints.count; i++) {
|
||||||
|
@ -347,7 +349,6 @@ FocusScope {
|
||||||
} else {
|
} else {
|
||||||
root.source = ""
|
root.source = ""
|
||||||
root.sequence = getSequence()
|
root.sequence = getSequence()
|
||||||
enableSequencePlayerAction.checked = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ Item {
|
||||||
id: enableSequencePlayerAction
|
id: enableSequencePlayerAction
|
||||||
text: "Enable Sequence Player"
|
text: "Enable Sequence Player"
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: true
|
checked: MeshroomApp.defaultSequencePlayerEnabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue