Permalink
Browse files

Merge branch 'feature/perspectiveMatrix'

  • Loading branch information...
Koen Bok
Koen Bok committed Jan 12, 2016
2 parents d4c15a4 + df3e145 commit c65dff5197677657ea5b2bbc55deb3163efd4a9d
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/Utils.coffee
View
@@ -752,10 +752,10 @@ Utils.pointAngle = (p1, p2) ->
# Coordinate system
# convert a point from a layer to the context level, with limit you can make it continue to the root context
Utils.convertPointToContext = (point = {}, layer, limit=false) ->
Utils.convertPointToContext = (point = {}, layer, limit=false, includeLayer = true) ->
point = _.defaults(point, {x:0, y:0, z:0})
ancestors = layer.ancestors(limit)
ancestors.unshift(layer)
ancestors.unshift(layer) if includeLayer
for ancestor in ancestors
point.z = 0 if ancestor.flat

0 comments on commit c65dff5

Please sign in to comment.