Cleanup rna_Brush_direction_itemf()
Some variants of gcc compilation were reporting 'control reaching end of non-void function' error in this switch/case maze. Either use break everywhere or not at all (which is simpler, since we only always return anyway...).
This commit is contained in:
parent
22d53e558d
commit
460d944493
|
@ -530,10 +530,12 @@ static EnumPropertyItem *rna_Brush_direction_itemf(bContext *C, PointerRNA *ptr,
|
|||
switch ((BrushMaskTool)me->mask_tool) {
|
||||
case BRUSH_MASK_DRAW:
|
||||
return prop_direction_items;
|
||||
break;
|
||||
|
||||
case BRUSH_MASK_SMOOTH:
|
||||
return prop_default_items;
|
||||
break;
|
||||
|
||||
default:
|
||||
return prop_default_items;
|
||||
}
|
||||
|
||||
case SCULPT_TOOL_FLATTEN:
|
||||
|
@ -554,7 +556,6 @@ static EnumPropertyItem *rna_Brush_direction_itemf(bContext *C, PointerRNA *ptr,
|
|||
default:
|
||||
return prop_default_items;
|
||||
}
|
||||
break;
|
||||
|
||||
case ePaintTexture2D:
|
||||
case ePaintTextureProjective:
|
||||
|
@ -565,7 +566,6 @@ static EnumPropertyItem *rna_Brush_direction_itemf(bContext *C, PointerRNA *ptr,
|
|||
default:
|
||||
return prop_default_items;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return prop_default_items;
|
||||
|
|
Loading…
Reference in New Issue