Skip to content

Commit

Permalink
Fix center() on shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jan 24, 2018
1 parent a2342fc commit 8744c3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framer/Layer.coffee
Expand Up @@ -503,14 +503,16 @@ class exports.Layer extends BaseClass
# If this is a number, we set everything to that number
if _.isNumber(input)
for k in keys
@[k] = input
if @[k] isnt input
@[k] = input
else
# If there is nothing to work with we exit
return unless input

# Set every numeric value for eacht key
for k in keys
@[k] = input[k] if _.isNumber(input[k])
if _.isNumber(input[k]) and @[k] isnt input[k]
@[k] = input[k]

@define "point",
importable: true
Expand Down

0 comments on commit 8744c3e

Please sign in to comment.