Page MenuHome

Python function bpy.ops.transform.skin_resize('INVOKE_DEFAULT') not taking effect after bmesh.verts loop
Open, Needs Triage by DeveloperPublic

Description

Operating System: Win 10
Graphics card: AMD Vega 64

Broken: blender-2.81.0 0d719fcacb3b, master, 2019-08-12

bpy.ops.transform.skin_resize('INVOKE_DEFAULT')

doesnt take effect when called after a bmesh.verts loop.
Other operators function normally.

Create a box => put a skin modifier on it => go in edit mode, select a vertice =>
change to the text editor and try to run following script snippet:

import bpy
import bmesh

vcount = 0
if bpy.context.mode == 'EDIT_MESH':
    bm = bmesh.from_edit_mesh(bpy.context.active_object.data)
    vcount = len([v.index for v in bm.verts if v.select])
        
if vcount == 1:
    bpy.ops.transform.skin_resize('INVOKE_DEFAULT')

OR just use this file with the script snippet already in place, for convenience:

Details

Type
Bug

Related Objects