Skip to content

Commit 5cd71cb

Browse files
RaiaNYilingQiao
andauthored
[BUG FIX] Fix draw_debug tutorial types (#1413)
Co-authored-by: YilingQiao <[email protected]>
1 parent 251905d commit 5cd71cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

genesis/vis/rasterizer_context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,9 @@ def on_lights(self):
723723
self.add_light(light)
724724

725725
def draw_debug_line(self, start, end, radius=0.002, color=(1.0, 0.0, 0.0, 1.0)):
726-
mesh = mu.create_line(start, end, radius, color)
726+
mesh = mu.create_line(
727+
tensor_to_array(start, dtype=np.float32), tensor_to_array(end, dtype=np.float32), radius, color
728+
)
727729
node = pyrender.Mesh.from_trimesh(mesh, name=f"debug_line_{gs.UID()}")
728730
self.add_external_node(node)
729731
return node

0 commit comments

Comments
 (0)