Skip to content

Instantly share code, notes, and snippets.

@BorisKourt
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BorisKourt/3e841d898c33a1ec977e to your computer and use it in GitHub Desktop.
Save BorisKourt/3e841d898c33a1ec977e to your computer and use it in GitHub Desktop.
Arcadia REPL Issue
(use
'arcadia.core
'arcadia.linear
'arcadia.hydrate
'clojure.pprint
'clojure.repl)
(defn kill!
"Kill to make new"
[obj]
(let [spec (dehydrate obj)]
(destroy obj)
spec))
(def cubespec (kill! (create-primitive :cube)))
(defscn cubees
(hydrate
{:name "cub"
:transform [{:local-position (v3 x 1 0)}] ;; <-- should at least throw the error here.
:children (vec
(for [x (range 10)]
(assoc
cubespec
:transform
[{:local-position (v3 x 1 0)}]))})))
(comment
(defscn cubees
(hydrate
{:name "cub"
;; <-- Doesn't work even with the right values.
:children (vec
(for [x (range 10)]
(assoc
cubespec
:transform
[{:local-position (v3 x 1 0)}]))})))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment