Sceneform-android-sdk: Renderable setMaterial always throw SubmeshOutOfRangeException

Created on 11 May 2018  路  2Comments  路  Source: google-ar/sceneform-android-sdk

Hi, in Renderable class, method setMaterial(int submeshIndex, Material material) start on line 94, missing else statement.

    public void setMaterial(int submeshIndex, Material material) {
        if (submeshIndex < this.materialBindings.size()) {
            this.materialBindings.set(submeshIndex, material);
            this.changeId.update();
        }

        throw this.makeSubmeshOutOfRangeException(submeshIndex);
    }
bug fixed in upcoming release

Most helpful comment

Thank you @KamikX ! A fix will be in our next update.

All 2 comments

Thank you @KamikX ! A fix will be in our next update.

Fixed in the 1.3 release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arilotter picture arilotter  路  3Comments

peronecode picture peronecode  路  3Comments

Brian-Kwon picture Brian-Kwon  路  3Comments

dementia2029 picture dementia2029  路  3Comments

khonakr picture khonakr  路  3Comments