mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +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:
commit
dcfe3d3108
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue