Last active
August 29, 2015 14:23
-
-
Save BorisKourt/3e841d898c33a1ec977e to your computer and use it in GitHub Desktop.
Arcadia REPL Issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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