Following the previous commit, there's no need to walk up the canvas tree to find...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 22 Jan 2008 12:31:05 +0000 (12:31 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 22 Jan 2008 12:31:05 +0000 (12:31 +0000)
git-svn-id: http://svn.voria.com/code@1421 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/loadcanvas.cpp

index 60a30ee..b657776 100644 (file)
@@ -1062,11 +1062,7 @@ CanvasParser::parse_animated(xmlpp::Element *element,Canvas::Handle canvas)
        // waypoint's value
        if (type == ValueBase::TYPE_ANGLE) 
        {
-               Canvas::Handle parent = canvas;
-               while (!parent->is_root())
-                       parent = parent->parent();
-
-               if (parent->get_version() == "0.1")
+               if (canvas->get_version() == "0.1")
                {
                        bool first = true;
                        Real angle, prev = 0;