Skip to content

Commit

Permalink
improve converting point from context function
Browse files Browse the repository at this point in the history
  • Loading branch information
J.P.P Treub committed Jan 18, 2016
1 parent 757977c commit fb78409
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion framer/Utils.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb78409

Please sign in to comment.