mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
[lua] Clear selected colors with app.range:clear() too
This commit is contained in:
parent
e149f76934
commit
9a06deb0e6
@ -21,7 +21,6 @@
|
||||
#include "doc/object_ids.h"
|
||||
#include "doc/sprite.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
@ -156,8 +155,12 @@ int Range_clear(lua_State* L)
|
||||
// Set an empty range
|
||||
DocRange range;
|
||||
ctx->setRange(range);
|
||||
obj->updateFromSite(ctx->activeSite());
|
||||
|
||||
// Set empty palette picks
|
||||
doc::PalettePicks picks;
|
||||
ctx->setSelectedColors(picks);
|
||||
|
||||
obj->updateFromSite(ctx->activeSite());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user