Skip to content

Commit bb49a03

Browse files
committed
Packed -> pack into project
1 parent f5b7015 commit bb49a03

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

paint/sources/box_export.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function box_export_tab_export_textures(title: string, bake_material: bool = fal
122122
let layers_destination_handle: ui_handle_t = ui_handle(__ID__);
123123
layers_destination_handle.i = context_raw.layers_destination;
124124

125-
let layers_destination_combo: string[] = [ tr("Disk"), tr("Packed") ];
125+
let layers_destination_combo: string[] = [ tr("Disk"), tr("Pack into Project") ];
126126
context_raw.layers_destination = ui_combo(layers_destination_handle, layers_destination_combo, tr("Destination"), true);
127127

128128
ui_end_element();
@@ -133,7 +133,7 @@ function box_export_tab_export_textures(title: string, bake_material: bool = fal
133133
}
134134
if (ui_button(tr("Export"))) {
135135
ui_box_hide();
136-
if (context_raw.layers_destination == export_destination_t.PACKED) {
136+
if (context_raw.layers_destination == export_destination_t.PACK_INTO_PROJECT) {
137137
_box_export_bake_material = bake_material;
138138
context_raw.texture_export_path = "/";
139139
sys_notify_on_next_frame(function() {

paint/sources/enums.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ enum export_mode_t {
8383
}
8484

8585
enum export_destination_t {
86-
DISK = 0,
87-
PACKED = 1,
86+
DISK = 0,
87+
PACK_INTO_PROJECT = 1,
8888
}
8989

9090
enum pathtrace_mode_t {

paint/sources/export_texture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ function export_texture_write_texture(file: string, pixels: buffer_t, type: i32
438438
format = 6; // AAA1
439439
}
440440

441-
if (context_raw.layers_destination == export_destination_t.PACKED) {
441+
if (context_raw.layers_destination == export_destination_t.PACK_INTO_PROJECT) {
442442
let image: gpu_texture_t = gpu_create_texture_from_bytes(pixels, res_x, res_y);
443443
map_set(data_cached_images, file, image);
444444
let ar: string[] = string_split(file, path_sep);

0 commit comments

Comments
 (0)