Undoing 'create transformation orientation' makes selected transform orientation blank. #42468

Open
opened 2014-11-02 09:03:43 +01:00 by Stanislav Blinov · 15 comments

System Information
Linux 64bit

Blender Version
Broken: 2.72b, 2.71 (and lower?)

Short description of error

Creating custom transformation orientation can be undone, but doing so will set transformation orientation dropdown in 3D view header to blank value.

Exact steps for others to reproduce the error

  1. Create new file
  2. Run 'create transformation orientation' operator (ctrl+alt+space in default keymap): transformation orientation dropdown in 3D view header should change to show the name of newly created orientation
  3. Undo (ctrl+z): transformation orientation dropdown becomes blank.
**System Information** Linux 64bit **Blender Version** Broken: 2.72b, 2.71 (and lower?) **Short description of error** Creating custom transformation orientation can be undone, but doing so will set transformation orientation dropdown in 3D view header to blank value. **Exact steps for others to reproduce the error** 1. Create new file 2. Run 'create transformation orientation' operator (ctrl+alt+space in default keymap): transformation orientation dropdown in 3D view header should change to show the name of newly created orientation 3. Undo (ctrl+z): transformation orientation dropdown becomes blank.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @Stan_Pancakes

Added subscriber: @Stan_Pancakes

#46011 was marked as duplicate of this issue

#46011 was marked as duplicate of this issue

Added subscriber: @ideasman42

Added subscriber: @ideasman42

The issue here is screen data is stored separate to blend-file data, so undo/redo can make them out-of-sync.

The issue here is screen data is stored separate to blend-file data, so undo/redo can make them out-of-sync.

Added subscriber: @Sergey

Added subscriber: @Sergey

@ideasman42, shall we run some sort of validation of the screen data after undo or we just mark the operator as non-undoable?

@ideasman42, shall we run some sort of validation of the screen data after undo or we just mark the operator as non-undoable?

Cant really see a good solution here - making it non-undoable wont help since some other operation can push the undo stack.

We could just work-around the problem with a fallback - if the index is out of range use world-space, but even in this case undo will switch back and forget the space that was set previously...

Another way could be to store 2 indices's.

  • Index of built-in manipulator.
  • Index of custom manipulator.

Then if the index of the custom manipulator is out of range it can used the built-in value.
But this seems like a reasonable amount of effort just to workaround this bug.

Cant really see a good solution here - making it non-undoable wont help since some other operation can push the undo stack. We could just work-around the problem with a fallback - if the index is out of range use world-space, but even in this case undo will switch back and forget the space that was set previously... Another way could be to store 2 indices's. - Index of built-in manipulator. - Index of custom manipulator. Then if the index of the custom manipulator is out of range it can used the built-in value. But this seems like a reasonable amount of effort just to workaround this bug.

@ideasman42, think it's better to just clamp transform index and don't worry about previously used space. Would at least prevent inconsistent state of .blend file even tho wouldn't be totally nice solution from user's perspective. Further improvements could b then moved to TODO.

@ideasman42, think it's better to just clamp transform index and don't worry about previously used space. Would at least prevent inconsistent state of .blend file even tho wouldn't be totally nice solution from user's perspective. Further improvements could b then moved to TODO.

The reason I dont much like to clamp on undo, - is (undo/redo) will then change your manipulator.

The reason I dont much like to clamp on undo, - is (undo/redo) will then change your manipulator.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Ehh, would say this is a todo?

Ehh, would say this is a todo?

Looked into possible fix, but not really happy with it because its searching the list on each access. P210

Setting as TODO.

Looked into possible fix, but not really happy with it because its searching the list on each access. [P210](https://archive.blender.org/developer/P210.txt) Setting as TODO.

Added subscribers: @mont29, @ZhangYu

Added subscribers: @mont29, @ZhangYu

I guess this one is now different: name seems to be kept, but the operation isn't undone (transform orientation remains after undo).

I guess this one is now different: name seems to be kept, but the operation isn't undone (transform orientation remains after undo).
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
6 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#42468
No description provided.