Skip to content

Commit a0c8247

Browse files
authored
Solve #2136 (flow-control issue with glTF alpha parameter) (#2138)
* Fix flow control issue with alpha parameter * Revert "Fix flow control issue with alpha parameter" This reverts commit 3ee3473. * Fix flow control issue with alpha parameter
1 parent a290d07 commit a0c8247

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/PBRMaterialAdapter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ protected MatParam adaptMatParam(MatParam param) {
7373
break;
7474
case "BLEND":
7575
getMaterial().getAdditionalRenderState().setBlendMode(RenderState.BlendMode.Alpha);
76-
// Alpha is a RenderState not a Material Parameter, so return null
77-
return null;
76+
break;
7877
}
78+
79+
// Alpha mode is handled here, so return null
80+
return null;
7981
} else if (param.getName().equals("doubleSided")) {
8082
boolean doubleSided = (boolean) param.getValue();
8183
if (doubleSided) {

0 commit comments

Comments
 (0)