From: dooglus Date: Tue, 25 Nov 2008 22:07:47 +0000 (+0000) Subject: Take the 'Focus Point' into account when transforming ducks for layers inside pasteca... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=930476c3da70528b28ea747f93ebbf48a42e2f54;p=synfig.git Take the 'Focus Point' into account when transforming ducks for layers inside pastecanvas layers. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2274 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index a3764bb..0973da6 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -2842,9 +2842,10 @@ CanvasView::rebuild_ducks_layer_(synfig::TransformStack& transform_stack, synfig Vector origin(layer->get_param("origin").get(Vector())); Canvas::Handle child_canvas(layer->get_param("canvas").get(Canvas::Handle())); + Vector focus(child_canvas->rend_desc().get_focus()); if(!scale.is_equal_to(Vector(1,1))) - transform_stack.push(new Transform_Scale(scale,origin)); + transform_stack.push(new Transform_Scale(scale,origin+focus)); if(!origin.is_equal_to(Vector(0,0))) transform_stack.push(new Transform_Translate(origin));