Grease pencil UI gets stuck between draw mode/tool and edit mode. #78897
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#78897
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: NVIDIA GeForce GT 650M OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-14.0.32 355.11.11.10.10.143
Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-02 22:21, hash:
blender/blender@5a13f682ee
Short description of error
Blender will sometimes end up in a weird state where the UI for grease pencil's draw tool is displayed incorrectly, it looks like a mix between draw mode and edit mode.
I ran across this while working on an add-on that tries to wrap blender's undo (more context here ).
I was surprised my add-on could even get blender into this state (and i don't understand how/why it's happening) so thought i should report it in case it's a blender bug. I haven't been able to reproduce this without using the add-on code. The add-on calls blenders undo, sometimes more than once per invocation.
Here's the add-on:
Exact steps for others to reproduce the error
Added subscriber: @info-27
It seems like calling the execute method recursively was causing the problem (are you not supposed to do that?). When I changed the code around to use a while loop instead of recursion it worked as expected.
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Needs User Info'
It is possible to get some invalid states or even crashes with python code. We try to sanitize these situations if possible but won't necessarily consider them to be bugs.
I don't think problem is calling operator execute function recursively. Just looking at code I see that you did not include everyting (setting
original_mode
) in a loop so perhaps that may be the issue.Should we consider this issue resolved? Please keep in mind that this is not site to provide user support.
Changed status from 'Needs User Info' to: 'Resolved'
i've set it to resolved. I'll open a new issue if i can get the same problem with more simple code in the future.