Closed arcusmaximus closed 2 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:
BMLayerAccessEdge.float
None
BMLayerCollection
BMLayerCollection.get()
BMLayerItem
BMesh.edges
BMEdge.__setitem__
bl_edge[bl_layer]
In general, though, fake-bpy-module is a huge help for developing my Blender addon. Thank you for creating it :)
BMLayerAccessEdge.float is typed as None instead of BMLayerCollection.
The following code produces a bunch of type checking errors:
Specifically:
BMLayerAccessEdge.float
is typed asNone
instead ofBMLayerCollection
.BMLayerCollection.get()
is similarly typed to returnNone
instead ofBMLayerItem
.BMesh.edges
is not recognized as being iterable.BMEdge.__setitem__
is not defined, meaningbl_edge[bl_layer]
again results in a type error.In general, though, fake-bpy-module is a huge help for developing my Blender addon. Thank you for creating it :)