paint: merge text layers

This commit is contained in:
luboslenco
2026-08-21 11:26:11 +02:00
parent c1ee30b527
commit 2d394ca334
11 changed files with 230 additions and 16 deletions
+3 -1
View File
@@ -366,7 +366,7 @@ buffer_t *util_encode_project(project_t *raw) {
if (raw->layer_datas != NULL) {
armpack_encode_array(raw->layer_datas->length);
for (i32 i = 0; i < raw->layer_datas->length; ++i) {
armpack_encode_map(36);
armpack_encode_map(37);
armpack_encode_string("name");
armpack_encode_string(raw->layer_datas->buffer[i]->name);
armpack_encode_string("res");
@@ -439,6 +439,8 @@ buffer_t *util_encode_project(project_t *raw) {
armpack_encode_bool(raw->layer_datas->buffer[i]->path_curved);
armpack_encode_string("path_material");
armpack_encode_i32(raw->layer_datas->buffer[i]->path_material);
armpack_encode_string("path_text");
armpack_encode_bool(raw->layer_datas->buffer[i]->path_text);
}
}
else {