Changeset View
Changeset View
Standalone View
Standalone View
mesh_f2.py
| Context not available. | |||||
| if uv: | if uv: | ||||
| uv_layer = bm.loops.layers.uv.get(uv) | uv_layer = bm.loops.layers.uv.get(uv) | ||||
| return(uv_layer) | return uv_layer | ||||
| # create a face from a single selected edge | # create a face from a single selected edge | ||||
| Context not available. | |||||
| def poll(cls, context): | def poll(cls, context): | ||||
| # check we are in mesh editmode | # check we are in mesh editmode | ||||
| ob = context.active_object | ob = context.active_object | ||||
| return(ob and ob.type == 'MESH' and context.mode == 'EDIT_MESH') | return ob and ob.type == 'MESH' and context.mode == 'EDIT_MESH' | ||||
| def invoke(self, context, event): | def invoke(self, context, event): | ||||
| bm = bmesh.from_edit_mesh(context.active_object.data) | bm = bmesh.from_edit_mesh(context.active_object.data) | ||||
| Context not available. | |||||