projects
/
deeprace
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
latest goat3d changes
[deeprace]
/
libs
/
goat3d
/
src
/
read.c
diff --git
a/libs/goat3d/src/read.c
b/libs/goat3d/src/read.c
index
cad023d
..
285c64c
100644
(file)
--- a/
libs/goat3d/src/read.c
+++ b/
libs/goat3d/src/read.c
@@
-54,6
+54,11
@@
int g3dimpl_scnload(struct goat3d *g, struct goat3d_io *io)
struct ts_node *tsroot, *c;
const char *str;
+ /* attempt to load it as gltf first */
+ if((g3dimpl_loadgltf(g, io)) == 0) {
+ return 0;
+ }
+
tsio.data = io->cls;
tsio.read = io->read;
tsio.write = io->write;