mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Changed model extensions from .js.
to .json
fitting with export from
latest three.js exporter.
725819c98d
Updated texture on new models.
This commit is contained in:
parent
cbc4684935
commit
5cff317208
10 changed files with 1280 additions and 1344 deletions
|
@ -222,7 +222,7 @@ TABS.setup.initialize3D = function (compatibility) {
|
|||
}
|
||||
|
||||
loader = new THREE.JSONLoader();
|
||||
loader.load('./resources/models/' + model_file + '.js', function (geometry, materials) {
|
||||
loader.load('./resources/models/' + model_file + '.json', function (geometry, materials) {
|
||||
if (!fallback) {
|
||||
model = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue