Skip to content

Commit

Permalink
Fix up ENTER prefab instantiator
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Jan 4, 2025
1 parent 0c29560 commit 2777c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prefab.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
(when (funcall ,id ,node)
,@body)))))

(define-prefab-translator enter (instance asset &optional node children-only)
(define-prefab-translator enter (instance asset node &key children-only (scene T))
(let ((nodevar (gensym "NODE")))
`(do-nodes% (,nodevar (find-scene T ,asset) ,node)
`(do-nodes% (,nodevar (find-scene ,scene ,asset) ,node)
,(if children-only
`(sequences:dosequence (,nodevar ,nodevar)
(enter (clone ,nodevar) ,instance))
Expand Down

0 comments on commit 2777c37

Please sign in to comment.