Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui] Add a new advanced menu action to load templates like regular projects #1920

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

cbentejac
Copy link
Contributor

Description

This PR adds a new menu action, "Load Template", in the "Advanced" sub-menu of "File".

"Load Template" allows to load an .mg file as a regular project file, without taking into account if it is a template.

If the project file is not a template, it will be opened exactly as if the "Open File" menu had been used. If it is a template and it contains "Publish" nodes, they will not be filtered out (whereas they will be if the template is opened with "Open File" or through the "New" actions).

Features list

  • Add a new menu action to load templates like regular project files

@cbentejac cbentejac self-assigned this Mar 3, 2023
meshroom/ui/qml/main.qml Outdated Show resolved Hide resolved
@fabiencastan fabiencastan added this to the Meshroom 2023.1.0 milestone Mar 3, 2023
@cbentejac cbentejac marked this pull request as ready for review March 6, 2023 08:59
"Load Template" allows to load an .mg file as a regular project file,
without taking into account if it is a template.

If the project file is not a template, it will be opened exactly as if the
"Open File" menu had been used. If it is a template and it contains
"Publish" nodes, they will not be filtered out (whereas they will be if
the template is opened with "Open File" or through the "New" actions).
@fabiencastan fabiencastan merged commit 33def1d into develop Mar 7, 2023
@fabiencastan fabiencastan deleted the dev/loadTemplates branch March 7, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants