Skip to content

Commit 6f6c9a9

Browse files
committed
[Sg] Fix broken Ag rule for FaceVertexCount
See: c149c65
1 parent 7f760a3 commit 6f6c9a9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- Fixed support for 64-bit attributes and uniforms
2+
- [Sg] Fixed broken Ag rule for `FaceVertexCount`
23

34
### 5.6.4
45
- [GL] Dispose MultimediaTimer in LodRenderer to avoid resource exhaustion

src/Aardvark.SceneGraph/Semantics/Attributes.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ module AttributeSemantics =
3636
if scope.VertexIndexBuffer.IsNone then
3737
match Map.tryFind DefaultSemantic.Positions app.Values with
3838
| Some positions -> app.Child?FaceVertexCount <- BufferView.getCount positions
39-
| _ -> ()
39+
| _ -> app.Child?FaceVertexCount <- scope.FaceVertexCount
40+
else
41+
app.Child?FaceVertexCount <- scope.FaceVertexCount
4042

4143
member x.InstanceAttributes(root : Root<ISg>, scope : Ag.Scope) =
4244
root.Child?InstanceAttributes <- Map.empty<Symbol, BufferView>

0 commit comments

Comments
 (0)