Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#40275] Xeokit viewer becomes visible in Revit add-in (#9973)

Eric Schubertff5f29d4edda
diff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
index eb7d889721c..4095b586d77 100644
--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
@@ -210,7 +210,7 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implements
}
protected showViewpoint(workPackage:WorkPackageResource, index:number):void {
- if (this.bcfViewer) {
+ if (this.bcfViewer && this.viewerBridge.shouldShowViewer) {
// FIXME: This component shouldn't know about the state of the BCF module. bcfViewer is null, when outside of
// BCF module. Inside BCF module, we try to avoid hard transition, with sending an update to the bcf view
// state before showing a viewpoint.