Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-05-15 15:12:51 +04:00
parent 37e7a74e4e
commit a2d7cfba4f
39 changed files with 1877 additions and 1338 deletions

View File

@@ -10,6 +10,7 @@ import YuvConversion
import StickerResources
import DrawingUI
import SolidRoundedButtonNode
import MediaEditor
protocol LegacyPaintEntity {
var position: CGPoint { get }
@@ -432,7 +433,9 @@ public final class LegacyPaintEntityRenderer: NSObject, TGPhotoPaintEntityRender
renderEntities.append(LegacyPaintTextEntity(entity: text))
if let renderSubEntities = text.renderSubEntities, let account {
for entity in renderSubEntities {
renderEntities.append(LegacyPaintStickerEntity(account: account, entity: entity))
if let entity = entity as? DrawingStickerEntity {
renderEntities.append(LegacyPaintStickerEntity(account: account, entity: entity))
}
}
}
} else if let simpleShape = entity as? DrawingSimpleShapeEntity {