This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Blender: Use the new API for override context #6145
Merged
simonebarbieri
merged 3 commits into
develop
from
bugfix/OP-7960-blender_4_override_context
Jan 23, 2024
Merged
Blender: Use the new API for override context #6145
simonebarbieri
merged 3 commits into
develop
from
bugfix/OP-7960-blender_4_override_context
Jan 23, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simonebarbieri
added
type: bug
Something isn't working
sponsored
Client endorsed or requested
host: Blender
target: AYON
labels
Jan 17, 2024
Task linked: OP-7960 Extract Review Fails in Blender 4.0.2 |
ynbot
added
the
size/S
Denotes a PR changes 100-499 lines, ignoring general files
label
Jan 17, 2024
Hmm, Im still getting error when publishing
|
@simonebarbieri any commits yet? I think the issue is still present. thx |
LiborBatek
suggested changes
Jan 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPDATED: my fault because I was not in correct branch due to Addons bundle being set to Staging mode and not Prod...
Still throwing error on me when publish review
DEBUG: fps: 25.0
DEBUG: start: 1001, end: 1050
DEBUG: Outputting images to C:\Users\lbate\AppData\Local\Temp\pyblish_tmp_99s78e5t\vanguard_reviewMain
Traceback (most recent call last):
File "C:\Users\lbate\AppData\Local\Ynput\AYON\dependency_packages\ayon_2401161802_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
runner(*args)
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\hosts\blender\plugins\publish\extract_playblast.py", line 84, in process
path = capture(**preset)
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\hosts\blender\api\capture.py", line 85, in capture
with _independent_window() as window:
File "C:\Work\REPO_SW\DCC\BLENDER\4.0.2\WINDOWS\4.0\python\lib\contextlib.py", line 135, in __enter__
return next(self.gen)
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\hosts\blender\api\capture.py", line 273, in _independent_window
bpy.ops.wm.window_new(context)
File "C:\Work\REPO_SW\DCC\BLENDER\4.0.2\WINDOWS\4.0\scripts\modules\bpy\ops.py", line 106, in __call__
C_exec, C_undo = _BPyOpsSubModOp._parse_args(args)
File "C:\Work\REPO_SW\DCC\BLENDER\4.0.2\WINDOWS\4.0\scripts\modules\bpy\ops.py", line 60, in _parse_args
raise ValueError("1-2 args execution context is supported")
ValueError: 1-2 args execution context is supported
LiborBatek
approved these changes
Jan 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
host: Blender
size/S
Denotes a PR changes 100-499 lines, ignoring general files
sponsored
Client endorsed or requested
target: AYON
type: bug
Something isn't working
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog Description
Blender 4.0 disabled the old API to override context. This API updates the code to use the new API.
Additional info
This change is compatible with Blender versions up to 3.2. Previous versions are not compatible with this new API.
Testing notes:
In Blender 4.0: