Add multi-frame PPI save automation
This commit is contained in:
@@ -16,6 +16,7 @@ execute_process(
|
||||
--width 96
|
||||
--height 48
|
||||
--layer-name Payload
|
||||
--frames 2
|
||||
--frame-duration-ms 321
|
||||
--include-test-face-payload
|
||||
RESULT_VARIABLE save_result
|
||||
@@ -51,12 +52,18 @@ string(FIND "${load_output}" "\"pixelDataLoaded\":true" load_pixels_index)
|
||||
string(FIND "${load_output}" "\"facePayloads\":1" load_payload_index)
|
||||
string(FIND "${load_output}" "\"width\":96" load_width_index)
|
||||
string(FIND "${load_output}" "\"height\":48" load_height_index)
|
||||
string(FIND "${load_output}" "\"frames\":2" load_frames_index)
|
||||
string(FIND "${load_output}" "\"animationDurationMs\":642" load_duration_index)
|
||||
string(FIND "${load_output}" "\"layerNames\":[\"Payload\"]" load_layer_index)
|
||||
string(FIND "${load_output}" "\"layerFrameCounts\":[2]" load_layer_frames_index)
|
||||
if(load_command_index LESS 0
|
||||
OR load_pixels_index LESS 0
|
||||
OR load_payload_index LESS 0
|
||||
OR load_width_index LESS 0
|
||||
OR load_height_index LESS 0
|
||||
OR load_layer_index LESS 0)
|
||||
OR load_frames_index LESS 0
|
||||
OR load_duration_index LESS 0
|
||||
OR load_layer_index LESS 0
|
||||
OR load_layer_frames_index LESS 0)
|
||||
message(FATAL_ERROR "load-project output did not contain expected payload summary: ${load_output}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user