1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-18 02:34:57 +00:00

begin scene editor fixup after breakage

This commit is contained in:
fgenesis 2023-10-15 00:06:45 +02:00
parent 4013a9c09b
commit 78ddd0862d

View file

@ -273,6 +273,7 @@ public:
q->position = pos;
q->renderBorder = true;
q->renderBorderColor = Vector(0.75f, 0.75f, 0.75f);
q->borderAlpha = 1.0f;
q->scale = Vector(t.scalex, t.scaley);
q->setTexturePointer(t.et->tex);
q->fhTo(!!(t.flags & TILEFLAG_FH));
@ -287,6 +288,14 @@ public:
}
th->position = center / float(n);
// distribute quads around center
for(size_t i = 0; i < n; ++i)
{
Quad *q = th->_quads[i];
q->position -= th->position;
}
core->addRenderObject(th, LR_ELEMENTS1+bgLayer);
return th;
}