mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
feat(编辑功能): 修复颜色与媒体资源引用
This commit is contained in:
1 parent
52fc88f2b8
commit
996f8f9518
3 files changed
+3
-3
No files matched your search
@@ -55,7 +55,7 @@ func (e *Editor) AddMedia(kind, format string, data []byte) (string, error) {
|
||||
func (e *Editor) CopyMedia(id string) (string, error) {
|
||||
var copy editorResource
|
||||
for _, resource := range e.resources {
|
||||
if resource.image != nil && resource.image.ID == id {
|
||||
if resource.image != nil && sameResourceID(resource.image.ID, id) {
|
||||
copy = resource
|
||||
break
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user