Кнопки для точек на кривой

This commit is contained in:
2026-03-02 22:22:47 +03:00
parent d1722e3b6b
commit c399d285fb
2 changed files with 137 additions and 25 deletions

View File

@@ -41,6 +41,7 @@ pub fn getProperty(self: Object, tag: std.meta.Tag(PropertyData)) ?*const Proper
return null;
}
/// Забирает владение Property
pub fn setProperty(self: *Object, allocator: std.mem.Allocator, prop: Property) !void {
for (self.properties.items, 0..) |*p, i| {
if (std.meta.activeTag(p.data) == std.meta.activeTag(prop.data)) {