You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After removing the normals in the Pipeline with removeNormals a material is left without a technique. The technique referenced before the normals where removed is also no longer available. In the removeAll step of the pipeline following the removeNormals, the removePrimitiveAttributes tries to access the material and its technique at line 400 of RemoveUnusedProperties.js . The material exists, but the technique returns undefined, causing an unhandled rejection.
Im not sure if a) the material should have been removed at the same time as the technique its using was removed in removeNormals or b) the removePrimitiveAttributes function should be able to handle a missing technique.
The text was updated successfully, but these errors were encountered:
bkuster
changed the title
RemoveUnusedProperties in removePrimitiveAttributes tries to removed undefined technique
RemoveUnusedProperties in removePrimitiveAttributes tries to remove undefined technique
May 12, 2017
If I try to ignore the missing technique in the material, the issue reemerges in processModelMaterialCommons.ensureSemanticExistenceForPrimitive at line 806, when the program should be accessed. This leads me to believe the issue actually lies in the removeNormals step?
removeNormals should regenerate the technique, but I guess it doesn't update the material properly. I'll look into this in a bit. Thanks for the detailed report!
After removing the normals in the Pipeline with
removeNormals
a material is left without atechnique
. The technique referenced before the normals where removed is also no longer available. In theremoveAll
step of the pipeline following theremoveNormals
, the removePrimitiveAttributes tries to access the material and its technique at line 400 ofRemoveUnusedProperties.js
. The material exists, but the technique returns undefined, causing an unhandled rejection.Im not sure if a) the material should have been removed at the same time as the technique its using was removed in
removeNormals
or b) theremovePrimitiveAttributes
function should be able to handle a missing technique.The text was updated successfully, but these errors were encountered: