Multi-Button Drag: not working properly for Object Dimensions #38587
Labels
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
17 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#38587
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 7
Blender Version
Broken: 2014-02-11
Short description of error
Multi-Button Drag - https://developer.blender.org/D270 - doesn't work properly in N panel for Dimensions
If you drag over all 3, only X and Z change, Y remains unchanged. As mouse button is released, the first selected property will reset, only the last hovered is kept (and scale changed)
Changed status to: 'Open'
Added subscriber: @CodeManX
#64496 was marked as duplicate of this issue
#55225 was marked as duplicate of this issue
#47977 was marked as duplicate of this issue
#46025 was marked as duplicate of this issue
#44340 was marked as duplicate of this issue
#42657 was marked as duplicate of this issue
#41347 was marked as duplicate of this issue
#42759 was marked as duplicate of this issue
#42433 was marked as duplicate of this issue
#40511 was marked as duplicate of this issue
#38760 was marked as duplicate of this issue
#39019 was marked as duplicate of this issue
#39227 was marked as duplicate of this issue
#39665 was marked as duplicate of this issue
#38820 was marked as duplicate of this issue
#50043 was marked as duplicate of this issue
#49638 was marked as duplicate of this issue
Multi-Button Drag: Only X and Z work for Object Dimensionsto Multi-Button Drag: not working properly for Object DimensionsAdded subscriber: @JoshuaLeung
Added subscriber: @Sergey
Object dimensions are broken and an abuse of RNA, IMHO - the same problem happens from Python and we had it reported too.
Basically they rely on one axis being set, then updating - before the other values are set.
This is in fact the same bug:
However since this is so user visible, it really should be addressed somehow, leaving open.
Added subscriber: @lucacustom
◀ Merged tasks: #38760.
Added subscribers: @candreacchio, @dfelinto
◀ Merged tasks: #38820.
Added subscriber: @AngelPat
Added subscribers: @PabloGilFernandez, @mont29, @DuarteRamos
◀ Merged tasks: #39019.
Uh, well, decided to have a quick look at this one, and I realized BKE_object_dimensions_set() was quite broken (just add two objects, parent one to the other, scale parent e.g. 0.5, and try setting dimension of child…). So I wrote this patch, and to my surprise it seems to also fix that bug!
P24: Fix "Dimension" issues?
Not sure this covers all possible situation (as already said in another related report, dimension can become rather involved in complex setups), but think it makes it at least less broken. ;)
Added subscriber: @ideasman42
Ok, so @ideasman42 noticed previous patch failed when reaching zero value… Here is a new one, there are still some glitches around 0 in case of "grouped drag", but it’s still better (do not have yet idea to fix completely the zero-issue):
Added subscriber: @EvandroFerreiradaCosta
◀ Merged tasks: #39227.
Added subscriber: @bliblubli
◀ Merged tasks: #39665.
@mont29, the patch mostly works well, but it has one strange behavior I noticed.
Pasting values into the buttons now fails.
I really think how this button works is broken, probably it shouldn't be using RNA at all and we could instead use callbacks so each situation can be handled better.
@ideasman42 imho, it’s not RNA the issue here, it’s that (to handle correctly things like parent-related scaling), we need to use
ob->obmat
to get current object's scale, and yet we setob->size
. The problem is that in some cases (like e.g. pasting values),BKE_object_dimensions_set()
is called twice or more without any object update in between, soob->obmat
becomes obsolete.This quick (and dirty, obviously not a good solution as is, just could not find a nice way to get current scene here) hack “fixes” it:
P35: #38587 related
Now how to do this properly, I do not know really. Is it possible to get a valid scene from on object pointer? Or, probably better, to flush tagged updates in RNA update func?
@mont29. the hack you propose could be made to work, but I would rather investigate some way to apply all buttons at once.
Or, redo the dimensions in C/ui.
dont use RNA for it, and have whatever hacks that are needed as callback functions for the C defined buttons.
Added subscriber: @gandalf3
◀ Merged tasks: #40511.
Added subscriber: @Druban
◀ Merged tasks: #41347.
Added subscriber: @MikhailRachinskiy
Added subscribers: @ZhangYu, @ThomasDinges
Added subscriber: @FilipMond
This comment was removed by @FilipMond
@FilipMond, please only add useful information in posts.
Setting as TODO because this is an error in the way the RNA attribute works and its not some mistake to correct, The rna code has to work differently to support this for Python and the UI.
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#UI_Widgets
Removed subscriber: @candreacchio
Added subscriber: @AdamPreisler
Added subscriber: @Traverso
Added subscriber: @quantumanomaly
Added subscriber: @YegorSmirnov
Added subscriber: @chrisoffner3d
Added subscriber: @GeorgesDahdouh
Closed as duplicate of #50043
Changed status from 'Duplicate' to: 'Open'
Sorry, merged them the wrong way.
Added subscriber: @Leroy-Xie
Added subscribers: @Baeronius, @lichtwerk
Added subscriber: @infrabread
Added subscriber: @capnm
Update (
ca58936f2f
)Works in the sidebar for some time, but is now broken in the object properties widget clone created in D5577.
Works in a glance under OSX, at least from 2.81a