1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-02 22:14:37 +00:00

SceneEditor: hovering tiles works again

This commit is contained in:
fgenesis 2023-09-08 19:23:03 +02:00
parent 048a787cb1
commit 8d49e62428
7 changed files with 34 additions and 5 deletions

View file

@ -217,6 +217,11 @@ void TileStorage::changeFlags(unsigned flagsToSet, unsigned flagsToUnset, const
}
}
void TileStorage::select(const size_t *indices, size_t n)
{
changeFlags(TILEFLAG_SELECTED, 0, indices, n);
}
size_t TileStorage::cloneSome(const TileEffectStorage& effstore, const size_t* indices, size_t n)
{
const size_t ret = tiles.size(); // new starting index of clone tiles

View file

@ -239,6 +239,7 @@ public:
void refreshAll(); // call this after changing properties or moving to front/back
void destroyAll();
void select(const size_t *indices, size_t n);
void clearSelection();
struct Sizes

View file

@ -172,6 +172,8 @@ void TileRender::onRender(const RenderState& rs) const
lastTexId = 0;
prevEff = ((TileEffectData*)NULL)+1;
rs.gpu.setBlend(BLEND_DEFAULT);
if(grid && RenderObject::renderCollisionShape)
{
grid->renderDebugPoints(rs);