浏览代码

one more fix

ncannasse 8 年之前
父节点
当前提交
ddff3f8db1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      h3d/parts/GpuParticles.hx

+ 2 - 0
h3d/parts/GpuParticles.hx

@@ -446,6 +446,8 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 	}
 
 	override function getBounds(?b:h3d.col.Bounds, rec = false) {
+		if( flags.has(FIgnoreBounds) )
+			return super.getBounds(b, rec);
 		for( g in groups )
 			if( g.needRebuild ) {
 				var s = getScene();