Skip to content

Commit

Permalink
Bad.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Sep 24, 2024
1 parent 78ce52b commit db59ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions translations.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@
(T (string value))))

(defmethod parse-from ((json string) (type (eql 'keyword)) gltf)
(intern (string-upcase json) "KEYWORD"))
(if (string-equal json "nil") NIL (intern (string-upcase json) "KEYWORD")))

(defmethod serialize-to ((type (eql 'keyword)) value)
(string-downcase value))
(when value
(string-downcase value)))

(defmethod parse-from (json (type (eql 'mesh-attributes)) gltf)
(let ((table (make-hash-table :test 'eql)))
Expand Down

0 comments on commit db59ff7

Please sign in to comment.