Page MenuHome

Adding torus in edit mode local mode shows error
Closed, ResolvedPublic

Description

System Information
Win7 64

Blender Version
Broken: 2.78

Short description of error
If I work with object in local view and add torus in edit mode, I get this when set "Align to view" it adding options.

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\blender-2.78-windows64\2.78\scripts\startup\bl_operators\add_mesh_torus.py", line 222, in execute
  object_utils.object_data_add(context, mesh, operator=self)
File "C:\Program Files\Blender Foundation\blender-2.78-windows64\2.78\scripts\modules\bpy_extras\object_utils.py", line 188, in object_data_add
  bpy.data.meshes.remove(obdata)

RuntimeError: Error: Mesh 'Torus' must have zero users to be removed, found 1 (try with do_unlink=True parameter)

location: <unknown location>:-1

Exact steps for others to reproduce the error
Go to local mode, then to edit mode, add torus and click on "Align to view"

Event Timeline

Bastien Montagne (mont29) claimed this task.
Bastien Montagne (mont29) triaged this task as Confirmed, Medium priority.

Ah, that’s not a regression actually, same behavior in 2.77… Think issue here is that in local and edit mode, object_data_add helper cannot perform the Join operation between newly added object and existing one correctly - though it works the first time, odd... :/