Adding torus in edit mode local mode shows error #49743

Closed
opened 2016-10-16 11:16:47 +02:00 by Maksym Tkachenko · 5 comments

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: :-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"

**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"

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @MaximTkachenko

Added subscriber: @MaximTkachenko
Bastien Montagne self-assigned this 2016-10-16 15:14:33 +02:00

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... :/

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... :/

This issue was referenced by 216a3a3826

This issue was referenced by 216a3a3826214c665c90b8c89715507e8755b1c7

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#49743
No description provided.