[ui] Don't load node's output in the 3DViewer if it has no 3D output

This commit is contained in:
Candice Bentéjac 2023-10-26 17:15:51 +02:00
parent c02aa1f229
commit 0aba9a053f

View file

@ -995,7 +995,7 @@ ApplicationWindow {
}
function viewIn3D(attribute, mouse) {
if(!panel3dViewer)
if(!panel3dViewer || !attribute.node.has3DOutput)
return false;
var loaded = panel3dViewer.viewer3D.view(attribute);
// solo media if Control modifier was held