-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Empty mesh causes SurfaceTools::generate_tangents to fail an assertion which doesn't make sense. #92395
Comments
This fails because you need to have UV to generate tangents as they are related to textures The error message should be made clearer, but this retirement is clearly documented:
|
I agree, the error should be expanded to include a clear message saying that UVs are required to generate tangents. |
(This is my First time Contributing) @clayjohn I would like take up this Issue. |
Your suggested approach is correct and you don't need to change anything else :) |
Ok thank you sir, also a rookie question I am guessing I will have to create a pr for the master itself or for 4.2 branch as the tested version mentioned above. |
You only need to make a PR for the master branch. We can "cherrypick" the change to the 4.2 branch automatically. |
Improve `SurfaceTool::generate_tangents` UV error message
Tested versions
System information
OSX Sonoma 14.4.1 (23E224)
Issue description
The following error is shown in console:
If empty meshes are allowed, assertion should not be triggered.
If empty meshes are not allowed, assertion should be checked only if there is some mesh set.
Steps to reproduce
Create a node and add this code to the
_ready()
function:Minimal reproduction project (MRP)
See "steps to reproduce".
The text was updated successfully, but these errors were encountered: