From: dooglus Date: Sat, 22 Nov 2008 15:32:53 +0000 (+0000) Subject: Allow ValueBase objects to be cast to type Real to get their real value. This is... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=efdd8790bf446286b9f1f8543b17590c7fac316e;p=synfig.git Allow ValueBase objects to be cast to type Real to get their real value. This is an attempt to get the 'metaballs' example module building again. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2234 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/value.h b/synfig-core/trunk/src/synfig/value.h index cc6cab9..5e38508 100644 --- a/synfig-core/trunk/src/synfig/value.h +++ b/synfig-core/trunk/src/synfig/value.h @@ -320,7 +320,7 @@ public: operator const list_type&()const { return get_list(); } //operator const Color&()const { return get(Color()); } - //operator const Real&()const { return get(Real()); } + operator const Real&()const { return get(Real()); } //operator const Time&()const { return get(Time()); } operator const Vector&()const { return get(Vector()); }