From bce21a504cffdacacc29521582ff197672f5f2e0 Mon Sep 17 00:00:00 2001 From: kzsh Date: Mon, 19 Aug 2024 22:55:25 -0400 Subject: [PATCH] Return to original conditional style --- src/screenComponents/rotatingModelView.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/screenComponents/rotatingModelView.cpp b/src/screenComponents/rotatingModelView.cpp index 111f8686b..b0f9d44cb 100644 --- a/src/screenComponents/rotatingModelView.cpp +++ b/src/screenComponents/rotatingModelView.cpp @@ -26,17 +26,11 @@ GuiRotatingModelView::GuiRotatingModelView(GuiContainer* owner, string id, sp::e void GuiRotatingModelView::onDraw(sp::RenderTarget& renderer) { - if (rect.size.x <= 0) { - return; - } - if (rect.size.y <= 0) { - return; - } + if (rect.size.x <= 0) return; + if (rect.size.y <= 0) return; auto mrc = entity.getComponent(); - if (!mrc) { - return; - } + if (!mrc) return; renderer.finish();