Skip to content

Commit

Permalink
Merge pull request #1942 from alicevision/fix/submitPopUp
Browse files Browse the repository at this point in the history
[ui] Fix conditions on which the prompt asking the user to save a project before submitting it to the render farm relies
  • Loading branch information
fabiencastan authored Mar 21, 2023
2 parents ba0541c + 9570437 commit c062160
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions meshroom/ui/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,9 @@ ApplicationWindow {

property bool warnIfUnsaved: true

// evaluate if global reconstruction computation can be started
property bool canStartComputation: _reconstruction ?
_reconstruction.viewpoints.count >= 2 // at least 2 images
&& !_reconstruction.computing // computation is not started
&& _reconstruction.graph.canComputeLeaves : // graph has no uncomputable nodes
false

// evaluate if graph computation can be submitted externally
property bool canSubmit: _reconstruction ?
_reconstruction.canSubmit // current setup allows to compute externally
&& canStartComputation // can be computed
&& _reconstruction.graph.filepath : // graph is saved on disk
false

Expand Down

0 comments on commit c062160

Please sign in to comment.