DateTimeEditComponent no longer renders the debug overlay unless there is a string to display

This commit is contained in:
Leon Styhre 2024-08-16 21:26:21 +02:00
parent 302f6e0fc5
commit 2a9ab5ea88

View file

@ -165,7 +165,7 @@ void DateTimeEditComponent::render(const glm::mat4& parentTrans)
trans = glm::translate(trans, glm::round(off));
mRenderer->setMatrix(trans);
if (Settings::getInstance()->getBool("DebugText")) {
if (Settings::getInstance()->getBool("DebugText") && mDateText->getValue() != "") {
mRenderer->setMatrix(trans);
mDateText->setDebugRendering(false);
if (mDateText->getSize().x > 0.0f) {