1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00

fixed bugs with not detecting new mixer capable firmware

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-04-10 21:52:39 +02:00
parent 26c65fa39c
commit e9d2a06b7e
5 changed files with 22 additions and 5 deletions

View file

@ -1,4 +1,4 @@
/*global chrome*/
/*global $,chrome,FC,helper,mspHelper,MIXER_CONFIG,BF_CONFIG*/
'use strict';
TABS.setup = {
@ -240,7 +240,11 @@ TABS.setup.initialize3D = function () {
//
// load the model including materials
if (useWebGlRenderer) {
model_file = helper.mixer.getById(BF_CONFIG.mixerConfiguration).model;
if (FC.isNewMixer()) {
model_file = helper.mixer.getById(MIXER_CONFIG.appliedMixerPreset).model;
} else {
model_file = helper.mixer.getById(BF_CONFIG.mixerConfiguration).model;
}
} else {
model_file = 'fallback'
}