From 73b0352035db525984a6aa716b569136c1b1f4fc Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Mar 2026 21:46:12 +0000 Subject: [PATCH] fix: add missing position parameter to SphereNode composable SphereNode was the only geometry node composable missing the position parameter. CubeNode, CylinderNode, PlaneNode, LineNode, etc. all have it. The reflection-probe sample was passing position to SphereNode, causing an unresolved parameter compilation error. https://claude.ai/code/session_01FpJ8JiZ4KVBhkJcUtCM35P --- sceneview/src/main/java/io/github/sceneview/SceneScope.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sceneview/src/main/java/io/github/sceneview/SceneScope.kt b/sceneview/src/main/java/io/github/sceneview/SceneScope.kt index 0bd432a8c..0f0cac721 100644 --- a/sceneview/src/main/java/io/github/sceneview/SceneScope.kt +++ b/sceneview/src/main/java/io/github/sceneview/SceneScope.kt @@ -366,6 +366,7 @@ open class SceneScope @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP_PREFIX) constru stacks: Int = Sphere.DEFAULT_STACKS, slices: Int = Sphere.DEFAULT_SLICES, materialInstance: MaterialInstance? = null, + position: Position = Position(x = 0f), apply: SphereNodeImpl.() -> Unit = {}, content: (@Composable NodeScope.() -> Unit)? = null ) { @@ -381,6 +382,7 @@ open class SceneScope @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP_PREFIX) constru } SideEffect { node.updateGeometry(radius = radius, center = center, stacks = stacks, slices = slices) + node.position = position } NodeLifecycle(node, content) }