From: dooglus Date: Mon, 22 Dec 2008 10:28:50 +0000 (+0000) Subject: Fix 2458112: default transform GUIDs to random values, not zero. Initialise the... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=11c3c866616ccaedc988fd9d4f0410ea2df38de8;p=synfig.git Fix 2458112: default transform GUIDs to random values, not zero. Initialise the GUID of the transform used in InsideOut to be the layer's guid. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2320 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/lyr_std/insideout.cpp b/synfig-core/trunk/src/modules/lyr_std/insideout.cpp index e5e65be..1ed9c2c 100644 --- a/synfig-core/trunk/src/modules/lyr_std/insideout.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/insideout.cpp @@ -106,7 +106,7 @@ class InsideOut_Trans : public Transform { etl::handle layer; public: - InsideOut_Trans(const InsideOut* x):layer(x) { } + InsideOut_Trans(const InsideOut* x):Transform(x->get_guid()),layer(x) { } synfig::Vector perform(const synfig::Vector& x)const { diff --git a/synfig-core/trunk/src/synfig/transform.h b/synfig-core/trunk/src/synfig/transform.h index fb8c5a1..a235b22 100644 --- a/synfig-core/trunk/src/synfig/transform.h +++ b/synfig-core/trunk/src/synfig/transform.h @@ -49,7 +49,7 @@ public: typedef etl::handle Handle; protected: - Transform(const GUID& guid=GUID(0)):guid_(guid) { } + Transform(const GUID& guid=GUID()):guid_(guid) { } public: