How to make local single-user copy in Python API How to use this button via Python.



bpy.ops.object.make_single_user(object=True, obdata=True) does not work for me at all,
object.data.make_local() makes library local without copying it, so all objects reference to it.
object.data = object.data.copy()


makes localized copy of linked data-block.