Skip to content

Commit

Permalink
fix: check valid if sh is null (#464)
Browse files Browse the repository at this point in the history
Co-authored-by: shensi.zxd <[email protected]>
  • Loading branch information
zhuxudong and shensi.zxd authored Aug 31, 2021
1 parent 9c3742a commit 9f33e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loader/src/scene-loader/temp.compatible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function handleSceneProps(props) {
} else if (v.length === 2) {
props[k] = new Vector2(v[0], v[1]);
}
} else if (k === "diffuseSphericalHarmonics") {
} else if (v && k === "diffuseSphericalHarmonics") {
sh.setValueByArray(JSON.parse(v));
props[k] = sh;
}
Expand Down

0 comments on commit 9f33e1a

Please sign in to comment.