@@ -384,16 +384,19 @@ Object.assign(pc, function () {
384
384
this . prevWorldBoundsSize . copy ( this . worldBoundsSize ) ;
385
385
this . prevWorldBoundsCenter . copy ( this . worldBounds . center ) ;
386
386
387
- var recalculateLocalBounds = false ;
388
- if ( this . emitterShape === pc . EMITTERSHAPE_BOX ) {
389
- recalculateLocalBounds = ! this . emitterExtents . equals ( this . prevEmitterExtents ) ;
390
- } else {
391
- recalculateLocalBounds = ! ( this . emitterRadius === this . prevEmitterRadius ) ;
392
- }
393
- if ( recalculateLocalBounds ) {
394
- this . calculateLocalBounds ( ) ;
387
+ if ( ! this . useCpu ) {
388
+ var recalculateLocalBounds = false ;
389
+ if ( this . emitterShape === pc . EMITTERSHAPE_BOX ) {
390
+ recalculateLocalBounds = ! this . emitterExtents . equals ( this . prevEmitterExtents ) ;
391
+ } else {
392
+ recalculateLocalBounds = ! ( this . emitterRadius === this . prevEmitterRadius ) ;
393
+ }
394
+ if ( recalculateLocalBounds ) {
395
+ this . calculateLocalBounds ( ) ;
396
+ }
395
397
}
396
398
399
+
397
400
var nodeWT = this . node . getWorldTransform ( ) ;
398
401
if ( this . localSpace ) {
399
402
this . worldBoundsNoTrail . copy ( this . localBounds ) ;
@@ -1088,9 +1091,7 @@ Object.assign(pc, function () {
1088
1091
1089
1092
this . simTimeTotal += delta ;
1090
1093
1091
- if ( ! this . useCpu ) {
1092
- this . calculateWorldBounds ( ) ;
1093
- }
1094
+ this . calculateWorldBounds ( ) ;
1094
1095
1095
1096
if ( this . _isAnimated ( ) ) {
1096
1097
var tilesParams = this . animTilesParams ;
0 commit comments