nutti / fake-bpy-module

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

BMesh typing issues #179

Closed arcusmaximus closed 2 months ago

arcusmaximus commented 6 months ago

The following code produces a bunch of type checking errors:

bl_mesh = bmesh.from_edit_mesh(cast(bpy.types.Mesh, bpy.context.edit_object.data))

bl_layer = bl_mesh.edges.layers.float.get("bevel_weight_edge")
for bl_edge in bl_mesh.edges:
    cast(bmesh.types.BMEdge, bl_edge)[bl_layer] = 1.0

Specifically:

In general, though, fake-bpy-module is a huge help for developing my Blender addon. Thank you for creating it :)

Road-hog123 commented 2 months ago

BMLayerAccessEdge.float is typed as None instead of BMLayerCollection.