Skip to content

Commit b885f08

Browse files
philterphilter
andcommitted
Add copy/paste support for ScriptAssets (#11522) f2df4669c8
Users can now select a script in the assets panel and ctrl/cmd+c to copy and paste in the same file or between files. I didnt add copy/paste items to the right click menu in this PR, but we can if we decide its warranted. This also adds a fix for a bug where when duplicating an Artboard that was marked as a component, the Component did not appear in the assets panel. Co-authored-by: Philip Chung <philterdesign@gmail.com>
1 parent 9575273 commit b885f08

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.rive_head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a8418441ca00176a69e5cdde02ff4204a090b238
1+
f2df4669c831316b40858ed9dd61785168ce0f2a

dev/defs/assets/script_asset.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
},
6868
"description": "Ids of any scripts this script requires",
6969
"runtime": false
70+
},
71+
"codeFileText": {
72+
"type": "String",
73+
"key": {
74+
"int": 932,
75+
"string": "codefiletext"
76+
},
77+
"description": "Used to store the text of the CodeFile. Used when copy/pasting.",
78+
"runtime": false,
79+
"coop": false,
80+
"journal": false
7081
}
7182
}
7283
}

0 commit comments

Comments
 (0)