From: dooglus Date: Tue, 22 Jan 2008 12:31:05 +0000 (+0000) Subject: Following the previous commit, there's no need to walk up the canvas tree to find... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dde9e2714a61d109c8245ea67c17a312483fa57d;p=synfig.git Following the previous commit, there's no need to walk up the canvas tree to find the root when checking the canvas version. git-svn-id: http://svn.voria.com/code@1421 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index 60a30ee..b657776 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -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;