coverity CID: 374
Checker: FORWARD_NULL (help) File: base/src/source/blender/src/toolbox.c Function: tb_do_render Description: Variable "ca" tracked as NULL was dereferenced. Moved check for null to include else statement. Kent
This commit is contained in:
@@ -1545,10 +1545,12 @@ static void tb_do_render(void *arg, int event){
|
||||
ca= G.vd->camera->data;
|
||||
else return;
|
||||
|
||||
if (ca && (ca->flag & CAM_SHOWPASSEPARTOUT))
|
||||
ca->flag &= ~CAM_SHOWPASSEPARTOUT;
|
||||
else
|
||||
ca->flag |= CAM_SHOWPASSEPARTOUT;
|
||||
if (ca) {
|
||||
if (ca->flag & CAM_SHOWPASSEPARTOUT)
|
||||
ca->flag &= ~CAM_SHOWPASSEPARTOUT;
|
||||
else
|
||||
ca->flag |= CAM_SHOWPASSEPARTOUT;
|
||||
}
|
||||
allqueue(REDRAWVIEW3D, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user