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] Don't load a node's output in the 3DViewer if it has no 3D output #2230

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

cbentejac
Copy link
Contributor

Description

Prior to this PR and following #2208, any file whose extension is .json, .sfm or .abc could be loaded in the 3D viewer. Double-clicking on a node that had an output with one of these extensions, even if it was not a 3D output, led to the node being loaded in the 3D viewer.

For example, double-clicking the CameraInit node, which has .sfm outputs but no 3D output, resulted in it being added to the list of entries of the Inspector3D.

This PR ensures that no node will be loaded in the 3D viewer upon being double-clicked unless it has a 3D output, which is indicated by an icon next to the node's name in the Graph Editor. Only .abc outputs are considered to be valid 3D outputs.

Any .json, .sfm and .abc can still be dropped in the 3D viewer, and the SfmDataLoader will load it if it is valid.

This relates to alicevision/QtAliceVision#49.

@cbentejac cbentejac added this to the Meshroom 2023.3.0 milestone Oct 26, 2023
@cbentejac cbentejac self-assigned this Oct 26, 2023
@cbentejac cbentejac changed the title [ui] Don't load node's output in the 3DViewer if it has no 3D output [ui] Don't load a node's output in the 3DViewer if it has no 3D output Oct 26, 2023
@fabiencastan fabiencastan merged commit 4269b83 into develop Oct 27, 2023
2 checks passed
@fabiencastan fabiencastan deleted the fix/3dViewerLoading branch October 27, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants