Skip to content

Commit

Permalink
Add copy textures in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Dec 18, 2023
1 parent 3667eb6 commit 503846f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/editor/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2497,9 +2497,12 @@ void Gui::drawMenuBar()
{
app->cutEnt();
}
if (ImGui::MenuItem(get_localized_string(LANG_1083).c_str(), get_localized_string(LANG_1084).c_str(), false, nonWorldspawnEntSelected && app->pickInfo.selectedEnts.size()))
if (ImGui::MenuItem(get_localized_string(LANG_1083).c_str(), get_localized_string(LANG_1084).c_str(), false, app->pickInfo.selectedFaces.size() || (nonWorldspawnEntSelected && app->pickInfo.selectedEnts.size())))
{
app->copyEnt();
if (app->pickInfo.selectedEnts.size())
app->copyEnt();
if (app->pickInfo.selectedFaces.size())
copyTexture();
}
if (ImGui::MenuItem(get_localized_string(LANG_1157).c_str(), get_localized_string(LANG_1158).c_str(), false, mapSelected && app->copiedEnts.size()))
{
Expand Down

0 comments on commit 503846f

Please sign in to comment.