File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ static cJSON *serialize_camera(const struct camera in) {
421
421
cJSON_AddNumberToObject (out , "time" , in .time );
422
422
cJSON_AddNumberToObject (out , "width" , in .width );
423
423
cJSON_AddNumberToObject (out , "height" , in .height );
424
+ cJSON_AddNumberToObject (out , "is_blender" , in .is_blender ? 1 : 0 );
424
425
return out ;
425
426
}
426
427
@@ -445,6 +446,7 @@ static struct camera deserialize_camera(const cJSON *in) {
445
446
out .time = cJSON_GetNumberValue (cJSON_GetObjectItem (in , "time" ));
446
447
out .width = cJSON_GetNumberValue (cJSON_GetObjectItem (in , "width" ));
447
448
out .height = cJSON_GetNumberValue (cJSON_GetObjectItem (in , "height" ));
449
+ out .is_blender = cJSON_GetNumberValue (cJSON_GetObjectItem (in , "is_blender" ));
448
450
449
451
return out ;
450
452
}
You can’t perform that action at this time.
0 commit comments