29 lines
2.0 KiB
Markdown
29 lines
2.0 KiB
Markdown
---
|
|
ID: ISSUE-011
|
|
Type: Issue
|
|
Status: Backlog
|
|
Priority: Medium
|
|
Labels: [blender, bug]
|
|
Created: 2025-04-22
|
|
Updated: 2025-04-22
|
|
Related:
|
|
---
|
|
|
|
# [ISSUE-011]: Blender nodegroup script creates empty assets for skipped items
|
|
|
|
## Description
|
|
The Blender nodegroup creation script (`blenderscripts/create_nodegroups.py`) incorrectly generates empty asset entries in the target .blend file for assets that were skipped during the main processing pipeline. This occurs even though the main asset processor correctly identifies and skips these assets based on the overwrite flag.
|
|
|
|
## Current Behavior
|
|
When running the asset processor with the `--overwrite` flag set to false, if an asset's output directory and metadata.json already exist, the main processing pipeline correctly skips processing that asset. However, the subsequent Blender nodegroup creation script still attempts to create a nodegroup for this skipped asset, resulting in an empty or incomplete asset entry in the target .blend file.
|
|
|
|
## Desired Behavior / Goals
|
|
The Blender nodegroup creation script should only attempt to create nodegroups for assets that were *actually processed* by the main asset processor, not those that were skipped. It should check if the asset was processed successfully before attempting nodegroup creation.
|
|
|
|
## Implementation Notes (Optional)
|
|
The `main.py` script, which orchestrates the processing and calls the Blender scripts, needs to pass information about which assets were successfully processed to the Blender nodegroup script. The Blender script should then filter its operations based on this information.
|
|
|
|
## Acceptance Criteria (Optional)
|
|
* [ ] Running the asset processor with `--overwrite` false on inputs that already have processed outputs should result in the main processing skipping the asset.
|
|
* [ ] The Blender nodegroup script, when run after a skipped processing run, should *not* create or update a nodegroup for the skipped asset.
|
|
* [ ] Only assets that were fully processed should have corresponding nodegroups created/updated by the Blender script. |