forked from qt-creator/qt-creator
QmlDesigner: Fix sync background color to 3D scene environment
The sync color setting expects an array (for potential gradient), but it was set to plain color when sync was turned on. Fixes: QDS-10527 Change-Id: Iba27aad8e2cd8c93e76a89984f739ddb6c4e2e7f Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -225,8 +225,9 @@ Item {
|
|||||||
if ("syncBackgroundColor" in toolStates) {
|
if ("syncBackgroundColor" in toolStates) {
|
||||||
syncBackgroundColor = toolStates.syncBackgroundColor;
|
syncBackgroundColor = toolStates.syncBackgroundColor;
|
||||||
if (syncBackgroundColor) {
|
if (syncBackgroundColor) {
|
||||||
var color = _generalHelper.sceneEnvironmentColor(sceneId);
|
var color = [];
|
||||||
updateViewStates({"selectBackgroundColor": color})
|
color[0] = _generalHelper.sceneEnvironmentColor(sceneId);
|
||||||
|
updateViewStates({"selectBackgroundColor": color});
|
||||||
}
|
}
|
||||||
} else if (resetToDefault) {
|
} else if (resetToDefault) {
|
||||||
syncBackgroundColor = false;
|
syncBackgroundColor = false;
|
||||||
|
Reference in New Issue
Block a user