summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-10 17:15:15 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-10 17:15:15 -0400
commit62570faa3ff4d3664dab3035a3cf9d4bd58014a1 (patch)
treef477f61230afaff0a23807f13c6bd8306f45c87f
parent0f5b29c992f6f94260fa5df6f696997944511898 (diff)
graphics: model: Display a warning when loading sparse glTF data.
-rw-r--r--chickadee/graphics/model.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index cae9752..e87e47f 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -827,6 +827,10 @@
(when (and (vector? min)
(not (= (vector-length min) (type-length type))))
(error "not enough elements for min" min type))
+ (when sparse
+ (display "glTF: sparse accessors currently unsupported"
+ (current-error-port))
+ (newline (current-error-port)))
(make-buffer-view #:name name
#:buffer view
#:offset offset