浏览代码

Remove unneeded @:bypassAccessor (#237)

Rudy Ges 1 年之前
父节点
当前提交
674f83d0bb
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      hrt/prefab/l3d/Spline.hx

+ 5 - 5
hrt/prefab/l3d/Spline.hx

@@ -235,7 +235,7 @@ class Spline extends Object3D {
 		//in editor spline can change
 		//in editor spline can change
 		#if editor
 		#if editor
 		for (i in 0...children.length) {
 		for (i in 0...children.length) {
-			if (children[i].to(SplinePoint) != @:bypassAccessor points[i]) {
+			if (children[i].to(SplinePoint) != points[i]) {
 				recompute = true;
 				recompute = true;
 				break;
 				break;
 			}
 			}
@@ -243,17 +243,17 @@ class Spline extends Object3D {
 		#end
 		#end
 		// spline never change at runtime, only compute at the beginning
 		// spline never change at runtime, only compute at the beginning
 		#if !editor
 		#if !editor
-		if (@:bypassAccessor points.length == 0)
+		if (points.length == 0)
 			recompute = true;
 			recompute = true;
 		#end
 		#end
 		if (recompute) {
 		if (recompute) {
-			@:bypassAccessor points = [];
+			points = [];
 			for (c in children) {
 			for (c in children) {
 				var sp = c.to(SplinePoint);
 				var sp = c.to(SplinePoint);
-				if (sp != null) @:bypassAccessor points.push(sp);
+				if (sp != null) points.push(sp);
 			}
 			}
 		}
 		}
-		return @:bypassAccessor points;
+		return points;
 	}
 	}
 
 
 	@:c public var shape : CurveShape = Linear;
 	@:c public var shape : CurveShape = Linear;