Cannot undo python opeartor that writes to curve attribute - if #114173

Closed
opened 2023-10-26 17:02:59 +02:00 by Jose Conseco · 9 comments

System Information
Operating system: Linux-6.1.55-1-MANJARO-x86_64-with-glibc2.38 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.113.01

Blender Version
Broken: version: 3.6.5, branch: blender-v3.6-release, commit date: 2023-10-16 14:30, hash: cf1e1ed46b7e
Worked: It works in Blender 4:
version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-10-12 18:54, hash: 1c4b2ad17f, type: release
build date: 2023-10-13, 00:23:59

Short description of error
Running simple operator, that increases radius attribute for curve (rad += 1), cannot be undone - if executed in curve edit mode.
Issue is fixed in Blender 4.0 so, maybe the fix can be ported to LTS 3.6?

Exact steps for others to reproduce the error

  1. Run script from text editor
  2. Select curve and go curve edit mode.
  3. search for 'Simple operator' under search menu in 3d view - it will increase radius +1
  4. Undo - see no effect
**System Information** Operating system: Linux-6.1.55-1-MANJARO-x86_64-with-glibc2.38 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.113.01 **Blender Version** Broken: version: 3.6.5, branch: blender-v3.6-release, commit date: 2023-10-16 14:30, hash: `cf1e1ed46b7e` Worked: It works in Blender 4: version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-10-12 18:54, hash: 1c4b2ad17f5f, type: release build date: 2023-10-13, 00:23:59 **Short description of error** Running simple operator, that increases radius attribute for curve (rad += 1), cannot be undone - if executed in curve edit mode. Issue is fixed in Blender 4.0 so, maybe the fix can be ported to LTS 3.6? **Exact steps for others to reproduce the error** 1. Run script from text editor 2. Select curve and go curve edit mode. 3. search for 'Simple operator' under search menu in 3d view - it will increase radius +1 4. Undo - see no effect
Jose Conseco added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-10-26 17:03:00 +02:00

Seems you have posted URI to the file not uploaded it.

Seems you have posted URI to the file not uploaded it.
Richard Antalik added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-10-26 17:30:13 +02:00
Author

My bad. if fixed the upload.

My bad. if fixed the upload.

Sorry just now I read, that you request backport. Not sure what commit did fix this though. Will have to bisect, but then AFAIK 4.0 is quite a bit different to 3.6, so it may not be applicable.

Sorry just now I read, that you request backport. Not sure what commit did fix this though. Will have to bisect, but then AFAIK 4.0 is quite a bit different to 3.6, so it may not be applicable.

I had trouble building 3.6 version so I can bisect. @HooglyBoogly do you know whether this could be fixed in 3.6? I can try windows machine, pretty sure I can build there .

I had trouble building 3.6 version so I can bisect. @HooglyBoogly do you know whether this could be fixed in 3.6? I can try windows machine, pretty sure I can build there .
Member

My guess is 34b4487844. That's already mentioned in the LTS maintenance task #109399, since it may be required for some other fix. Not sure exactly what will happen there.

My guess is 34b44878449d67a56fd2a2b850cb04af5a23ca56. That's already mentioned in the LTS maintenance task #109399, since it may be required for some other fix. Not sure exactly what will happen there.
Author

This task has label 'need info from user' but I think all required info is already there?

This task has label 'need info from user' but I think all required info is already there?

Sorry I must have missed update, will re-check

Sorry I must have missed update, will re-check
Richard Antalik added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2024-01-23 16:20:48 +01:00
Member

34b4487844 indeed fixed the "undo" problem in 4.1/main.
Commit is not listed for backporting, AFAICS 😅

34b44878449d67a56fd2a2b850cb04af5a23ca56 indeed fixed the "undo" problem in 4.1/main. Commit is not listed for backporting, AFAICS 😅
Pratik Borhade added
Module
Modeling
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-02-06 11:16:01 +01:00
Pratik Borhade added this to the 3.6 LTS milestone 2024-02-06 11:16:06 +01:00
Member

#109399 (comment) : While 34b4487844 would be nice, it's less of a nobrainer, because some people were relying on the buggy behavior. See #113621. It's probably safer not to fix this particular thing in 3.6.

Backporting this fix is not safe enough, closing.

> https://projects.blender.org/blender/blender/issues/109399#issuecomment-1116703 : While 34b4487844 would be nice, it's less of a nobrainer, because some people were relying on the buggy behavior. See #113621. It's probably safer not to fix this particular thing in 3.6. Backporting this fix is not safe enough, closing.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-02-06 12:16:23 +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 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#114173
No description provided.