mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +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/object_ids.h"
|
||||||
#include "doc/sprite.h"
|
#include "doc/sprite.h"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -156,8 +155,12 @@ int Range_clear(lua_State* L)
|
|||||||
// Set an empty range
|
// Set an empty range
|
||||||
DocRange range;
|
DocRange range;
|
||||||
ctx->setRange(range);
|
ctx->setRange(range);
|
||||||
obj->updateFromSite(ctx->activeSite());
|
|
||||||
|
|
||||||
|
// Set empty palette picks
|
||||||
|
doc::PalettePicks picks;
|
||||||
|
ctx->setSelectedColors(picks);
|
||||||
|
|
||||||
|
obj->updateFromSite(ctx->activeSite());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user