Can't undo annotations in Sculpt #69552

Closed
opened 2019-09-05 18:31:52 +02:00 by Juanfran Matheu · 8 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: Radeon RX 580 Series ATI Technologies Inc. 4.5.13570 Core Profile Context 19.8.1 26.20.13001.29010

Blender Version
Broken: version: 2.81 (sub 5), branch: master, commit date: 2019-09-04 00:01, hash: da25aca267
Worked: (optional)

Short description of error
Can't undo annotations in Sculpt Mode

Exact steps for others to reproduce the error
Go to sculpt
Make some strokes with annotation tool
CTRL+Z (can't undo)

Due to the lack of this feature I made a similar (and specific) way to undo annotations by just deleting the last stroke:
Also it can be temp. saved to perform a redo with the same operator.

class NSMUI_OT_SculptNotes_UndoStroke(Operator):
    bl_idname = "nsmui.sculpt_notes_undo_stroke"
    bl_label = "Undo Note in Sculpt"
    bl_options = {'REGISTER', 'UNDO'}

    def error(self, context):
        self.layout.label(text="No strokes to undo !")

    def execute(self, context):   
        noteData = context.scene.grease_pencil
        frame = noteData.layers.active.active_frame
        if len(frame.strokes) < 1:
            bpy.context.window_manager.popup_menu(NSMUI_OT_SculptNotes_UndoStroke.error, title = "Can't do this !", icon = 'INFO')
        else:
            numStrokes = len(frame.strokes)
            lastStroke = frame.strokes[numStrokes-1]
            frame.strokes.remove(lastStroke)
        return {'FINISHED'}

2019-09-05 17-43-31.mp4

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: Radeon RX 580 Series ATI Technologies Inc. 4.5.13570 Core Profile Context 19.8.1 26.20.13001.29010 **Blender Version** Broken: version: 2.81 (sub 5), branch: master, commit date: 2019-09-04 00:01, hash: `da25aca267` Worked: (optional) **Short description of error** Can't undo annotations in Sculpt Mode **Exact steps for others to reproduce the error** Go to sculpt Make some strokes with annotation tool CTRL+Z (can't undo) Due to the lack of this feature I made a similar (and specific) way to undo annotations by just deleting the last stroke: Also it can be temp. saved to perform a redo with the same operator. ``` class NSMUI_OT_SculptNotes_UndoStroke(Operator): bl_idname = "nsmui.sculpt_notes_undo_stroke" bl_label = "Undo Note in Sculpt" bl_options = {'REGISTER', 'UNDO'} def error(self, context): self.layout.label(text="No strokes to undo !") def execute(self, context): noteData = context.scene.grease_pencil frame = noteData.layers.active.active_frame if len(frame.strokes) < 1: bpy.context.window_manager.popup_menu(NSMUI_OT_SculptNotes_UndoStroke.error, title = "Can't do this !", icon = 'INFO') else: numStrokes = len(frame.strokes) lastStroke = frame.strokes[numStrokes-1] frame.strokes.remove(lastStroke) return {'FINISHED'} ``` [2019-09-05 17-43-31.mp4](https://archive.blender.org/developer/F7718540/2019-09-05_17-43-31.mp4)

Added subscriber: @jfmatheu

Added subscriber: @jfmatheu

Added subscribers: @PabloDobarro, @antoniov

Added subscribers: @PabloDobarro, @antoniov

@PabloDobarro Do you know what can be the reason? In object mode the Undo works perfect, but in Sculpt mode the Ctrl+Z is not working.

@PabloDobarro Do you know what can be the reason? In object mode the Undo works perfect, but in Sculpt mode the Ctrl+Z is not working.
Member

@antoniov I checked it and it is calling the specific sculpt mesh undo code after a grease pencil stroke, so it is not doing anything. Probably ##sculpt_undosys_poll## needs to check if the last operation was a grease pencil stroke.

@antoniov I checked it and it is calling the specific sculpt mesh undo code after a grease pencil stroke, so it is not doing anything. Probably ##sculpt_undosys_poll## needs to check if the last operation was a grease pencil stroke.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Cant redo this in 0418e28944, guess this is resolved (there were some changes to sculpt undo, no?)

Can anyone still reproduce this?

Cant redo this in 0418e28944, guess this is resolved (there were some changes to sculpt undo, no?) Can anyone still reproduce this?
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Philipp Oeser self-assigned this 2019-12-05 15:25:52 +01:00
Member

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.
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
4 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#69552
No description provided.