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

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

Open cmbasnett opened this issue 1 year ago • 3 comments

System Information

  • OS: Windows
  • Blender version: 3.2

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]

cmbasnett avatar Aug 10 '22 08:08 cmbasnett

@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?

nutti avatar Aug 10 '22 08:08 nutti

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?

colinbasnettskyboxlabs avatar Aug 10 '22 18:08 colinbasnettskyboxlabs

@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 avatar Aug 11 '22 01:08 nutti

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

nutti avatar Aug 26 '22 12:08 nutti