Creating a new object while user in localview strangeness #51590

Closed
opened 2017-05-22 18:03:47 +02:00 by Tom Wilson · 9 comments

Blender Version
2.78c

If a new object is added while in local view using bpy.data.objects.new(), if the newly created object is then parented to one of the isolated objects and transformed (scaled, rotated or translated), when you come out of local view the new object is still with no translation, scaling or rotation.
But if you toggle editmode when back in global view/save and re-open, it'll update to it's correct transform.
This creates a problem for an operator unless you force the user out of localview.

**Blender Version** 2.78c If a new object is added while in local view using bpy.data.objects.new(), if the newly created object is then parented to one of the isolated objects and transformed (scaled, rotated or translated), when you come out of local view the new object is still with no translation, scaling or rotation. But if you toggle editmode when back in global view/save and re-open, it'll update to it's correct transform. This creates a problem for an operator unless you force the user out of localview.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @hedgehog90-3

Added subscriber: @hedgehog90-3
Tom Wilson changed title from Creating a new object in localview = weirdness to Creating a new object while user in localview strangeness 2017-05-22 18:05:02 +02:00
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

hi, tested & confirming this.
indeed in a few addons I prevent execution in local view, as simple they crash or do not work as expected.
I do wonder if an auto toggle would fix this, if in local view mode, switch out for the object creation, then back in.
In some ways this is a known issue, but thanks for bringing to our attention. ( i thought is was addons only issue with local view )
Now I see it's object creation in general that does not behave well in local view.
Thanks

hi, tested & confirming this. indeed in a few addons I prevent execution in local view, as simple they crash or do not work as expected. I do wonder if an auto toggle would fix this, if in local view mode, switch out for the object creation, then back in. In some ways this is a known issue, but thanks for bringing to our attention. ( i thought is was addons only issue with local view ) Now I see it's object creation in general that does not behave well in local view. Thanks

Added subscriber: @mont29

Added subscriber: @mont29

Can we get more precise ways to reproduce the issue? Not sure what exactly is wrong here…

Note that local view is merely equivalent to adding all selected objects (and newly added ones) to a virtual temp layer, and only show that virtual layer's content. So it has same implication for DEG evaluation as objects on invisible layers - they won't be evaluated. Maybe we should enforce a full DEG refresh when leaving local View (all objects are already tagged to be updated though…).

Can we get more precise ways to reproduce the issue? Not sure what exactly is wrong here… Note that local view is merely equivalent to adding all selected objects (and newly added ones) to a virtual temp layer, and only show that virtual layer's content. So it has same implication for DEG evaluation as objects on invisible layers - they won't be evaluated. Maybe we should enforce a full DEG refresh when leaving local View (all objects are already tagged to be updated though…).

Added subscriber: @fablefox

Added subscriber: @fablefox

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Fable Fox self-assigned this 2017-07-12 11:37:57 +02:00

No reply over a week. Closing for now.

No reply over a week. Closing for now.
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
4 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#51590
No description provided.