mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 00:38:41 +02:00
[ui] load 3D depth map: custom label in 3D inspector
This commit is contained in:
parent
125fa8ca17
commit
935a8a2568
4 changed files with 11 additions and 9 deletions
|
@ -83,7 +83,7 @@ Entity {
|
|||
return -1;
|
||||
}
|
||||
|
||||
function load(filepath) {
|
||||
function load(filepath, label = undefined) {
|
||||
var pathStr = Filepath.urlToString(filepath);
|
||||
if(!Filepath.exists(pathStr))
|
||||
{
|
||||
|
@ -99,12 +99,11 @@ Entity {
|
|||
// add file to the internal ListModel
|
||||
m.mediaModel.append(makeElement({
|
||||
"source": pathStr,
|
||||
"label": Filepath.basename(pathStr),
|
||||
"label": label ? label : Filepath.basename(pathStr),
|
||||
"section": "External"
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
function view(attribute) {
|
||||
if(m.sourceToEntity[attribute]) {
|
||||
ensureVisible(attribute);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue