Browse files

Minor fix to get editor to load

  • Loading branch information...
Shinmera committed Feb 11, 2019
1 parent 2e8a4ff commit f20d5f85484fbc1716b599d17c1cb667e0c28726
Showing with 3 additions and 2 deletions.
  1. +3 −2 editor/selector.lisp
@@ -20,7 +20,7 @@
(trial:add-handler selector (scene selector)))

(define-finalizer (selector teardown)
(trial:issue (scene selector) 'trial:load-request :asset (buffer selector) :action 'trial:offload)
;; FIXME: leak (buffer selector)
(trial:remove-handler selector (scene selector)))

(define-subwidget (selector empty-text)
@@ -53,7 +53,8 @@
(trial:handle event (buffer selector)))

(defmethod trial:handle ((ev trial:reload-scene) (selector selector))
(trial:load (trial:offload (buffer selector))))
;; FIXME: leak (buffer selector)

(defmethod trial:handle ((ev trial:mouse-release) (selector selector))
(trial:paint (buffer selector) (buffer selector))

0 comments on commit f20d5f8

Please sign in to comment.