浏览代码

Spline: fix on change not working

LeoVgr 9 月之前
父节点
当前提交
7d4c64a10b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/l3d/Spline.hx

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

@@ -704,7 +704,7 @@ class Spline extends hrt.prefab.Object3D {
 			updateSpline(this);
 		});
 
-		ctx.properties.add(props, null, null);
+		ctx.properties.add(props, this, function(pname) {ctx.onChange(this, pname); });
 
 		refreshPointList(ctx);
 	}