Add basic gltf format checking
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -166,8 +166,8 @@ class GlModelHandler extends ImageHandler {
|
||||
$glMeta = json_decode(fread($gltf,$glMetaLength['int']),true);
|
||||
fclose($gltf);
|
||||
$newMeta = array(
|
||||
'glmv-meshes' => count($glMeta['meshes']),
|
||||
'glmv-textures' => count($glMeta['textures'])
|
||||
'glmv-meshes' => count($glMeta['meshes'] ?? []),
|
||||
'glmv-textures' => count($glMeta['textures'] ?? [])
|
||||
);
|
||||
foreach($glMeta['asset'] as $key => $value) {
|
||||
switch ($key) {
|
||||
|
||||
Reference in New Issue
Block a user