def execute(self, context):
    props = context.scene.muv_props.texture_lock
    obj = bpy.context.active_object
    bm = bmesh.from_edit_mesh(obj.data)
    if (common.check_version(2, 73, 0) >= 0):
        bm.verts.ensure_lookup_table()
        bm.edges.ensure_lookup_table()
        bm.faces.ensure_lookup_table()
    if (not bm.loops.layers.uv):
        self.report({'WARNING'}, 'Object must have more than one UV map')
        return {'CANCELLED'}
    props.verts_orig = [{'vidx': v.index, 'vco': v.co.copy(), 'moved': False} for v in bm.verts if v.select]
    return {'FINISHED'}
def execute(self, context):
    props = context.scene.muv_props.texture_lock
    obj = bpy.context.active_object
    bm = bmesh.from_edit_mesh(obj.data)
    if (common.check_version(2, 73, 0) >= 0):
        bm.verts.ensure_lookup_table()
        bm.edges.ensure_lookup_table()
        bm.faces.ensure_lookup_table()
    if (not bm.loops.layers.uv):
        self.report({'WARNING'}, 'Object must have more than one UV map')
        return {'CANCELLED'}
    props.verts_orig = [{'vidx': v.index, 'vco': v.co.copy(), 'moved': False} for v in bm.verts if v.select]
    return {'FINISHED'}