瀏覽代碼

[spline] fix spline editor in fx editor

Clément Espeute 1 年之前
父節點
當前提交
fbdfec658f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      hrt/prefab/l3d/Spline.hx

+ 4 - 0
hrt/prefab/l3d/Spline.hx

@@ -329,6 +329,10 @@ class Spline extends Object3D {
 		if( points.length == 0 )
 			new SplinePoint(this, null);
 
+		#if editor
+		lineGraphics = null;
+		#end
+
 		updateInstance();
 	}