Details
Description
CustomMaterials (both types) don't work when used in this manner:
Window { visible: true height: 800 width: 600 Node { id: scene PerspectiveCamera { z: 300 } DirectionalLight { } Model { source: "#Cube" material: CustomMaterial { } } } View3D { anchors.fill: parent importScene: scene } }
But do work when used inline of the View3D. This is likely because CustomMaterials reference the scenemanager attached to a View3D, but this isn't actually a very unusual usecase so it should be able to work.
Attachments
For Gerrit Dashboard: QTBUG-87020 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
316138,3 | Prevent that importSceneManager's renderContextInterface is nullptr | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |