Propagate error correctly when max texture size for lightmaps is too small.
Add error handling for BAKE_ERROR_LIGHTMAP_TOO_SMALL, which was previously ignored. Fixes #81453.
This commit is contained in:
@ -118,6 +118,9 @@
|
||||
<constant name="BAKE_ERROR_USER_ABORTED" value="8" enum="BakeError">
|
||||
The user aborted the lightmap baking operation (typically by clicking the [b]Cancel[/b] button in the progress dialog).
|
||||
</constant>
|
||||
<constant name="BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL" value="9" enum="BakeError">
|
||||
Lightmap baking failed as the maximum texture size is too small to fit some of the meshes marked for baking.
|
||||
</constant>
|
||||
<constant name="ENVIRONMENT_MODE_DISABLED" value="0" enum="EnvironmentMode">
|
||||
Ignore environment lighting when baking lightmaps.
|
||||
</constant>
|
||||
|
||||
Reference in New Issue
Block a user