paint.sample_color operator options no longer accessible by default due to undo flag removal #101144

Open
opened 2022-09-17 11:49:32 +02:00 by Mysteryem · 14 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.59

Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: e05e1e3691
Worked: 3.1.2

Short description of error
The undo flag for paint.sample_color was removed in https://developer.blender.org/rB511a08585d2934b38e7d3de447752686b5f0e15b, this means that the 'redo toolbar panel' no longer pops up after sampling color with the default keybinding of 'S'. Previously, users could change the default settings through the 'redo toolbar panel', without it, I don't think the "Sample Merged" and "Add to Palette" options are accessible to users by default any more.

I'm not sure if this should be considered a bug or an API change, but for the latter, I think there should at least be some other way to access these options through the UI or default keybindings without requiring users to create new keybindings with these options specifically enabled/disabled.

'redo toolbar panel': image.png

Exact steps for others to reproduce the error

  1. Enter Texture Paint mode
  2. Hit S (default keybinding of paint.sample_color)
  3. No 'redo toolbar panel' appears to allow for changing operator options
**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.59 **Blender Version** Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `e05e1e3691` Worked: 3.1.2 **Short description of error** The undo flag for `paint.sample_color` was removed in https://developer.blender.org/rB511a08585d2934b38e7d3de447752686b5f0e15b, this means that the 'redo toolbar panel' no longer pops up after sampling color with the default keybinding of 'S'. Previously, users could change the default settings through the 'redo toolbar panel', without it, I don't think the "Sample Merged" and "Add to Palette" options are accessible to users by default any more. I'm not sure if this should be considered a bug or an API change, but for the latter, I think there should at least be some other way to access these options through the UI or default keybindings without requiring users to create new keybindings with these options specifically enabled/disabled. 'redo toolbar panel': ![image.png](https://archive.blender.org/developer/F13503482/image.png) **Exact steps for others to reproduce the error** 1. Enter Texture Paint mode 2. Hit `S` (default keybinding of `paint.sample_color`) 3. No 'redo toolbar panel' appears to allow for changing operator options
Author

Added subscriber: @Mysteryem-2

Added subscriber: @Mysteryem-2
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Added subscribers: @JosephEagar, @JulienKaspar

Added subscribers: @JosephEagar, @JulienKaspar
Member

Thanks for the report. I'm not sure whether this change was discussed before committing. So forwarding this report to developers.

Thanks for the report. I'm not sure whether this change was discussed before committing. So forwarding this report to developers.
Member

@JosephEagar Can you look into this. Seems not all sampling operators were taken into account when that change was made.

@JosephEagar Can you look into this. Seems not all sampling operators were taken into account when that change was made.

Added subscriber: @Astrexis

Added subscriber: @Astrexis
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Member

I recall issues regarding the Palette option (see #78181 (Texture Paint: Color Palette operator issues with Undo/Redo -- Vertex Paint is fine though)), but Sample Merged is quite important?
Think I also proposed another fix in #78181 (to just hide the palette stuff from the UI).

Will confirm for now until we have more insights from @JosephEagar

I recall issues regarding the Palette option (see #78181 (Texture Paint: Color Palette operator issues with Undo/Redo -- Vertex Paint is fine though)), but `Sample Merged` is quite important? Think I also proposed another fix in #78181 (to just hide the palette stuff from the UI). Will confirm for now until we have more insights from @JosephEagar
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:11:11 +01:00
Member

Any updates/info on this @JosephEagar ?

From the commit message:

These types of operators are not supposed to be undoable in the first place.

Well, at least you need to be able to redo this (to change the options)

Also memfile undo is too buggy for it.

Mind elaborating?

Any updates/info on this @JosephEagar ? From the commit message: > These types of operators are not supposed to be undoable in the first place. Well, at least you need to be able to redo this (to change the options) > Also memfile undo is too buggy for it. Mind elaborating?
Member

If supporting undo for color changes is sufficiently important we can handle it inside the sculpt undo stack, though that's a bit hackish. It would be better to fix memfile undo so if you push a memfile step after a sculpt one it doesn't ignore it.

If supporting undo for color changes is sufficiently important we can handle it inside the sculpt undo stack, though that's a bit hackish. It would be better to fix memfile undo so if you push a memfile step after a sculpt one it doesn't ignore it.
Julien Kaspar added
Type
Bug
and removed
Type
Report
labels 2023-07-04 09:56:06 +02:00
Contributor

Is there a recommended workaround for easy access to sample merged until/unless this is resolved? Is the best approach to just create a custom key binding to do sample vs sample merged?

Is there a recommended workaround for easy access to sample merged until/unless this is resolved? Is the best approach to just create a custom key binding to do sample vs sample merged?
Member

@andrewoates A custom shortcut would be the ideal workaround for now, yes.

@andrewoates A custom shortcut would be the ideal workaround for now, yes.
Julien Kaspar added this to the Sculpt, Paint & Texture project 2024-02-13 17:58:06 +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 Assignees
7 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#101144
No description provided.