[ui] Viewer3D: remove media if no loader was found for a valid source

This commit is contained in:
Yann Lanthony 2018-12-13 17:13:18 +01:00
parent 1f2baf43c3
commit edfc34fbd1

View file

@ -231,6 +231,10 @@ Entity {
model[prop] = Qt.binding(function() { return object ? object[prop] : 0; });
})
}
else if(finalSource) {
// source was valid but no loader was created, remove element
remove(index);
}
}
onStatusChanged: {