TEXTURE PAINT tab BUG- Undo a simple PAINT operation using CTRL-Z and it removes entire TEXTURE IMAGE-Workarounds and Thorough Steps to Repeatability BELOW. #60660
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
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60660
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
Operating system: Windows 10
Graphics card: Nvidia 900 series
Latest Blender 2.8 (
c59370bf64
)Undoing a Paint operation in Texture Paint Editor using (CTRL-Z) on a given texture results in removal of texture (object goes pink) and requires a multiple step workaround to get texture back.
note: Program crashed sometimes during this exact process. It is not every time, but it has occurred more than twice when repeating the steps below so it warrants reporting. During crash, the Entire program shuts down and closes instantly.
STEPS IN LOADING BASIC UV IMAGE TEXTURE ONTO SUZANNE MONKEY
LOAD Program
A-Select All, Delete (clear grid)
Shift-A-select mesh- monkey (suzanne)
Click on UV editing tab (default unwrap is good, so do not unwrap)
In UV editor Header, click "+ New" and name a new image texture. Ex ("Bob"). When Menu Popup appears, Keep all defaults but select "UV grid" for Generated Type (This puts a checker board on the UVs on the left but does not affect the object yet).
Click on Shading Tab
Go to Properties Editor-Materials Icon on the right side. Add Default Material ("+NEW") in the Add Material Slot.
In the Shader Node Editor (bottom screen), click on BSDF node to select. Then press delete on keyboard.
In Same Shader Node Editor, go to ADD->texture->Image Texture
Inside Image Texture node, use drop down to select "Bob" UV grid image texture you just made in the UV editor.
Connect Color Output of "Bob" IMAGE TEXTURE Node to the Surface Input of Material Output node. You should see the UV Grid image wrapped on monkey at this point (LookDev or Render should be selected in the upper right of the 3D viewer).
STEPS TO REPEAT TEXTURE BEING REMOVED on CTRL-Z UNDO OPERATION.
Now Click on TEXTURE PAINT Tab on top screen. Monkey should be pink to indicate no texture applied.
On the right side In Properties Editor->Tools, you should see texture "bob". Click on it to select it. Monkey should then be wrapped in UV checkerboard texture.
Now paint in Texture Paint window on the checkered Monkey. Just click and drag over Object. The paint is white default and the painting operation is slightly laggy. But what if I want to simply UNDO that LAST PAINT OPERATION?
NOW I WANT TO UNDO the last PAINT OPERATION:
Now type "CTRL-Z" ONCE to revert back one operation to before you painted. INSTEAD OF GOING BACK ONE OPERATION TO THE CLEAN CHECKERBOARD WITHOUT THE PAINT, Monkey goes pink again (loses IMAGE TEXTURE). If you click on "MODE" dropdown in Properties->Tools->Texture Slots and select "Material", "Bob" texture is available to click on. BUT....CLICKING ON IT makes object BLACK with no uv grid texture.
WORKAROUND:
1.)When you FIRST CTRL-Z after painting on object to undo AND it goes pink (texture removed). CLICK ON UV EDITING TAB NEXT to TEXTURE PAINT TAB on top screen UI (CYCLING to another arbitrary tab and then BACK to the TEXTURE TAB seems to RESET TEXTURE PAINT TAB. CLICK BACK TO TEXTURE PAINT TAB. DOING THIS appears to reset the PROPERTIES EDITOR-TOOLS-TEXTURE SLOTS because NOW "BOB" texture should now be available and WILL NOT make the OBJECT turn black. Click on IT and YOU GET the Checkerboard UV Image TEXTURE.
2.)If you don't use the cycling to one tab and back to texture paint tab method, and choose "bob", the object goes black and you must INSTEAD press CTRL-Z several times to get back to the checkerboard image texture. The object window is ALSO no longer IN TEXURE PAINT WINDOW and is now 3d view, object mode, so you still need to use cycle method (click on another tab and then back to TEXTURE PAINT tab to reset the workspace).
This seems like A LOT to go through just to UNDO one little paint operation on a TEXTURE. Hope this helps!
Added subscriber: @JBogey
Added subscriber: @Sullyman
I ran into the same issue where when painting in texture paint mode with the first stroke being painted onto the model, then hitting ctrl+z to undo, the material is switched to another (model becomes pink) or the materials texture image is replace or switched.
My work around to fix the issue after using the hotkey shortcut is to re-select the material in the material panel and also going to either the uv editor or image editor panel and reloading the image. This usually brings everything back.
At this point, I just use the main menu's "Edit > Undo" without using the hotkey for any "first stroke" scenarios. Undo hotkeys are fine for anything beyond the first stroke.
Added subscriber: @Scaredyfish
Added subscriber: @ideasman42
Developer note:
The cause of the issue is loading global undo is using a
GPUTexture
that is then freed by (setup_app_data
->BKE_blender_globals_clear
).Both source and destination are the same:
ima->gputexture- [x] = newimaadr(fd, ima->gputexture[i]);
Relates to #60809, which I'd like to fix first.
Added subscriber: @ZedDB
I'll mark this as confirmed then.
@JBogey could you re-test this bug? Some other fixes have been applied and I can no-longer redo the error you've reported.
@ideasman42 I can still reproduce undo issues with texture paint with the example in #60954. Should I merge it in?
I can confirm this issue is still present in current build
a1ae04d15a
Simpler repro procedure:
At least in this case, this seems to happen when undoing the first paint operation.
texturepaintbug.blend
This issue was referenced by
8c89790674
Changed status from 'Open' to: 'Resolved'
Added subscriber: @Chocobobo
This bug is unbelievably annoying, do your best to solve it please.
Added subscriber: @KennethThomas
Added subscriber: @Radivarig