three-base 2.0.45 → 2.0.47

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.
package/ThreeBase.js CHANGED
@@ -405,7 +405,7 @@ export default class ThreeBase extends EventDispatcher {
405
405
  this.renderer.render(this.scene, camera);
406
406
  if (has_stroke_or_pass) {
407
407
  // 查找需要绘制描边的对象,并且绘制描边
408
- this.scene.traverse(obj => {
408
+ this.scene.traverseVisible(obj => {
409
409
  stroke_pass(this.renderer, camera, obj, this.baseDepthTexture);
410
410
  glow_pass(this.renderer, camera, obj, this.baseDepthTexture);
411
411
  });
package/ThreeBase.ts CHANGED
@@ -488,7 +488,7 @@ export default class ThreeBase extends EventDispatcher {
488
488
 
489
489
  if (has_stroke_or_pass) {
490
490
  // 查找需要绘制描边的对象,并且绘制描边
491
- this.scene.traverse(obj => {
491
+ this.scene.traverseVisible(obj => {
492
492
  stroke_pass(this.renderer, camera, obj, this.baseDepthTexture);
493
493
  glow_pass(this.renderer, camera, obj, this.baseDepthTexture);
494
494
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"