Permalink
Browse files

improve converting point from context function

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Jan 18, 2016
1 parent 757977c commit fb78409e5c934e779f3a2f2c2b49ad985ae50900
Showing with 0 additions and 1 deletion.
  1. +0 −1 framer/Utils.coffee
View
@@ -779,7 +779,6 @@ Utils.convertFrameToContext = (frame = {}, layer, rootContext=false, includeLaye
Utils.convertPointFromContext = (point = {}, layer, rootContext=false, includeLayer = true) ->
point = _.defaults(point, {x:0, y:0, z:0})
ancestors = layer.ancestors(rootContext)
point = ancestors.pop().matrix3d.inverse().point(point) if ancestors.length
ancestors.reverse()
ancestors.push(layer) if includeLayer
for ancestor in ancestors

0 comments on commit fb78409

Please sign in to comment.