aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qml/qmlpuppet
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2022-08-25 12:05:24 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2022-08-25 09:40:05 +0000
commitf6e8b5f753e05f210979987dc3e9092cefb8b958 (patch)
tree5af5913f740b69911fdf0f2e0a8617e241525033 /share/qtcreator/qml/qmlpuppet
parent1bfd078071f6a26d00a789c66ecd0aa77ef3d00b (diff)
QmlDesigner: Use actual material for model previews
Fixes: QDS-7412 Change-Id: Iec020578460e417e602f832ed0d667fbdda4e96a Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet')
-rw-r--r--share/qtcreator/qml/qmlpuppet/mockfiles/qt6/ModelNodeView.qml7
1 files changed, 1 insertions, 6 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/ModelNodeView.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/ModelNodeView.qml
index ea2e23837f..31228abc69 100644
--- a/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/ModelNodeView.qml
+++ b/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/ModelNodeView.qml
@@ -67,11 +67,6 @@ View3D {
id: model
source: _generalHelper.resolveAbsoluteSourceUrl(sourceModel)
geometry: sourceModel.geometry
-
- materials: [
- DefaultMaterial {
- diffuseColor: "#999999"
- }
- ]
+ materials: sourceModel.materials
}
}