Browse Source

fixed paste wrt history/undo

Nicolas Cannasse 4 years ago
parent
commit
7aef72a162
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hide/comp/SceneEditor.hx

+ 2 - 2
hide/comp/SceneEditor.hx

@@ -1767,7 +1767,7 @@ class SceneEditor {
 		if(obj != null) {
 			var p = hrt.prefab.Prefab.loadPrefab(obj, parent);
 			autoName(p);
-			refresh();
+			addObject([p]);
 		}
 		else {
 			obj = view.getClipboard("library");
@@ -1777,7 +1777,7 @@ class SceneEditor {
 					autoName(c);
 					c.parent = parent;
 				}
-				refresh();
+				addObject(lib.children);
 			}
 		}
 	}