Added undo-redo to locking of sources.

This commit is contained in:
brunoherbelin
2021-03-18 21:56:06 +01:00
parent ac5e885fb3
commit 09f052a5d6
7 changed files with 31 additions and 12 deletions

View File

@@ -830,11 +830,15 @@ void TextureView::draw()
if (s != nullptr) {
if (s->textureMirrored()) {
if (ImGui::Selectable( ICON_FA_TH " Repeat " ))
if (ImGui::Selectable( ICON_FA_TH " Repeat " )){
s->setTextureMirrored(false);
Action::manager().store(s->name() + std::string(": Texture Repeat."), s->id());
}
} else {
if (ImGui::Selectable( ICON_FA_TH " Mirror " ))
if (ImGui::Selectable( ICON_FA_TH " Mirror " )){
s->setTextureMirrored(true);
Action::manager().store(s->name() + std::string(": Texture Mirror."), s->id());
}
}
ImGui::Separator();