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:
parent
26c65fa39c
commit
e9d2a06b7e
5 changed files with 22 additions and 5 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue