mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Pushed three.js library version to 0.110.0
This commit is contained in:
parent
26418f336a
commit
90e8bad330
4 changed files with 10 additions and 9 deletions
|
@ -87,11 +87,11 @@ var Model = function (wrapper, canvas) {
|
|||
};
|
||||
|
||||
Model.prototype.loadJSON = function (model_file, callback) {
|
||||
var loader = new THREE.JSONLoader();
|
||||
const loader = new THREE.LegacyJSONLoader();
|
||||
|
||||
loader.load('./resources/models/' + model_file + '.json', function (geometry, materials) {
|
||||
var modelMaterial = new THREE.MeshFaceMaterial(materials),
|
||||
model = new THREE.Mesh(geometry, modelMaterial);
|
||||
loader.load(`./resources/models/${model_file}.json`, function (geometry, materials) {
|
||||
const modelMaterial = new THREE.MeshFaceMaterial(materials);
|
||||
const model = new THREE.Mesh(geometry, modelMaterial);
|
||||
|
||||
model.scale.set(15, 15, 15);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue