summaryrefslogtreecommitdiffstats
path: root/src/dm/systems/Qt3DSDMValue.cpp
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2019-08-13 09:18:32 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2019-08-13 11:51:56 +0300
commitd2a1092b93e9669288dc1d5825bfec849bec9f95 (patch)
treebb309388747c58f677f91e974bbd6ff5edd42dab /src/dm/systems/Qt3DSDMValue.cpp
parentbd488ea03ec4a969e86c55909c60deecdc9f9af2 (diff)
Change Float4 to use QVector4D
This fixes a bug on the editor side and makes Float4 be in line with the other types using QVector3D and QVector2D. Task-number: QT3DS-3824 Change-Id: Iee04c56575e91afa1e3e27ed02abbe50a72231e0 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/dm/systems/Qt3DSDMValue.cpp')
-rw-r--r--src/dm/systems/Qt3DSDMValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dm/systems/Qt3DSDMValue.cpp b/src/dm/systems/Qt3DSDMValue.cpp
index 32a389c..57ba400 100644
--- a/src/dm/systems/Qt3DSDMValue.cpp
+++ b/src/dm/systems/Qt3DSDMValue.cpp
@@ -114,7 +114,7 @@ QVariant SValue::toQVariant() const
return QVariant::fromValue(get<QVector3D>(*this));
}
case DataModelDataType::Float4: {
- return QVariant::fromValue(get<QVector<float> >(*this));
+ return QVariant::fromValue(get<QVector4D>(*this));
}
case DataModelDataType::Long: {
return QVariant::fromValue(get<qt3ds::QT3DSI32>(*this));