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:
parent
4013a9c09b
commit
78ddd0862d
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue