diff --git a/src/document.cpp b/src/document.cpp index a049840..2be27d4 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -217,13 +217,16 @@ namespace anm2ed case SOUNDS: sounds_set(); break; - case ANIMATIONS: - animations_set(); - break; case FRAMES: events_set(); sounds_set(); break; + case ITEMS: + layers_set(); + nulls_set(); + spritesheets_set(); + break; + case ANIMATIONS: case ALL: layers_set(); nulls_set(); diff --git a/src/imgui/window/layers.cpp b/src/imgui/window/layers.cpp index 3a3a0e8..eaeffe5 100644 --- a/src/imgui/window/layers.cpp +++ b/src/imgui/window/layers.cpp @@ -176,7 +176,8 @@ namespace anm2ed::imgui input_text_string(localize.get(BASIC_NAME), &layer.name); ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_ITEM_NAME)); - ImGui::Combo(localize.get(LABEL_SPRITESHEET), &layer.spritesheetID, document.spritesheet.labels.data(), (int)document.spritesheet.labels.size()); + ImGui::Combo(localize.get(LABEL_SPRITESHEET), &layer.spritesheetID, document.spritesheet.labels.data(), + (int)document.spritesheet.labels.size()); ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_LAYER_SPRITESHEET)); } ImGui::EndChild(); diff --git a/src/imgui/window/spritesheets.cpp b/src/imgui/window/spritesheets.cpp index 5f9f17c..46b8950 100644 --- a/src/imgui/window/spritesheets.cpp +++ b/src/imgui/window/spritesheets.cpp @@ -56,7 +56,7 @@ namespace anm2ed::imgui unused.clear(); }; - DOCUMENT_EDIT(document, localize.get(EDIT_REMOVE_UNUSED_SPRITESHEETS), Document::SPRITESHEETS, behavior()); + DOCUMENT_EDIT(document, localize.get(EDIT_REMOVE_UNUSED_SPRITESHEETS), Document::ALL, behavior()); }; auto reload = [&]()