From 1d0bc114a6f3dcf08eef7067c5603f66ab962d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 2 Dec 2013 02:22:49 +0100 Subject: [PATCH] SceneGraph: allow creating TranslationTransformation only from Object. --- src/SceneGraph/TranslationTransformation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SceneGraph/TranslationTransformation.h b/src/SceneGraph/TranslationTransformation.h index 182078cdf..70baedfa1 100644 --- a/src/SceneGraph/TranslationTransformation.h +++ b/src/SceneGraph/TranslationTransformation.h @@ -110,6 +110,10 @@ class TranslationTransformation: public AbstractTranslation>&>(*this); } + protected: + /* Allow construction only from Object */ + explicit TranslationTransformation() = default; + private: void doResetTransformation() override final { resetTransformation(); }