Copy/Paste Behavior in Viewport #79733

Open
opened 2020-08-12 13:13:24 +02:00 by Leo Schmidt · 11 comments

System Information
Operating system: Darwin-19.6.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon R9 M390 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.15

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-10 21:16, hash: acd4687063
Worked: Never worked in 2.8+

Short description of error
When pasting an object, the gizmo is not positioned at the newly created object, where you would expect it to be. Instead, there are two cases - both seem to be not intended.
The pasted object also is not active for direct manipulation despite the visual indication with the gizmo.

Exact steps for others to reproduce the error
If there is a selection somewhere else before pasting, the gizmo ends up in the wrong position. Example:
image1.jpg

If there is no selection before pasting, there is no gizmo appearing at all. Example:
image2.jpg

A directly interconnected problem is that pasted objects are not made active despite having an attached Gizmo. Example:
image3.jpg

Potential fix

  1. The gizmo could always appear and show where the object is pasted (belonging to the new object).
  2. The pasted object could become active. When multiple objects are pasted, the selection and active states of the copied objects could be transferred to the newly pasted ones. Also, all previous selections could be deselected after pasting.

Thank you :)

**System Information** Operating system: Darwin-19.6.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon R9 M390 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.15 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-10 21:16, hash: `acd4687063` Worked: Never worked in 2.8+ **Short description of error** When pasting an object, the gizmo is not positioned at the newly created object, where you would expect it to be. Instead, there are two cases - both seem to be not intended. The pasted object also is not active for direct manipulation despite the visual indication with the gizmo. **Exact steps for others to reproduce the error** If there is a selection somewhere else before pasting, the gizmo ends up in the wrong position. Example: ![image1.jpg](https://archive.blender.org/developer/F8772919/image1.jpg) If there is no selection before pasting, there is no gizmo appearing at all. Example: ![image2.jpg](https://archive.blender.org/developer/F8772923/image2.jpg) A directly interconnected problem is that pasted objects are not made active despite having an attached Gizmo. Example: ![image3.jpg](https://archive.blender.org/developer/F8772942/image3.jpg) **Potential fix** 1. The gizmo could always appear and show where the object is pasted (belonging to the new object). 2. The pasted object could become active. When multiple objects are pasted, the selection and active states of the copied objects could be transferred to the newly pasted ones. Also, all previous selections could be deselected after pasting. Thank you :)
Author

Added subscriber: @LeoSch

Added subscriber: @LeoSch
Member

Added subscribers: @WilliamReynish, @ideasman42, @lichtwerk

Added subscribers: @WilliamReynish, @ideasman42, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Pasted objects are selected but not active, editing in the properties Editor is for the active object. So far this is by design.
Looks like the gizmo should actually stick to selected objects (not active, but unselected)

So in this regard, I can confirm:

    • If you copy, move active, then paste, original object stays active but gets unselected (I'd say this is expected), gizmo should hop to selected (new object), looks like an update is missing
    • If you copy, paste right away (like in your last picture), the gizmo will actually hop to the new pasted object (I'd say this is expected), editing in the Properties editor is still for the active (old) object [while this might sound strange, I'd say this is still expected]

Regarding your potential fixes: these might be improvements, but would need proper design decissions from the UI team (but these would not be considered a bug)

I would still confirm this for now because of the inconsistency between - [x] and - [x] (or rather the potential bug / missing update in [1]).

CC @ideasman42
CC @WilliamReynish

Pasted objects are selected but not active, editing in the properties Editor is for the active object. So far this is by design. Looks like the gizmo should actually stick to selected objects (not active, but unselected) So in this regard, I can confirm: - - [x] If you copy, move active, then paste, original object stays active but gets unselected (I'd say this is expected), gizmo should hop to selected (new object), looks like an update is missing - - [x] If you copy, paste right away (like in your last picture), the gizmo will actually hop to the new pasted object (I'd say this is expected), editing in the Properties editor is still for the active (old) object [while this might sound strange, I'd say this is still expected] Regarding your potential fixes: these might be improvements, but would need proper design decissions from the UI team (but these would not be considered a bug) I would still confirm this for now because of the inconsistency between - [x] and - [x] (or rather the potential bug / missing update in [1]). CC @ideasman42 CC @WilliamReynish
Author

Thanks for the investigation into this issue.

Pasted objects are selected but not active, editing in the properties Editor is for the active object. So far this is by design.

I was bringing this up because it is inconsistent with the duplication behavior.
Users would probably expect the same behavior when copy/pasting and duplicating.

  • Pasted objects don't become active
  • Duplicated objects become active (which subjectively seems correct)
Thanks for the investigation into this issue. > Pasted objects are selected but not active, editing in the properties Editor is for the active object. So far this is by design. > I was bringing this up because it is inconsistent with the duplication behavior. Users would probably expect the same behavior when copy/pasting and duplicating. - Pasted objects don't become active - Duplicated objects become active (which subjectively seems correct)
Member

In #79733#995454, @LeoSch wrote:
I was bringing this up because it is inconsistent with the duplication behavior.
Users would probably expect the same behavior when copy/pasting and duplicating.

  • Pasted objects don't become active
  • Duplicated objects become active (which subjectively seems correct)

I would agree here (there might be cornercases to check -- but to me, this would seem to work better, yes).
Point is, that this would not be a bug, but more of a request for improved behavior [which we usually dont handle here on the bugtracker]

> In #79733#995454, @LeoSch wrote: > I was bringing this up because it is inconsistent with the duplication behavior. > Users would probably expect the same behavior when copy/pasting and duplicating. > > - Pasted objects don't become active > - Duplicated objects become active (which subjectively seems correct) I would agree here (there might be cornercases to check -- but to me, this would seem to work better, yes). Point is, that this would not be a bug, but more of a request for improved behavior [which we usually dont handle here on the bugtracker]
Member

Let me add that the operators select option doesnt seem to work:
image.png

Let me add that the operators `select` option doesnt seem to work: ![image.png](https://archive.blender.org/developer/F8776832/image.png)
Member

In #79733#995473, @lichtwerk wrote:
Let me add that the operators select option doesnt seem to work:
image.png

Well OK, this doesnt clear the BASE_SELECTED flag in add_loose_objects_to_scene if it was selected before (when copying).
And tbh, it doesnt promise to deselect if this option is not set.
There might be reasons to do it like this, but was confusing for me...

(Note: copying unselected objects is possible e.g. from the Outliner if objects are selected there [without the Sync Selection option] -- for those kind of unselected objects, the Select option of the Paste operator actually works...)

> In #79733#995473, @lichtwerk wrote: > Let me add that the operators `select` option doesnt seem to work: > ![image.png](https://archive.blender.org/developer/F8776832/image.png) Well OK, this doesnt **clear** the `BASE_SELECTED` flag in `add_loose_objects_to_scene` if it was selected before (when copying). And tbh, it doesnt promise to `deselect` if this option is not set. There might be reasons to do it like this, but was confusing for me... (Note: copying unselected objects is possible e.g. from the Outliner if objects are selected there [without the `Sync Selection` option] -- for those kind of unselected objects, the Select option of the `Paste` operator actually works...)
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

We have another report about gizmos not properly updating there location when selection changes here: #76335 (After switching to Tweak tool its gizmo appears in center of previously selected area.)

I don't have the energy to dive into that code right now though.

We have another report about gizmos not properly updating there location when selection changes here: #76335 (After switching to Tweak tool its gizmo appears in center of previously selected area.) I don't have the energy to dive into that code right now though.

Added subscriber: @ckohl_art

Added subscriber: @ckohl_art
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:24:12 +01:00
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#79733
No description provided.