diff --git a/src/play_clj/g2d.clj b/src/play_clj/g2d.clj index a976e37..6fe6aec 100644 --- a/src/play_clj/g2d.clj +++ b/src/play_clj/g2d.clj @@ -55,7 +55,8 @@ (:object arg) (NinePatch. (:object arg)) (map? arg) - (let [{:keys [^TextureRegion region left right top bottom]} arg] + (let [{:keys [region left right top bottom]} arg] + (assert (and region left right top bottom)) (NinePatch. region left right top bottom)) :else arg)))