clementlandrin 9 달 전
부모
커밋
4dd2b36d4c
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      h3d/scene/Mesh.hx

+ 3 - 5
h3d/scene/Mesh.hx

@@ -91,7 +91,7 @@ class Mesh extends Object {
 
 		var absPos = getAbsPos();
 		var worldCenter = absPos.getPosition();
-		var worldScale = absPos.getScale(); 
+		var worldScale = absPos.getScale();
 		var worldRadius = bounds.dimension() * hxd.Math.max( worldScale.x, hxd.Math.max(worldScale.y, worldScale.z) ) / 2.0;
 
 		var cameraRight = ctx.camera.getRight();
@@ -128,14 +128,12 @@ class Mesh extends Object {
 		return super.getMaterials(a, recursive);
 	}
 
-	override private function onAdd()
-	{
+	override private function onAdd() {
 		super.onAdd();
 		if ( primitive != null ) primitive.incref();
 	}
 
-	override private function onRemove()
-	{
+	override private function onRemove() {
 		if ( primitive != null ) primitive.decref();
 		super.onRemove();
 	}