fake-bpy-module icon indicating copy to clipboard operation
fake-bpy-module copied to clipboard

Unresolved attribute references for Matrix class

Open charlotte-green opened this issue 4 years ago • 1 comments

empty = bpy.data.objects.new("Empty", None)
empty.matrix_basis.identity()
empty.matrix_parent_inverse.identity()
rot = empty.matrix_world.to_quaternion()
mx = empty.matrix_world.inverted()
transform_mx = empty.matrix_world @ empty.matrix_world.inverted()

Because matrices type set to typing.List[float] instead of Matrix, the code above shows "Unresolved reference" warnings in PyCharm

charlotte-green avatar Sep 07 '21 14:09 charlotte-green

@charlotte-green

Thanks. But I think this issue should be solved by fixing the Blender docs. https://docs.blender.org/api/current/bpy.types.Object.html#bpy.types.Object.matrix_world

I will send a patch in near future.

nutti avatar Sep 08 '21 04:09 nutti

This is not blender issue. I fixed now this.

nutti avatar Aug 26 '22 12:08 nutti