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:
parent
048a787cb1
commit
8d49e62428
7 changed files with 34 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue