Unable to move compositor backdrop image using manipulator if outside of view area #54046

Closed
opened 2018-02-10 13:58:19 +01:00 by Antonio Vazquez · 9 comments

Blender 2.8
Windows 64 bits

If you use the backdrop image and move the display image using the manipulator outside the view area, you cannot move again the image because the scroll bars don't move the image.

See this video: https://www.dropbox.com/s/7zv4tc0oxtivs7r/UI_Compo_problem.mp4?dl=0

Blender 2.8 Windows 64 bits If you use the backdrop image and move the display image using the manipulator outside the view area, you cannot move again the image because the scroll bars don't move the image. See this video: https://www.dropbox.com/s/7zv4tc0oxtivs7r/UI_Compo_problem.mp4?dl=0
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov

Added subscribers: @ideasman42, @LucasMotaRibeiro-1

Added subscribers: @ideasman42, @LucasMotaRibeiro-1

Confirmed on Blender 2.8 - Arch Linux x64.

It's also possible to see that there is no strong association between using the manipulators or the backdrop's toolbar on the right.
More specifically, when you drag the backdrop, there is no change in the offset until you hover the sidebar also when you use the Move button and the handlers don't move with it (only when you deselect and select the view node).

Reading more of the code I've seen this piece that could cause part of the problem above:
WM_manipulator_types.h:303

        /* Returns the final transformation which may be different from the 'matrix',
	 * depending on the manipulator.
	 * Notes:
	 * - Scale isn't applied (wmManipulator.scale/user_scale).
	 * - Offset isn't applied (wmManipulator.matrix_offset).
	 */
	wmManipulatorFnMatrixBasisGet matrix_basis_get;

Watching the code, I've seen that @ideasman42 wrote part of the manipulators. Maybe he could give some insights.

Also, what would be the best approach to avoid missing the manipulators on the scene ? Or should we just guarantee the consistency of the toolbar and manipulators information?

Confirmed on Blender 2.8 - Arch Linux x64. It's also possible to see that there is no strong association between using the manipulators or the backdrop's toolbar on the right. More specifically, when you drag the backdrop, there is no change in the offset until you hover the sidebar also when you use the `Move` button and the handlers don't move with it (only when you deselect and select the view node). Reading more of the code I've seen this piece that could cause part of the problem above: `WM_manipulator_types.h:303` ``` /* Returns the final transformation which may be different from the 'matrix', * depending on the manipulator. * Notes: * - Scale isn't applied (wmManipulator.scale/user_scale). * - Offset isn't applied (wmManipulator.matrix_offset). */ wmManipulatorFnMatrixBasisGet matrix_basis_get; ``` Watching the code, I've seen that @ideasman42 wrote part of the manipulators. Maybe he could give some insights. Also, what would be the best approach to avoid missing the manipulators on the scene ? Or should we just guarantee the consistency of the toolbar and manipulators information?
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member
diff --git a/source/blender/editors/space_node/node_manipulators.c b/source/blender/editors/space_node/node_manipulators.c
index 73b0f44b043..a62c0065594 100644
--- a/source/blender/editors/space_node/node_manipulators.c
+++ b/source/blender/editors/space_node/node_manipulators.c
@@ -134,6 +134,7 @@ static void WIDGETGROUP_node_transform_setup(const bContext *UNUSED(C), wmManipu
 
        RNA_enum_set(wwrapper->manipulator->ptr, "transform",
                     ED_MANIPULATOR_CAGE2D_XFORM_FLAG_TRANSLATE | ED_MANIPULATOR_CAGE2D_XFORM_FLAG_SCALE_UNIFORM);
+       RNA_enum_set(wwrapper->manipulator->ptr, "draw_options", 0);
 
        mgroup->customdata = wwrapper;
 }

Would fix this issues, but as manipulators are implemented as modal operations, it is not possible to select a node that is on top of the backdrop which is also annoying. There should be some mechanism that these manipulators are not 'fully' modal.

Currently only the selection of the node will work if no handler of the manipulator will not get any focus.

``` diff --git a/source/blender/editors/space_node/node_manipulators.c b/source/blender/editors/space_node/node_manipulators.c index 73b0f44b043..a62c0065594 100644 --- a/source/blender/editors/space_node/node_manipulators.c +++ b/source/blender/editors/space_node/node_manipulators.c @@ -134,6 +134,7 @@ static void WIDGETGROUP_node_transform_setup(const bContext *UNUSED(C), wmManipu RNA_enum_set(wwrapper->manipulator->ptr, "transform", ED_MANIPULATOR_CAGE2D_XFORM_FLAG_TRANSLATE | ED_MANIPULATOR_CAGE2D_XFORM_FLAG_SCALE_UNIFORM); + RNA_enum_set(wwrapper->manipulator->ptr, "draw_options", 0); mgroup->customdata = wwrapper; } ``` Would fix this issues, but as manipulators are implemented as modal operations, it is not possible to select a node that is on top of the backdrop which is also annoying. There should be some mechanism that these manipulators are not 'fully' modal. Currently only the selection of the node will work if no handler of the manipulator will not get any focus.
Member

We should have a mechanism that gets all valid events and have an ordering to select the event that will be handled.
In the manipulator we could add a flag that other events will get precedence over the manipulator events.
And add that flag to the backdrop manipulator.
Another solution is a priority of the event to use as ordering.

We should have a mechanism that gets all valid events and have an ordering to select the event that will be handled. In the manipulator we could add a flag that other events will get precedence over the manipulator events. And add that flag to the backdrop manipulator. Another solution is a priority of the event to use as ordering.
Member

Ok, did some testing on what is possible.

  1. When implementing the fallback code in the event handler (or changing the order of the event handler list of the space_node this was possible, but came to another issue. Mouse cursor was not displayed correctly as manipulators are modal operators
  2. the solution might be that we make the wm_manipulatormap_highlight_find context aware and not finding manipulator handlers that are obstructed by for example a nodes in the space_node when the manipulator has the fallback-flag set.

Will check with @ideasman42 what would be a good next step for this.

Ok, did some testing on what is possible. 1. When implementing the fallback code in the event handler (or changing the order of the event handler list of the `space_node` this was possible, but came to another issue. Mouse cursor was not displayed correctly as manipulators are modal operators 2. the solution might be that we make the `wm_manipulatormap_highlight_find` context aware and not finding manipulator handlers that are obstructed by for example a nodes in the `space_node` when the manipulator has the fallback-flag set. Will check with @ideasman42 what would be a good next step for this.
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Antonio Vazquez self-assigned this 2018-10-24 19:15:15 +02:00
Author
Member

I think this was solved with the new fit button.

I think this was solved with the new fit button.
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#54046
No description provided.