Skip to content

Commit

Permalink
Merge branch 'editor-dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
matgis committed Feb 20, 2024
2 parents afc47db + 558d43c commit 660ab76
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 92 deletions.
4 changes: 2 additions & 2 deletions editor/src/clj/editor/slice9.clj
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@

(defn vertex-data
[{:keys [width height tex-coords] :as _frame} size slice9 pivot]
(let [^double texture-width (or width 1.0)
^double texture-height (or height 1.0)
(let [^double texture-width (or width (first size) 1.0)
^double texture-height (or height (second size) 1.0)
;; Sample tex-coords if anim from tile source:
;;
;; no flip: [[0.0 0.140625] [0.0 1.0] [0.5566406 1.0] [0.5566406 0.140625]] TL BL BR TR T-B-B-T L-L-R-R
Expand Down

0 comments on commit 660ab76

Please sign in to comment.