فهرست منبع

Style changes

trethaller 7 سال پیش
والد
کامیت
adac49272f
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      h3d/prim/BigPrimitive.hx
  2. 1 1
      h3d/scene/World.hx

+ 1 - 1
h3d/prim/BigPrimitive.hx

@@ -211,7 +211,7 @@ class BigPrimitive extends Primitive {
 				add(pt.x);
 				add(pt.y);
 				add(pt.z);
-				bounds.addPos(pt.x, pt.y, pt.z);
+				bounds.addPoint(pt);
 			}
 			else {
 				var tx = (x * cr - y * sr) * scale;

+ 1 - 1
h3d/scene/World.hx

@@ -456,7 +456,7 @@ class World extends Object {
 		updateChunkBounds(c, model, m);
 	}
 
-	public function add2( model : WorldModel, mat : h3d.Matrix ) {
+	public function addTransform( model : WorldModel, mat : h3d.Matrix ) {
 		var c = getChunk(mat.tx, mat.ty, true);
 		c.elements.push(new WorldElement(model, mat, false));
 		updateChunkBounds(c, model, mat);