paint: add test01.c

This commit is contained in:
luboslenco
2026-04-14 19:42:57 +02:00
parent 99f516b4ed
commit 5f974b598b
2 changed files with 25 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#include "global.h"
void next_frame() {
for (int i = 0; i < 14; ++i) {
context_select_tool(i);
}
export_texture_run("/tmp", false);
project_filepath_set("/tmp/untitled.arm");
project_save(true);
console_info("PASS");
}
void main() {
script_notify_on_next_frame(next_frame);
}
+7
View File
@@ -449,6 +449,13 @@ void export_texture_run_bake_material(char *path) {
void export_texture_run(char *path, bool bake_material) { void export_texture_run(char *path, bool bake_material) {
////
if (box_export_files == NULL) {
box_export_fetch_presets();
box_export_parse_preset();
}
////
if (bake_material) { if (bake_material) {
export_texture_run_bake_material(path); export_texture_run_bake_material(path);
} }