Skip to content

[BUG] Invalid dtype Comparison in Matrix/Vector/Quaternion Built-Ins #651

@christophercrouzet

Description

@christophercrouzet

Bug Description

@wp.kernel
def foo():
    wp.vector(1, 1, 1, dtype=int)
    wp.quaternion(1.23, 2.34, 3.45, 4.56, dtype=float)
    wp.matrix(1.0, 2.0, 3.0, 4.0, shape=(2, 2), dtype=float)

The snippet above raise errors such as

all values used to initialize this vector are expected to be of the type `int`

System Information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions