Skip to content

Commit 8f9585a

Browse files
committed
Update: Use patched Blender 4.5 version for builds
1 parent d93d88d commit 8f9585a

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ being too big for intelliSense to work.*
9090
|4.2|[https://pypi.org/project/fake-bpy-module-4.2/](https://pypi.org/project/fake-bpy-module-4.2/)|
9191
|4.3|[https://pypi.org/project/fake-bpy-module-4.3/](https://pypi.org/project/fake-bpy-module-4.3/)|
9292
|4.4|[https://pypi.org/project/fake-bpy-module-4.4/](https://pypi.org/project/fake-bpy-module-4.4/)|
93+
|4.5|[https://pypi.org/project/fake-bpy-module-4.5/](https://pypi.org/project/fake-bpy-module-4.5/)|
9394
|latest|[https://pypi.org/project/fake-bpy-module/](https://pypi.org/project/fake-bpy-module/)|
9495
||[https://pypi.org/project/fake-bpy-module-latest/](https://pypi.org/project/fake-bpy-module-latest/)|
9596

src/gen_module.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ remote_git_ref="$(get_remote_git_ref "${git_ref}")"
9494
git fetch --depth 1 origin "${remote_git_ref}"
9595
git checkout -f "${remote_git_ref}"
9696

97+
# Blender 4.5 has broken function signatures format and the fix is not backported.
98+
# See https://projects.blender.org/blender/blender/issues/141853.
99+
if [ "${target_version}" = "4.5" ]; then
100+
echo "Applying patch for version 4.5 ..."
101+
curl -s https://raw.githubusercontent.com/Andrej730/blender-daily-build/main/enum_values_defaults_fix.patch | patch -p1
102+
fi
103+
97104
function apply_workaround() {
98105
local ref=${git_ref}
99106
local project_source=${source_dir}

src/versions.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ SUPPORTED_BLENDER_VERSIONS_BASE:
2222
- "4.2"
2323
- "4.3"
2424
- "4.4"
25+
- "4.5"
2526

2627
# Same list, but adding "latest".
2728
SUPPORTED_BLENDER_VERSIONS:
@@ -47,6 +48,7 @@ SUPPORTED_BLENDER_VERSIONS:
4748
- "4.2"
4849
- "4.3"
4950
- "4.4"
51+
- "4.5"
5052
- "latest"
5153

5254
SUPPORTED_UPBGE_VERSIONS_BASE:
@@ -84,6 +86,7 @@ BLENDER_TAG_NAME:
8486
"4.2": "v4.2.0"
8587
"4.3": "v4.3.0"
8688
"4.4": "v4.4.0"
89+
"4.5": "v4.5.0"
8790
"latest": "main"
8891

8992
UPBGE_TAG_NAME:
@@ -151,6 +154,7 @@ BLENDER_DOWNLOAD_URL_WIN64:
151154
"4.2": "https://download.blender.org/release/Blender4.2/blender-4.2.0-windows-x64.zip"
152155
"4.3": "https://download.blender.org/release/Blender4.3/blender-4.3.0-windows-x64.zip"
153156
"4.4": "https://download.blender.org/release/Blender4.4/blender-4.4.0-windows-x64.zip"
157+
"4.5": "https://download.blender.org/release/Blender4.5/blender-4.5.0-windows-x64.zip"
154158

155159
BLENDER_DOWNLOAD_URL_LINUX:
156160
"2.78": "https://download.blender.org/release/Blender2.78/blender-2.78c-linux-glibc219-x86_64.tar.bz2"
@@ -175,6 +179,8 @@ BLENDER_DOWNLOAD_URL_LINUX:
175179
"4.2": "https://download.blender.org/release/Blender4.2/blender-4.2.0-linux-x64.tar.xz"
176180
"4.3": "https://download.blender.org/release/Blender4.3/blender-4.3.0-linux-x64.tar.xz"
177181
"4.4": "https://download.blender.org/release/Blender4.4/blender-4.4.0-linux-x64.tar.xz"
182+
# TODO: switch to official source after 4.5.5 release.
183+
"4.5": "https://github.com/Andrej730/blender-daily-build/releases/download/blender-build-2025-11-01/blender.tar.xz"
178184
# yamllint enable rule:line-length
179185

180186
BLENDER_NEED_MOVE_MACOSX:
@@ -207,7 +213,9 @@ BLENDER_NEED_MOVE_LINUX:
207213
"4.2": "blender-4.2.0-linux-x64"
208214
"4.3": "blender-4.3.0-linux-x64"
209215
"4.4": "blender-4.4.0-linux-x64"
216+
"4.5": ""
210217

218+
# yamllint disable rule:line-length
211219
BLENDER_CHECKSUM_URL:
212220
"2.78": "https://download.blender.org/release/Blender2.78/release278c.md5"
213221
"2.79": "https://download.blender.org/release/Blender2.79/release279b.md5"
@@ -231,3 +239,5 @@ BLENDER_CHECKSUM_URL:
231239
"4.2": "https://download.blender.org/release/Blender4.2/blender-4.2.0.md5"
232240
"4.3": "https://download.blender.org/release/Blender4.3/blender-4.3.0.md5"
233241
"4.4": "https://download.blender.org/release/Blender4.4/blender-4.4.0.md5"
242+
"4.5": "https://github.com/Andrej730/blender-daily-build/releases/download/blender-build-2025-11-01/blender.tar.xz.md5"
243+
# yamllint enable rule:line-length

tools/utils/yaml_loader.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ load_mapping_from_yaml() {
3333
local data
3434

3535
# Example data line is `key = value`.
36-
data=$(yq -r ".$tag_name" "$VERSIONS_YAML" -oprops)
36+
# ``... comments=""`` is needed to ensure comments are stripped.
37+
data=$(yq -r "... comments=\"\" | .$tag_name" "$VERSIONS_YAML" -oprops)
3738

3839
# There are still empty mapping currently (e.g. `NEED_MOVE_WIN64`).
3940
[[ -z $data ]] && return

0 commit comments

Comments
 (0)