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

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

Open anatawa12 opened this issue 2 years ago • 2 comments

System Information

  • OS: macOS
  • Blender version: 2.93

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 avatar Apr 25 '22 11:04 anatawa12

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.

anatawa12 avatar Apr 25 '22 11:04 anatawa12

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

nutti avatar Apr 28 '22 07:04 nutti

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

nutti avatar Aug 26 '22 12:08 nutti