build-dxf 0.0.61 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -12890,7 +12890,7 @@ class Scenario {
12890
12890
  this.texture.colorSpace = THREE.SRGBColorSpace;
12891
12891
  this.scene.background = this.texture;
12892
12892
  this.scene.environment = this.texture;
12893
- this.scene.backgroundRotation.x = Math.PI / 2;
12893
+ this.scene?.backgroundRotation && (this.scene.backgroundRotation.x = Math.PI / 2);
12894
12894
  this.lines = lines;
12895
12895
  if (this.group) {
12896
12896
  this.scene.remove(this.group);