diff options
Diffstat (limited to 'src/runtime/q3dsuipparser.cpp')
-rw-r--r-- | src/runtime/q3dsuipparser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/q3dsuipparser.cpp b/src/runtime/q3dsuipparser.cpp index 3130aee..ecb79f9 100644 --- a/src/runtime/q3dsuipparser.cpp +++ b/src/runtime/q3dsuipparser.cpp @@ -648,6 +648,12 @@ void Q3DSUipParser::parseAddSet(Q3DSSlide *slide, bool isSet, bool isMaster) ha.value = attr.value().trimmed().toString(); } } + if (ha.value.isEmpty() && ha.type == Q3DS::Vector) { + // With all-zero vector values (0,0,0) Studio doesn't currently + // store "value" parameter at all into uip. So empty vector + // type values are handled as "0 0 0", see QT3DS-3143. + ha.value = QStringLiteral("0 0 0"); + } action.handlerArgs.append(ha); } r->skipCurrentElement(); |