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

Merge pull request #2282 from haslinghuis/fix_three_mesh

THREE.MeshFaceMaterial has been removed. Use an Array instead.
This commit is contained in:
Michael Keller 2020-11-22 09:13:39 +13:00 committed by GitHub
commit dcfe3d3108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,8 +90,8 @@ Model.prototype.loadJSON = function (model_file, callback) {
const loader = new THREE.JSONLoader(); const loader = new THREE.JSONLoader();
loader.load(`./resources/models/${model_file}.json`, function (geometry, materials) { 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); model.scale.set(15, 15, 15);