summaryrefslogtreecommitdiffstats
path: root/src/uipparser
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2019-08-15 08:55:38 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2019-08-15 09:09:50 +0300
commitab0d6d891fb782de4c89c3ae373828282049ea14 (patch)
tree2ab98973f798d7b80e5dabeec75ffb6dc5fd0eec /src/uipparser
parentf1e6bb635faa0e21fd34dfee4786b2969cf1a6a5 (diff)
Fix Float4 use
x, y, z and w coordinates were not parsed by the runtime. Task-number: QT3DS-3867 Change-Id: I4f5bbe016b8528b9b0f0d0beab40aa622f33e0e6 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/uipparser')
-rw-r--r--src/uipparser/Qt3DSUIPParserImpl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/uipparser/Qt3DSUIPParserImpl.cpp b/src/uipparser/Qt3DSUIPParserImpl.cpp
index b899248..d16bc37 100644
--- a/src/uipparser/Qt3DSUIPParserImpl.cpp
+++ b/src/uipparser/Qt3DSUIPParserImpl.cpp
@@ -226,6 +226,15 @@ SElementPropertyInfo *SParseElementManager::GetOrCreateProperty(SElementData &in
thePropNames, m_StringTable);
SetPropertyValueHash(m_Workspace, ".a", thePropHashes, thePeriodPos,
thePropNames, m_StringTable);
+ } else {
+ SetPropertyValueHash(m_Workspace, ".x", thePropHashes, thePeriodPos,
+ thePropNames, m_StringTable);
+ SetPropertyValueHash(m_Workspace, ".y", thePropHashes, thePeriodPos,
+ thePropNames, m_StringTable);
+ SetPropertyValueHash(m_Workspace, ".z", thePropHashes, thePeriodPos,
+ thePropNames, m_StringTable);
+ SetPropertyValueHash(m_Workspace, ".w", thePropHashes, thePeriodPos,
+ thePropNames, m_StringTable);
}
}
} else {