summaryrefslogtreecommitdiff
path: root/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml')
-rw-r--r--share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml b/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
index 028957c882..c610df94c5 100644
--- a/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
+++ b/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
@@ -50,7 +50,7 @@ Rectangle {
normalColor: "transparent"
iconSize: StudioTheme.Values.bigIconFontSize
buttonSize: root.height
- enabled: hasMaterial && hasQuick3DImport
+ enabled: hasMaterial && hasModelSelection && hasQuick3DImport
onClicked: root.toolBarAction(ToolBarAction.ApplyToSelected)
tooltip: qsTr("Apply material to selected model.")
}