summaryrefslogtreecommitdiffstats
path: root/src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-13 16:43:10 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-14 07:53:18 +0000
commit836218f14bdd055adb7f20baabe97eff9eaa0fc8 (patch)
tree29cc1da8fc40ee8c2db073b320e0b3bbf0ad81f8 /src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h
parent79278993120533dbc72c5dfeff8a45e9289c4639 (diff)
Fix undo/redo not updating scene when animated property changes
Added a callback function to refresh the scene that is added to the transaction stack whenever animated property without automatic keyframe setting on is changed. Task-number: QT3DS-2333 Change-Id: I7ca2e2af2ad2dfc32959a3d8f8b2056785a841c4 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h')
-rw-r--r--src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h b/src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h
index 588e06b3..c2a7c3b8 100644
--- a/src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h
+++ b/src/Authoring/QT3DSDM/Systems/Qt3DSDMAnimation.h
@@ -403,6 +403,9 @@ public:
Qt3DSDMInstanceHandle inInstance,
Qt3DSDMPropertyHandle inProperty,
const SValue &inValue) = 0;
+
+ typedef std::function<void(Qt3DSDMInstanceHandle instance)> TRefreshCallbackFunc;
+ virtual void setRefreshCallback(TRefreshCallbackFunc func) = 0;
};
typedef std::shared_ptr<IStudioAnimationSystem> TStudioAnimationSystemPtr;