diff options
author | The Qt Project <gerrit-noreply@qt-project.org> | 2024-04-23 14:09:06 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2024-04-23 14:09:06 +0000 |
commit | a86892b8af6c6169a7143d51a5d077f24573c6d2 (patch) | |
tree | e9750e1ff09259af3ce476f39439103c2424cdfe /src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp | |
parent | a7f92dd8bec1fd61c886ca039508ff6238211e5e (diff) | |
parent | ef0ee52bf92739bc5b32d70c01ff1eadd752d813 (diff) |
Merge "Merge remote-tracking branch 'origin/qds/dev'"
Diffstat (limited to 'src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp b/src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp index 95a260c26f..a1dfcc8f98 100644 --- a/src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp +++ b/src/plugins/qmldesigner/components/edit3d/bakelightsdatamodel.cpp @@ -15,6 +15,8 @@ #include "qmlobjectnode.h" #include "variantproperty.h" +#include <model/modelutils.h> + #include <utils3d.h> #include <utils/expected.h> @@ -292,7 +294,7 @@ bool BakeLightsDataModel::reset() if (!hasExposedProps && node.metaInfo().isFileComponent() && node.metaInfo().isQtQuick3DNode()) { - const QString compFile = node.metaInfo().componentFileName(); + const QString compFile = ModelUtils::componentFilePath(node); const QString projPath = m_view->externalDependencies().currentProjectDirPath(); if (compFile.startsWith(projPath)) { // Quick and dirty scan of the component source to check if it potentially has |