1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 09:15:49 +03:00

Reverted THREE library to 0.97.0 to get CanvasRenderer back.

This commit is contained in:
mikeller 2020-07-12 00:00:53 +12:00
parent e27752f846
commit a2f4660397
4 changed files with 8 additions and 7 deletions

View file

@ -87,7 +87,7 @@ var Model = function (wrapper, canvas) {
};
Model.prototype.loadJSON = function (model_file, callback) {
const loader = new THREE.LegacyJSONLoader();
const loader = new THREE.JSONLoader();
loader.load(`./resources/models/${model_file}.json`, function (geometry, materials) {
const modelMaterial = new THREE.MeshFaceMaterial(materials);