Skip to content

Commit

Permalink
Merge pull request #21 from Moo-Ack-Productions/milestone-5-1
Browse files Browse the repository at this point in the history
fix: Rebuild Api object when legacy building to avoid extension action
  • Loading branch information
StandingPadAnimations authored Oct 11, 2024
2 parents 637494f + 153f052 commit 9dadbe4
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 50 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
# Changelog


# Changelog
## [0.5.1] - 2024-10-11


### Fix: Make built-in extension action exit early when building legacy

Signed-off-by: Mahid Sheikh <[email protected]>
### Fix: Rebuild Api object when legacy building to avoid extension action

Signed-off-by: Mahid Sheikh <[email protected]>


### Chore: Update CHANGELOG.txt

Signed-off-by: Mahid Sheikh <[email protected]>


## [0.5] - 2024-10-05

Expand Down
8 changes: 8 additions & 0 deletions bpy_addon_build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,17 @@ def main() -> None:
additional_actions=additional_actions,
)

override_api: Api = Api(override_config, cli, cli.debug_mode)

# Change the context object. This is fine
# since this is ran last
context.config = override_config
context.api = override_api

if cli.debug_mode:
console.print(override_config)
console.print(context)
console.print(context.api.actions_to_execute)

build_path = build(context)
install(context, build_path)
Expand Down
2 changes: 2 additions & 0 deletions bpy_addon_build/built_in_actions/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@


def main(ctx: BabContext) -> None:
if not ctx.is_extension:
return
manifest_path = Path(ctx.current_path, BLENDER_MANIFEST)
manifest_data = get_manifest_data(manifest_path)
verify.verify_manifest(manifest_data, manifest_path)
Expand Down
105 changes: 57 additions & 48 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bpy-addon-build"
version = "0.5"
version = "0.5.1"
description = "A build system to make building and testing Blender addons 10 times easier"
authors = ["Mahid Sheikh <[email protected]>"]
license = "BSD-3-Clause"
Expand Down

0 comments on commit 9dadbe4

Please sign in to comment.