mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 14:42:44 +00:00
[lua] Range:clear() now clears the selection of slices
This commit is contained in:
parent
47aae7fc07
commit
2a93672c70
@ -173,6 +173,11 @@ int Range_clear(lua_State* L)
|
|||||||
doc::PalettePicks picks;
|
doc::PalettePicks picks;
|
||||||
ctx->setSelectedColors(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());
|
obj->updateFromSite(ctx->activeSite());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user