nutti / fake-bpy-module

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

the type of `bpy.ops.transform.rotate(orient_matrix=)` parameter is not correct #99

Closed anatawa12 closed 2 years ago

anatawa12 commented 2 years ago

System Information

Expected behavior
The behavior you expect about the feature you reported. type of bpy.ops.transform.rotate(orient_matrix=) parameter should be List[List[float]] (Union[List[List[float]],Tuple[Tuple[float, float, float], Tuple[float, float, float], Tuple[float, float, float]] can be better)

Description about the bug
The description about the bug.

type of bpy.ops.transform.rotate(orient_matrix=) oaraneter should be List[List[float]] (Union[List[List[float]],Tuple[Tuple[float, float, float], Tuple[float, float, float], Tuple[float, float, float]] can be better) but List[Float] in fake-bpy-module

Screenshots/Files [Optional]
It is good to solve the bug if you attach the screenshots or .blend file.

Additional comments [Optional]

anatawa12 commented 2 years ago

I found that it looks this is more generic problem, parameters accepts matrix should be marked as List[List[float]] but currently List[float]. Also, properties/functions returns matrix should mark as bpy.types.Matrix but List[float] currently.

nutti commented 2 years ago

This relates to #95 . Current analysis algorithm does not support this kind of types. I think this should be fixed.

nutti commented 2 years ago

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