Packed -> pack into project

This commit is contained in:
luboslenco
2025-10-20 10:39:34 +02:00
parent f5b70152ef
commit bb49a03f7f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ function box_export_tab_export_textures(title: string, bake_material: bool = fal
let layers_destination_handle: ui_handle_t = ui_handle(__ID__);
layers_destination_handle.i = context_raw.layers_destination;
let layers_destination_combo: string[] = [ tr("Disk"), tr("Packed") ];
let layers_destination_combo: string[] = [ tr("Disk"), tr("Pack into Project") ];
context_raw.layers_destination = ui_combo(layers_destination_handle, layers_destination_combo, tr("Destination"), true);
ui_end_element();
@@ -133,7 +133,7 @@ function box_export_tab_export_textures(title: string, bake_material: bool = fal
}
if (ui_button(tr("Export"))) {
ui_box_hide();
if (context_raw.layers_destination == export_destination_t.PACKED) {
if (context_raw.layers_destination == export_destination_t.PACK_INTO_PROJECT) {
_box_export_bake_material = bake_material;
context_raw.texture_export_path = "/";
sys_notify_on_next_frame(function() {
+2 -2
View File
@@ -83,8 +83,8 @@ enum export_mode_t {
}
enum export_destination_t {
DISK = 0,
PACKED = 1,
DISK = 0,
PACK_INTO_PROJECT = 1,
}
enum pathtrace_mode_t {
+1 -1
View File
@@ -438,7 +438,7 @@ function export_texture_write_texture(file: string, pixels: buffer_t, type: i32
format = 6; // AAA1
}
if (context_raw.layers_destination == export_destination_t.PACKED) {
if (context_raw.layers_destination == export_destination_t.PACK_INTO_PROJECT) {
let image: gpu_texture_t = gpu_create_texture_from_bytes(pixels, res_x, res_y);
map_set(data_cached_images, file, image);
let ar: string[] = string_split(file, path_sep);