Deleting brush closes Paint panel and creates duplicate brush when re-entering a Paint Mode #45258

Closed
opened 2015-07-01 15:13:50 +02:00 by Dennis Brown · 12 comments

System Information
Windows 7 Pro SP1 x64
nVidia GTX 960

Blender Version
Broken: cf1bac3

Short description of error
When in Texture Paint mode for 3D View or UV/Image view, removing a brush removes the ability to use a brush at all by removing the Paint panel, as well as the Image Paint Tool options in the Brush menu. The only option is to exit the paint mode, and re-enter it. When doing so, The Brush brush in the list is copied and selected.

Exact steps for others to reproduce the error

  1. Switch to UV/Image Editor, and switch from View mode to Paint mode
  2. remove a brush via the Unlink button "X", and observe all tabs are removed, and only left with the Grease Pencil options
  3. Switch back to View mode from Paint mode, and back to Paint mode to refresh the panels. Notice that the brush selected is now "Brush.001"

3a. You can also select Paint when in Paint mode to refresh the mode. Same results.
4. You can continue to unlink brushes, and Blender will continue to create more copies of the "Brush" brush.

Correct me if I'm wrong, but I believe this use to work the same as vertex paint mode even after 2.72, where you could delete brushes, but not lose the ability to continue working with other brushes.

I did look at the older tickets, but did not see anything regarding this issue, but did notice it was an issue in 2.74 as well when trying to find a "working" version.

**System Information** Windows 7 Pro SP1 x64 nVidia GTX 960 **Blender Version** Broken: cf1bac3 **Short description of error** When in Texture Paint mode for 3D View or UV/Image view, removing a brush removes the ability to use a brush at all by removing the Paint panel, as well as the Image Paint Tool options in the Brush menu. The only option is to exit the paint mode, and re-enter it. When doing so, The Brush brush in the list is copied and selected. **Exact steps for others to reproduce the error** 1. Switch to UV/Image Editor, and switch from View mode to Paint mode 2. remove a brush via the Unlink button "X", and observe all tabs are removed, and only left with the Grease Pencil options 3. Switch back to View mode from Paint mode, and back to Paint mode to refresh the panels. Notice that the brush selected is now "Brush.001" 3a. You can also select Paint when in Paint mode to refresh the mode. Same results. 4. You can continue to unlink brushes, and Blender will continue to create more copies of the "Brush" brush. Correct me if I'm wrong, but I believe this use to work the same as vertex paint mode even after 2.72, where you could delete brushes, but not lose the ability to continue working with other brushes. I did look at the older tickets, but did not see anything regarding this issue, but did notice it was an issue in 2.74 as well when trying to find a "working" version.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @DBrown

Added subscriber: @DBrown

Added subscribers: @Psy-Fi, @Sergey

Added subscribers: @Psy-Fi, @Sergey
Antonis Ryakiotakis was assigned by Sergey Sharybin 2015-07-02 08:41:48 +02:00

@Psy-Fi, mind having a look into this report? :) Thanks in advance =)

@Psy-Fi, mind having a look into this report? :) Thanks in advance =)

Added subscriber: @ideasman42

Added subscriber: @ideasman42

@Psy-Fi, I was looking into this, and am wondering if its really important/needed to add a brush on entering point mode.

This is such a rare situation and normally you'll want to use one of the existing brushes anyway.

guessing this is mostly useful loading old files?

I was looking into picking an existing brush, however at this point we don't know the mode we're in, so it could pick a sculpt brush in vertex paint mode for eg.

Suggested fix...

  • add a new enum for kinds of brush types (since they're not a 1:1 match with object-modes)
  • use this to check for an existing brush to use (compatible with the current mode), only adding a new brush when none are available.
  • remove the color argument, (color can be set by checking the color enum).

This isn't really all that involved... probably ~20 line patch.

@Psy-Fi, I was looking into this, and am wondering if its really important/needed to add a brush on entering point mode. This is such a rare situation and normally you'll want to use one of the existing brushes anyway. guessing this is mostly useful loading old files? I was looking into picking an existing brush, however at this point we don't know the mode we're in, so it could pick a sculpt brush in vertex paint mode for eg. Suggested fix... ---- - add a new enum for kinds of brush types (since they're not a 1:1 match with object-modes) - use this to check for an existing brush to use (compatible with the current mode), only adding a new brush when none are available. - remove the color argument, (color can be set by checking the color enum). This isn't really all that involved... probably ~20 line patch.

The enum is already there, see Brush->ob_mode.
Selecting an existing brush instead of adding a new one is not that bad but I think the crucial part of this report is that the brush selection panel disappears. It should not disappear and allow choosing another brush. Just modifying the poll function of the panel should do. Probably we can mimic what other paint modes do.

The enum is already there, see Brush->ob_mode. Selecting an existing brush instead of adding a new one is not that bad but I think the crucial part of this report is that the brush selection panel disappears. It should not disappear and allow choosing another brush. Just modifying the poll function of the panel should do. Probably we can mimic what other paint modes do.

In #45258#331527, @Psy-Fi wrote:
The enum is already there, see Brush->ob_mode.

Right, the thing is, the function doesn't know which mode the caller is in, so it doesn't know which Brush->ob_mode to check for.
As I said, no big deal to add. But you may have an opinion on this.

> In #45258#331527, @Psy-Fi wrote: > The enum is already there, see Brush->ob_mode. Right, the thing is, the function doesn't know which mode the caller is in, so it doesn't know which `Brush->ob_mode` to check for. As I said, no big deal to add. But you may have an opinion on this.

In #45258#331527, @Psy-Fi wrote:
Selecting an existing brush instead of adding a new one is not that bad but I think the crucial part of this report is that the brush selection panel disappears. It should not disappear and allow choosing another brush. Just modifying the poll function of the panel should do. Probably we can mimic what other paint modes do.

Ah, thats bad, anything against just removing the check? P254 (tested, it seems to work fine without).

> In #45258#331527, @Psy-Fi wrote: > Selecting an existing brush instead of adding a new one is not that bad but I think the crucial part of this report is that the brush selection panel disappears. It should not disappear and allow choosing another brush. Just modifying the poll function of the panel should do. Probably we can mimic what other paint modes do. Ah, thats bad, anything against just removing the check? [P254](https://archive.blender.org/developer/P254.txt) (tested, it seems to work fine without).

Leave it to me, I'll take care of the report

Leave it to me, I'll take care of the report

This issue was referenced by 333feea6e9

This issue was referenced by 333feea6e9450379f5314f327cf1ac1aef6d8a07

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
5 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#45258
No description provided.