Cleanup: break out of loop early

This commit is contained in:
Campbell Barton 2021-03-12 12:51:38 +11:00
parent d3fa576aa7
commit 8125731cae
1 changed files with 1 additions and 0 deletions

View File

@ -337,6 +337,7 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel)
PointerRNA ob_projector = RNA_pointer_get(&projector_ptr, "object");
if (!RNA_pointer_is_null(&ob_projector) && RNA_enum_get(&ob_projector, "type") == OB_CAMERA) {
has_camera = true;
break;
}
}
RNA_END;