QmlDesigner: Don't update sceneTransform for direct movements

I am not sure that it breaks something but after much testing it looks
like it is smoother without.

Change-Id: Ibb9d59660f957901cfdf5f2a7ba2e17d4245197b
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
Marco Bubke
2014-07-01 18:31:34 +02:00
parent 25e608cbfd
commit afc498e24e

View File

@@ -480,7 +480,7 @@ InformationName NodeInstance::setInformationIsInLayoutable(bool isInLayoutable)
InformationName NodeInstance::setInformationSceneTransform(const QTransform &sceneTransform)
{
if (d->sceneTransform != sceneTransform) {
if (!directUpdates() && d->sceneTransform != sceneTransform) {
d->sceneTransform = sceneTransform;
return SceneTransform;
}