prepare models array where we use multiType as index

10.3.x-maintenance
cTn 2014-10-03 15:21:16 +02:00
parent 3f0b501063
commit 1c88db0fdd
1 changed files with 26 additions and 2 deletions

View File

@ -332,9 +332,33 @@ TABS.setup.initialize3D = function (compatibility) {
modelWrapper = new THREE.Object3D() modelWrapper = new THREE.Object3D()
// load the model including materials // load the model including materials
var models = [
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x',
'quad_x'
];
if (!fallback) { if (!fallback) {
// array of supported models will go here in the future model_file = models[CONFIG.multiType - 1];
model_file = 'quad_x';
} else { } else {
model_file = 'fallback'; model_file = 'fallback';
} }