Skip to content

Commit db5df30

Browse files
author
Thomas Gorisse
authored
Merge pull request #690 from SceneView/claude/check-progress-Digzb
fix: add missing position parameter to SphereNode composable
2 parents 33daf8e + 73b0352 commit db5df30

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sceneview/src/main/java/io/github/sceneview/SceneScope.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ open class SceneScope @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP_PREFIX) constru
366366
stacks: Int = Sphere.DEFAULT_STACKS,
367367
slices: Int = Sphere.DEFAULT_SLICES,
368368
materialInstance: MaterialInstance? = null,
369+
position: Position = Position(x = 0f),
369370
apply: SphereNodeImpl.() -> Unit = {},
370371
content: (@Composable NodeScope.() -> Unit)? = null
371372
) {
@@ -381,6 +382,7 @@ open class SceneScope @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP_PREFIX) constru
381382
}
382383
SideEffect {
383384
node.updateGeometry(radius = radius, center = center, stacks = stacks, slices = slices)
385+
node.position = position
384386
}
385387
NodeLifecycle(node, content)
386388
}

0 commit comments

Comments
 (0)