Sfoglia il codice sorgente

Spline: fix on change not working

LeoVgr 9 mesi fa
parent
commit
7d4c64a10b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
 	}