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

fix module name for AssetPath shaders #9186

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

robtfm
Copy link
Contributor

@robtfm robtfm commented Jul 17, 2023

Objective

AssetPath shader imports check if the shader is added using the path without quotes. this causes them to be re-added even if already present, which can cause previous dependents to get unloaded leading to a "missing import" error.

Solution

fix the module name of AssetPath shaders used for checking if it's already added to correctly use the quoted name.

@robtfm robtfm added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen labels Jul 17, 2023
Copy link
Contributor

@NiseVoid NiseVoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look fine to me. I tested it and it fixed the issue it set out to address (it was found in my code) without creating any new issues.

@robtfm robtfm added this to the 0.11.1 milestone Jul 17, 2023
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jul 17, 2023
@cart cart added this pull request to the merge queue Jul 17, 2023
Merged via the queue into bevyengine:main with commit 9ad546e Jul 17, 2023
21 checks passed
cart pushed a commit that referenced this pull request Aug 10, 2023
# Objective

AssetPath shader imports check if the shader is added using the path
without quotes. this causes them to be re-added even if already present,
which can cause previous dependents to get unloaded leading to a
"missing import" error.

## Solution

fix the module name of AssetPath shaders used for checking if it's
already added to correctly use the quoted name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants