-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[AssetLib] Fix crash in Web editor. #62531
[AssetLib] Fix crash in Web editor. #62531
Conversation
Maybe I should add the method to |
a6aaa61
to
d4accf9
Compare
@@ -7073,13 +7073,11 @@ EditorNode::EditorNode() { | |||
|
|||
// Asset Library can't work on Web editor for now as most assets are sourced | |||
// directly from GitHub which does not set CORS. | |||
#ifndef JAVASCRIPT_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also remove the comment here, it's sufficient to have it in is_available
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed that one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Faless notice me senpai :P
Doesn't matter so much though, I guess it doesn't hurt to repeat it here.
Just not very consistent in wording with what the warning would then print.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, yeah, I had missed this comment, sorry :/
Good question. I never really understood the relationship between |
You should also update ProjectManager, see 42b4849 |
d4accf9
to
bc8be60
Compare
Add EditorAssetLibrary::is_available which always returns false in the Web editor and use it in EditorNode for detection.
bc8be60
to
0e504e4
Compare
Thanks! |
Cherry-picked for 3.5. Edit: For some reason this commit got lost? Eventually cherry-picked properly on 2022-07-08 with ad5fdcc. |
Add EditorAssetLibrary::is_available which always returns false in the Web editor and use it in EditorNode for detection.
Fixes #62520.
Closes #62528