Skip to content

[BUG] UsdRenderer.render points fails for 2-4 points #708

@JonathanKuelz

Description

@JonathanKuelz

Bug Description

The method render_points in the USD renderer fails if exactly 2, 3, or 4 points are rendered.

The line instancer.CreateProtoIndicesAttr().Set((0,) * len(points)) here fails with

Error in 'pxrInternal_v0_25_2__pxrReserved__::UsdStage::_SetValueImpl' at line 6886 in file /opt/USD/pxr/usd/usd/stage.cpp : 'Type mismatch for </root/goal.protoIndices>: expected 'VtArray', got 'GfVec2d''

(and similar errors for 3, 4 points), if len(points) is exactly 2, 3, or 4.

System Information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions