forked from bartvdbraak/blender
coverity issue CID: 97
Checker: FORWARD_NULL (help) File: base/src/source/blender/src/poseobject.c Function: pose_special_editmenu Description: Variable "ob" tracked as NULL was dereferenced. logic was wrong (gets complicated when you use !'s ;)) Kent
This commit is contained in:
parent
c5b05fd450
commit
6c5e1b6b24
@ -551,7 +551,7 @@ void pose_special_editmenu(void)
|
||||
short nr;
|
||||
|
||||
/* paranoia checks */
|
||||
if(!ob && !ob->pose) return;
|
||||
if(!ob || !ob->pose) return;
|
||||
if(ob==G.obedit || (ob->flag & OB_POSEMODE)==0) return;
|
||||
|
||||
nr= pupmenu("Specials%t|Select Constraint Target%x1|Flip Left-Right Names%x2|Calculate Paths%x3|Clear Paths%x4|Clear User Transform %x5|Relax Pose %x6|%l|AutoName Left-Right%x7|AutoName Front-Back%x8|AutoName Top-Bottom%x9");
|
||||
|
Loading…
Reference in New Issue
Block a user