Browse files

Make sure to traverse containers when registering for passes.

  • Loading branch information...
Shinmera committed Mar 16, 2018
1 parent c6a1138 commit 661d863b97327c74e41d2799cfed54741d414826
Showing with 4 additions and 0 deletions.
  1. +4 −0 shader-pass.lisp
@@ -94,6 +94,10 @@
(when (framebuffer pass)
(finalize (framebuffer pass))))
(defmethod register-object-for-pass :after ((pass shader-pass) (object container))
(for:for ((item over object))
(register-object-for-pass pass item)))
(define-handler (shader-pass register-entity-for-enter enter) (ev entity)
(unless (typep entity 'shader-pass)
(let ((pass (register-object-for-pass shader-pass entity)))

0 comments on commit 661d863

Please sign in to comment.