Bsurfaces: Use context temp override to avoid deprecation #104486

Closed
Jorijn de Graaf wants to merge 4 commits from bonj/blender-addons:fix/bsurfaces into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

Passing context override to operators is deprecated in favor of Context.temp_override.
The console warnings were annoying, and in the future it would have stopped working entirely.
I used EXEC_REGION_WIN to be consistent with how the rest of the addon calls operators.

Passing context override to operators is deprecated in favor of Context.temp_override. The console warnings were annoying, and in the future it would have stopped working entirely. I used EXEC_REGION_WIN to be consistent with how the rest of the addon calls operators.
Jorijn de Graaf added 1 commit 2023-03-14 21:23:48 +01:00
Passing context override to operators is deprecated in favor of Context.temp_override.
I used EXEC_REGION_WIN to be consistent with how the rest of the addon calls operators.
Jorijn de Graaf requested review from Vladimir Spivak 2023-03-14 21:31:26 +01:00
Jorijn de Graaf added 1 commit 2023-03-14 21:38:01 +01:00
Context.temp_override was introduced in Blender 3.2, so I'm making that the minimum Blender version.
I'll also bump the addon version, because changes were made and it'd be confusing not to change the version too then.
Jorijn de Graaf changed title from Fix #104484: Bsurfaces addon stopped working to WIP: Fix #104484: Bsurfaces addon stopped working 2023-03-14 21:57:22 +01:00
Jorijn de Graaf changed title from WIP: Fix #104484: Bsurfaces addon stopped working to Bsurfaces: Use context temp override to avoid deprecation 2023-03-16 17:45:36 +01:00
Jorijn de Graaf added 1 commit 2023-03-16 17:48:26 +01:00
Author
First-time contributor

Previously I thought this PR was going to solve #104484, but that requires changes to Blender itself, so I'm changing the name and purpose of this PR instead of throwing it away.

Previously I thought this PR was going to solve #104484, but that requires changes to Blender itself, so I'm changing the name and purpose of this PR instead of throwing it away.
Jorijn de Graaf added 1 commit 2023-03-22 00:54:19 +01:00
Member

@bonj This was fixed in a slightly different way in e22637d5ba.

@bonj This was fixed in a slightly different way in e22637d5ba.
Author
First-time contributor

Excellent, I'll close this PR then.

Excellent, I'll close this PR then.
Jorijn de Graaf closed this pull request 2023-12-18 14:39:27 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 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#104486
No description provided.