瀏覽代碼

CDB / Spline: revert cdb changes + spline on selection fix

lviguier 5 月之前
父節點
當前提交
7d76ccffef
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. 0 6
      hide/comp/cdb/Editor.hx
  2. 2 0
      hrt/prefab/l3d/Spline.hx

+ 0 - 6
hide/comp/cdb/Editor.hx

@@ -767,12 +767,6 @@ class Editor extends Component {
 				}
 			}
 		} else {
-			// Several cases could conduce to weird behaviours so just throw an error
-			if (data.length != 1 && targetCells.length != 1) {
-				ide.quickError("Pasting a range of values into another of different length is not allowed");
-				return;
-			}
-
 			beginChanges();
 
 			if( data.length == 1 && cursor.y != cursor.y )

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

@@ -901,6 +901,8 @@ class Spline extends hrt.prefab.Object3D {
 	}
 
 	override function setSelected(b: Bool) : Bool {
+		super.setSelected(b);
+
 		if (!b)
 			clearInteractive();