Skip to content

Commit 6402b1e

Browse files
committed
FIX: Use lazy import for billboard to avoid module/function name collision
1 parent 6f56c08 commit 6402b1e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fury/actor/curved.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def sphere(
8686
The thickness of the wireframe lines.
8787
impostor : bool, optional
8888
Render spheres as billboard impostors instead of geometry when ``True``.
89-
Defaults to ``False``.
9089
9190
Returns
9291
-------
@@ -134,7 +133,7 @@ def sphere(
134133
obj.billboard_radii = radii_arr.copy()
135134
return obj
136135

137-
scales = radii
136+
scales = radii_arr
138137
directions = (1, 0, 0)
139138

140139
vertices, faces = fp.prim_sphere(phi=phi, theta=theta)
@@ -152,8 +151,6 @@ def sphere(
152151
wireframe=wireframe,
153152
wireframe_thickness=wireframe_thickness,
154153
)
155-
obj.billboard_radii = radii_arr.copy()
156-
obj.billboard_mode = "mesh"
157154
return obj
158155

159156

0 commit comments

Comments
 (0)