Skip to content

Commit

Permalink
Return to original conditional style
Browse files Browse the repository at this point in the history
  • Loading branch information
kzsh committed Aug 20, 2024
1 parent 8c83569 commit bce21a5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/screenComponents/rotatingModelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<MeshRenderComponent>();
if (!mrc) {
return;
}
if (!mrc) return;

renderer.finish();

Expand Down

0 comments on commit bce21a5

Please sign in to comment.