🚀 Auto-deploy: TrackSteelAPP atualizado em 20/09/2026 01:07:33

This commit is contained in:
2026-09-20 01:07:33 +00:00
parent ce332108e8
commit c1db5c5fd1
2 changed files with 40 additions and 14 deletions
+10 -1
View File
@@ -237,7 +237,16 @@ export const ModelViewer3D: React.FC<ModelViewer3DProps> = ({
if (colorMode === 'production' && productionData) {
// Look up production pointing status
const prod = productionData.get(pmark);
let prod = productionData.get(pmark);
if (!prod) {
// Fallback lookup: IFC marks sometimes have prefixes like B135-1-V1 or suffixes.
for (const [key, val] of productionData.entries()) {
if (pmark === key || pmark.endsWith(`-${key}`) || key.endsWith(`-${pmark}`) || pmark.includes(key)) {
prod = val;
break;
}
}
}
if (prod && prod.pointedQtd > 0) {
// Apply stage color (e.g., Light Green #4ade80 for pointed)
const stageHex = prod.processColor || '#4ade80';