summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/q3dlight.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-08-05 14:00:08 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-08-06 08:39:25 +0300
commitdd99eb73740ad015a2a2d28481e5a2ca8ab1d7b1 (patch)
treebcbbd462e547cd958b1343412d0a14e920b5c453 /src/datavisualization/engine/q3dlight.cpp
parent73f127d8ef1937aa77ba0ec0be63f0bfd6cf92ab (diff)
Enable camera targeting.
Also fix custom item positioning in absolute mode as it was completely broken in bars and z-coord was flipped in others. Clarified Q3DObject::position property usage, namely that it is reserved for internal use for now. Some refactoring also done. Task-number: QTRD-2567 Change-Id: I5da65b83a2f8ecf20f8fd054e59748278ef1a714 Reviewed-by: Titta Heikkala <titta.heikkala@digia.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/q3dlight.cpp')
-rw-r--r--src/datavisualization/engine/q3dlight.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/datavisualization/engine/q3dlight.cpp b/src/datavisualization/engine/q3dlight.cpp
index 03f094cb..92b7bd07 100644
--- a/src/datavisualization/engine/q3dlight.cpp
+++ b/src/datavisualization/engine/q3dlight.cpp
@@ -68,13 +68,8 @@ Q3DLightPrivate::~Q3DLightPrivate()
void Q3DLightPrivate::sync(Q3DLight &other)
{
- // Copies changed values from this light to the other light. If the other light had same changes,
- // those changes are discarded.
- if (q_ptr->isDirty()) {
- other.copyValuesFrom(*q_ptr);
- q_ptr->setDirty(false);
- other.setDirty(false);
- }
+ Q_UNUSED(other);
+ // Do nothing. Only value light has to sync is the position, which we handle internally.
}
QT_END_NAMESPACE_DATAVISUALIZATION