From 74d2c997bf80e7a923e6036f98a1fbbf70141e4a Mon Sep 17 00:00:00 2001 From: mahach666 <79989386+mahach666@users.noreply.github.com> Date: Wed, 25 Nov 2026 15:26:59 +0300 Subject: [PATCH] Keep RVT quantity post-processing synchronous in browsers --- src/RvtIO/Parsing/ElementBuilder.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RvtIO/Parsing/ElementBuilder.cs b/src/RvtIO/Parsing/ElementBuilder.cs index 491ac64..aca59b0 100644 --- a/src/RvtIO/Parsing/ElementBuilder.cs +++ b/src/RvtIO/Parsing/ElementBuilder.cs @@ -6686,8 +6686,9 @@ void ReportDistinctMissing(string label, Dictionary counts) AddViewAndDatumDefaults(rvtInfo); AddCurtainQuantities(rvtInfo); EnrichTypeLevelBips(rvtInfo, state, elemByIdLookup); - // Detached quantity geometry reads final categories and GRep, independently of parameter propagation. - var quantities = state != null && SymbolDiagPath == null && !GRepParserV2.IsDecodeTracingEnabled() + // Detached quantity geometry can run beside parameter propagation on runtimes with background threads. + var quantities = state != null && !OperatingSystem.IsBrowser() + && SymbolDiagPath == null && !GRepParserV2.IsDecodeTracingEnabled() && Environment.GetEnvironmentVariable("RVTIO_MESH_LOG") != "1" && Environment.GetEnvironmentVariable("RVTIO_TRACE_ID") == null && !TfBlockDeserializer.CaptureAllFields