paint: add test01.c
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user