Addon: Storypencil clears all frame_change_post handlers #103028

Closed
opened 2022-12-08 15:40:52 +01:00 by Thomas Lachmann · 12 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: blender/blender@a95bf1ac01
Worked: ?

Storypencil Version: 1.1.1

Short description of error
Upon loading Storypencil clears all frame_change_post handlers.
This renders other addons unusable.

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: `blender/blender@a95bf1ac01` Worked: ? **Storypencil Version: 1.1.1** **Short description of error** Upon loading Storypencil clears all frame_change_post handlers. This renders other addons unusable.

Added subscriber: @Lachi

Added subscriber: @Lachi

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

There is indeed a bpy.app.handlers.frame_change_post.clear() in the code:
{https://developer.blender.org/diffusion/BA/browse/master/storypencil/init.py$178}

Doesn't seem like good practice.
I could be wrong but I'm confirming it as a bug for now.

There is indeed a `bpy.app.handlers.frame_change_post.clear()` in the code: {https://developer.blender.org/diffusion/BA/browse/master/storypencil/__init__.py$178} Doesn't seem like good practice. I could be wrong but I'm confirming it as a bug for now.

Added subscriber: @antoniov

Added subscriber: @antoniov

Yes, it's a mistake...I guess it was a debug line that we did not replaced with the right one.

EDIT:

I guess the right code is:

if bpy.app.handlers.frame_change_post:
        bpy.app.handlers.frame_change_post.remove(synchro.on_frame_changed)
Yes, it's a mistake...I guess it was a debug line that we did not replaced with the right one. EDIT: I guess the right code is: ``` if bpy.app.handlers.frame_change_post: bpy.app.handlers.frame_change_post.remove(synchro.on_frame_changed) ```

Since we forgot to include the addon with the 3.4 release, we are preparing an improved version for 3.4.1.

Since we forgot to include the addon with the 3.4 release, we are preparing an improved version for 3.4.1.

This issue was referenced by 4920c2cbb8

This issue was referenced by 4920c2cbb8a88c71a6a96b10ecf7378a339d9a96

This issue was referenced by 3c675e2c16

This issue was referenced by 3c675e2c16acb59dd08f49718f5adc414b1855b2

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Antonio Vazquez self-assigned this 2022-12-09 14:03:16 +01:00

This issue was referenced by 708dff3ea0

This issue was referenced by 708dff3ea0daeaa51effe53812453a47706f262a

This issue was referenced by 1168a4fd9b

This issue was referenced by 1168a4fd9bcdd8cabece3dd22f7ffbf13cab6753
Sign in to join this conversation.
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-addons#103028
No description provided.