Author: toshok
Date: 2007-06-18 13:14:23 -0400 (Mon, 18 Jun 2007)
New Revision: 80025

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/animation.cpp
Log:
2007-06-18  Chris Toshok  <[EMAIL PROTECTED]>

        * animation.cpp (AnimationStorage::~AnimationStorage): delete the
        baseValue here.
        (Storyboard::Begin): force a TimeManager tick after we've hooked
        up the clock, so that all the animations have proper values before
        the next render.  Fixes the "popping" in the surface demo.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-18 17:05:15 UTC (rev 80024)
+++ trunk/moon/src/ChangeLog    2007-06-18 17:14:23 UTC (rev 80025)
@@ -1,3 +1,11 @@
+2007-06-18  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * animation.cpp (AnimationStorage::~AnimationStorage): delete the
+       baseValue here.
+       (Storyboard::Begin): force a TimeManager tick after we've hooked
+       up the clock, so that all the animations have proper values before
+       the next render.  Fixes the "popping" in the surface demo.
+
 2007-06-18  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
 
        * runtime.cpp: Changed DependencyObject::SetValue to never store 

Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp        2007-06-18 17:05:15 UTC (rev 80024)
+++ trunk/moon/src/animation.cpp        2007-06-18 17:14:23 UTC (rev 80025)
@@ -53,6 +53,8 @@
 
 AnimationStorage::~AnimationStorage ()
 {
+       if (baseValue)
+               delete baseValue;
 }
 
 AnimationClock::AnimationClock (Animation/*Timeline*/ *timeline)
@@ -166,6 +168,8 @@
        TimeManager::Instance()->AddChild (root_clock);
 
        root_clock->Begin (TimeManager::GetCurrentGlobalTime());
+
+       TimeManager::Instance()->Tick ();
 }
 
 void

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to