Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Weights Installed Fix #327

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Check Weights Installed Fix #327

merged 1 commit into from
Oct 18, 2022

Conversation

NullSenseStudio
Copy link
Collaborator

Due to the way the HeadlessDreamTexture operator is run it will not call its invoke() method. That could be fixed by calling bpy.ops.shade.dream_texture_headless() with 'INVOKE_DEFAULT' as its first argument, but that causes a whole stack trace to be reported instead of just its intended simple message for some reason. Same thing would happen if checking that the weights were installed within execute() method.

Instead it'll have to check for them in the original DreamTexture operator's invoke() method, and added an extra check within the render pass since that directly uses HeadlessDreamTexture.

Fixes #289

@carson-katri carson-katri merged commit 03e3250 into carson-katri:main Oct 18, 2022
@carson-katri carson-katri added this to the v0.0.8 milestone Oct 18, 2022
@NullSenseStudio NullSenseStudio deleted the check-weights-installed branch November 2, 2022 04:59
JasonHoku pushed a commit to JasonHoku/dream-textures that referenced this pull request Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filenotfounderror(2, 'no such file or directory')
2 participants