Skip to content

Commit 0363280

Browse files
committed
lib: Fix camera coordinate mode for network renders
I forgot to add sync boilerplate for the blender mode flag when I added it.
1 parent 79ace2d commit 0363280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/protocol/protocol.c

+2
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ static cJSON *serialize_camera(const struct camera in) {
421421
cJSON_AddNumberToObject(out, "time", in.time);
422422
cJSON_AddNumberToObject(out, "width", in.width);
423423
cJSON_AddNumberToObject(out, "height", in.height);
424+
cJSON_AddNumberToObject(out, "is_blender", in.is_blender ? 1 : 0);
424425
return out;
425426
}
426427

@@ -445,6 +446,7 @@ static struct camera deserialize_camera(const cJSON *in) {
445446
out.time = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "time"));
446447
out.width = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "width"));
447448
out.height = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "height"));
449+
out.is_blender = cJSON_GetNumberValue(cJSON_GetObjectItem(in, "is_blender"));
448450

449451
return out;
450452
}

0 commit comments

Comments
 (0)