[lua] Range:clear() now clears the selection of slices

master
David Capello 2022-08-31 11:36:39 -03:00
parent 47aae7fc07
commit 2a93672c70
1 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,11 @@ int Range_clear(lua_State* L)
doc::PalettePicks picks;
ctx->setSelectedColors(picks);
// Empty selected slices in the current editor
// TODO add a new function to Context class for this
if (current_editor)
current_editor->clearSlicesSelection();
obj->updateFromSite(ctx->activeSite());
return 0;
}