1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

THREE.MeshFaceMaterial has been removed. Use an Array instead.

This commit is contained in:
Mark Haslinghuis 2020-11-19 01:40:35 +01:00
parent f1d7386117
commit de8a240a2d

View file

@ -90,8 +90,8 @@ Model.prototype.loadJSON = function (model_file, callback) {
const loader = new THREE.JSONLoader();
loader.load(`./resources/models/${model_file}.json`, function (geometry, materials) {
const modelMaterial = new THREE.MeshFaceMaterial(materials);
const model = new THREE.Mesh(geometry, modelMaterial);
const model = new THREE.Mesh(geometry, materials);
model.scale.set(15, 15, 15);