feat: Update model and configuration for improved loading and kitchen color adjustments
continuous-integration/drone/push Build is passing

This commit is contained in:
martin.fencl
2026-10-22 02:12:08 +02:00
parent 00810a0d17
commit 0fd866506e
6 changed files with 27 additions and 16 deletions
+3 -2
View File
@@ -752,6 +752,7 @@ let backend=null,projectPanel=null;
if(e.stdFullOnly && interior.enabled && interior.mode!=='walk')return false;
if(e.stdBlind && (!stdState.blinds || (e.stdBlindFraction!==undefined && e.stdBlindFraction>stdState.blindDrop/100)))return false;
if(e.stdWhen && Object.entries(e.stdWhen).some(([k,v])=>stdState[k]!==v))return false;
if(e.stdUnless && Object.entries(e.stdUnless).some(([k,v])=>stdState[k]===v))return false;
return true;
}
function stdSetMaterial(role,color,texture){
@@ -797,8 +798,8 @@ let backend=null,projectPanel=null;
for(const r of STD_ROOMS){if(v[r[0]]===undefined)continue;const f=v[r[0]];if(!f||!['lam','tile'].includes(f.type)||!Number.isInteger(f.sample)||f.sample<1||f.sample>9)throw Error('Neplatn\u00e1 podlaha m\u00edstnosti '+r[0]);d.floors[r[0]]={type:f.type,sample:f.sample};}
} else if(['wallPaint','kitchenColor','kitchenBodyColor','intDoorColor'].includes(k)){
if(typeof v!=='string'||!/^#[0-9a-f]{6}$/i.test(v))throw Error('Neplatn\u00e1 barva: '+k);d[k]=v.toLowerCase();
// The kitchen green was re-tinted; selections saved with the previous shade follow it.
if(k.startsWith('kitchen')&&d[k]==='#35463e')d[k]='#4e5952';
// The kitchen green was re-tinted; selections saved with an earlier shade follow it.
if(k.startsWith('kitchen')&&['#35463e','#4e5952'].includes(d[k]))d[k]='#4b5449';
} else if(STD_OPTIONS[k]){if(!STD_OPTIONS[k].some(o=>o[0]===v))throw Error('Nezn\u00e1m\u00e1 varianta: '+k);d[k]=v;
} else if(enums[k]){if(!enums[k].includes(v))throw Error('Nezn\u00e1m\u00e1 varianta: '+k);d[k]=v;
} else if(typeof d[k]==='boolean'){if(typeof v!=='boolean')throw Error('Neplatn\u00fd p\u0159ep\u00edna\u010d: '+k);d[k]=v;