nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.35k stars 96 forks source link

All vector and matrix variables return list of floats instead of Vector and Matrix types #112

Closed cmbasnett closed 2 years ago

cmbasnett commented 2 years ago

System Information

Expected behavior
All vector types (e.g., bpy.types.Object.location) should return a mathutils.Vector type, and all matrix types (e.g., bpy.types.Object.matrix_local) should return a mathutils.Matrix type.

Screenshots/Files [Optional]
image

Additional comments [Optional]

nutti commented 2 years ago

@cmbasnett

The actual document does not show that return type is not mathutils.Vector. I think this is a the official document's issue. What do you think?

colinbasnettskyboxlabs commented 2 years ago

Yea, this is a documentation issue it seems. My guess is that they used to return just a list of list of floats, but it was never updated.

Out of curiosity, does the module get generated strictly from the documentation?

nutti commented 2 years ago

@colinbasnettskyboxlabs

does the module get generated strictly from the documentation?

Yes. fake-bpy-module generates from the documentation. But we tweak some documentation on the generation process.

I think this issue is related to #93 #95 #99, and tackle to this issue now.

nutti commented 2 years ago

This issue is now fixed at the same time of #93 .