Explorar o código

fixed getBoundsRec changes

Nicolas Cannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
f5216949ff
Modificáronse 2 ficheiros con 5 adicións e 5 borrados
  1. 3 3
      h3d/parts/GpuParticles.hx
  2. 2 2
      h3d/scene/CustomObject.hx

+ 3 - 3
h3d/parts/GpuParticles.hx

@@ -454,9 +454,9 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 		groups = [];
 	}
 
-	override function getBounds(?b:h3d.col.Bounds, rec = false) {
+	override function getBoundsRec(b:h3d.col.Bounds) {
 		if( flags.has(FIgnoreBounds) )
-			return super.getBounds(b, rec);
+			return super.getBoundsRec(b);
 		for( g in groups )
 			if( g.needRebuild ) {
 				var s = getScene();
@@ -469,7 +469,7 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 				}
 				break;
 			}
-		return super.getBounds(b, rec);
+		return super.getBoundsRec(b);
 	}
 
 	public dynamic function onEnd() {

+ 2 - 2
h3d/scene/CustomObject.hx

@@ -11,8 +11,8 @@ class CustomObject extends Object {
 		this.material = mat;
 	}
 
-	override function getBounds( ?b : h3d.col.Bounds, rec = false ) {
-		b = super.getBounds(b, rec);
+	override function getBoundsRec( b : h3d.col.Bounds ) {
+		b = super.getBounds(b);
 		var tmp = primitive.getBounds().clone();
 		tmp.transform(absPos);
 		b.add(tmp);