Skip to content

Commit 9dadbe4

Browse files
Merge pull request #21 from Moo-Ack-Productions/milestone-5-1
fix: Rebuild Api object when legacy building to avoid extension action
2 parents 637494f + 153f052 commit 9dadbe4

File tree

5 files changed

+83
-50
lines changed

5 files changed

+83
-50
lines changed

CHANGELOG.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
# Changelog
22

33

4-
# Changelog
4+
## [0.5.1] - 2024-10-11
5+
6+
7+
### Fix: Make built-in extension action exit early when building legacy
8+
9+
Signed-off-by: Mahid Sheikh <mahid@standingpad.org>
10+
### Fix: Rebuild Api object when legacy building to avoid extension action
11+
12+
Signed-off-by: Mahid Sheikh <mahid@standingpad.org>
13+
14+
15+
### Chore: Update CHANGELOG.txt
16+
17+
Signed-off-by: Mahid Sheikh <mahid@standingpad.org>
18+
519

620
## [0.5] - 2024-10-05
721

bpy_addon_build/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,17 @@ def main() -> None:
105105
additional_actions=additional_actions,
106106
)
107107

108+
override_api: Api = Api(override_config, cli, cli.debug_mode)
109+
108110
# Change the context object. This is fine
109111
# since this is ran last
110112
context.config = override_config
113+
context.api = override_api
114+
115+
if cli.debug_mode:
116+
console.print(override_config)
117+
console.print(context)
118+
console.print(context.api.actions_to_execute)
111119

112120
build_path = build(context)
113121
install(context, build_path)

bpy_addon_build/built_in_actions/extension.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838

3939
def main(ctx: BabContext) -> None:
40+
if not ctx.is_extension:
41+
return
4042
manifest_path = Path(ctx.current_path, BLENDER_MANIFEST)
4143
manifest_data = get_manifest_data(manifest_path)
4244
verify.verify_manifest(manifest_data, manifest_path)

poetry.lock

Lines changed: 57 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "bpy-addon-build"
3-
version = "0.5"
3+
version = "0.5.1"
44
description = "A build system to make building and testing Blender addons 10 times easier"
55
authors = ["Mahid Sheikh <mahid@standingpad.org>"]
66
license = "BSD-3-Clause"

0 commit comments

Comments
 (0)