fix tool cloning, unique ids
This commit is contained in:
parent
2703fd837c
commit
da0b280033
1 changed files with 1 additions and 0 deletions
|
|
@ -1221,6 +1221,7 @@ gapp.register("kiri.init", [], (root, exports) => {
|
|||
let clone = Object.assign({}, selectedTool);
|
||||
clone.number = maxTool + 1;
|
||||
clone.name = `${clone.name} copy`;
|
||||
clone.id = Date.now();
|
||||
editTools.push(clone);
|
||||
setToolChanged(true);
|
||||
renderTools();
|
||||
|
|
|
|||
Loading…
Reference in a new issue