Skip to content

Commit 21cd88f

Browse files
keep invisible opcs in lod to enable fast switching, see #484 & version bump
1 parent 21b874d commit 21cd88f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

TEST_RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.27.0-prerelease2
2+
- fixed lod when switching surfaces visible/invisible (keep invisible opcs in lod, to make fast switching possible)
3+
14
## 4.27.0-prerelease1
25
- coordinate frames as scale bars
36
- fixed memory leak for high focal length fulcra

src/PRo3D.Core/Surface/Surface.Sg.fs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@ module Sg =
175175
(isActive : aval<bool>)
176176
=
177177

178-
let isRenderingActive = isActive.GetValue self
179-
if isRenderingActive then
178+
let isRenderingActive =
179+
//isActive.GetValue self, using isActive (actually is invisible) is not possible here, see https://github.com/pro3d-space/PRo3D/issues/484
180+
true
181+
if isRenderingActive then
180182
let lodParams = lodParams.GetValue self
181183
let viewTrafo = viewTrafo.GetValue self
182184
let model = preTrafo * renderPatch.trafo.GetValue self

0 commit comments

Comments
 (0)