Skip to content

Commit

Permalink
ENGINES: If a widget has a fill texture, disable clearing in subscene
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius committed Jul 25, 2018
1 parent 6f8a749 commit d69be5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engines/aurora/kotorjadegui/kotorjadewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ void KotORJadeWidget::setSubScene(Graphics::Aurora::SubSceneQuad *subscene) {
float x, y, z;
getPosition(x, y, z);
_subScene->setPosition(x + wWidth/2, y + wHeight/2);

// If a fill quad already exists, move the subscene a bit before it and disable clearing.
if (_quad) {
_quad->getPosition(x, y, z);
_subScene->setDistance(z - 0.000001);
_subScene->setClearEnabled(false);
}
}

float KotORJadeWidget::getBorderDimension() const {
Expand Down

0 comments on commit d69be5e

Please sign in to comment.