Skip to content

Commit

Permalink
LightProbeFactory: improve a misleading exception in getDebugGui()
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Apr 28, 2021
1 parent a584eb6 commit 3beca2b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -223,7 +223,8 @@ private static void generatePbrMaps(TextureCubeMap envMap, final LightProbe prob
*/
public static Node getDebugGui(AssetManager manager, LightProbe probe) {
if (!probe.isReady()) {
throw new UnsupportedOperationException("This EnvProbe is not ready yet, try to test isReady()");
throw new IllegalStateException(
"The LightProbe is not ready yet, please test isReady().");
}

Node debugNode = new Node("debug gui probe");
Expand Down

0 comments on commit 3beca2b

Please sign in to comment.