mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
feat(编辑渲染): 修复资源引用,完善注解读取
This commit is contained in:
1 parent
a5f51294eb
commit
52fc88f2b8
14 files changed
+198
-114
No files matched your search
@@ -269,6 +269,9 @@ func (e *Editor) ReplaceAnnotationText(page int, id, old, value string, style Te
|
||||
count++
|
||||
} else if member.Object.Type == "CompositeObject" || member.Object.Type == "CompositeGraphicUnit" {
|
||||
resource := member.Object.CompositeGraphicUnit.ResourceID
|
||||
if id := editorResourceID(resource); id != "" {
|
||||
resource = id
|
||||
}
|
||||
if resource != "" && visiting[resource] {
|
||||
return fmt.Errorf("cyclic composite resource %q", resource)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user