修复音频路径替换

This commit is contained in:
FGHRSH 2020-05-19 10:45:35 +08:00 committed by GitHub
parent 2a9b3371bb
commit 02dc5b3aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ if (isset($json['physics'])) $json['physics'] = '../model/'.$modelName.'/'.$json
if (isset($json['motions'])) if (isset($json['motions']))
foreach ($json['motions'] as $k => $v) foreach($v as $k2 => $v2) foreach ($v2 as $k3 => $motion) foreach ($json['motions'] as $k => $v) foreach($v as $k2 => $v2) foreach ($v2 as $k3 => $motion)
if ($k3 == 'file') $json['motions'][$k][$k2][$k3] = '../model/' . $modelName . '/' . $motion; if ($k3 == 'file' || $k3 == 'sound') $json['motions'][$k][$k2][$k3] = '../model/' . $modelName . '/' . $motion;
if (isset($json['expressions'])) if (isset($json['expressions']))
foreach ($json['expressions'] as $k => $v) foreach($v as $k2 => $expression) foreach ($json['expressions'] as $k => $v) foreach($v as $k2 => $expression)