remove invalid NULL checks from own recent commit and minor pep8 edits.
This commit is contained in:
@@ -218,8 +218,6 @@ static int screenshot_cancel(bContext *UNUSED(C), wmOperator *op)
|
||||
|
||||
void SCREEN_OT_screenshot(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
ot->name= "Save Screenshot"; /* weak: opname starting with 'save' makes filewindow give save-over */
|
||||
ot->idname= "SCREEN_OT_screenshot";
|
||||
|
||||
@@ -231,7 +229,7 @@ void SCREEN_OT_screenshot(wmOperatorType *ot)
|
||||
ot->flag= 0;
|
||||
|
||||
WM_operator_properties_filesel(ot, FOLDERFILE|IMAGEFILE, FILE_SPECIAL, FILE_SAVE, WM_FILESEL_FILEPATH);
|
||||
prop= RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
|
||||
RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
|
||||
}
|
||||
|
||||
/* *************** screenshot movie job ************************* */
|
||||
|
||||
@@ -2986,7 +2986,7 @@ static void draw_mesh_fancy(Scene *scene, ARegion *ar, View3D *v3d, RegionView3D
|
||||
int /* totvert,*/ totedge, totface;
|
||||
DerivedMesh *dm= mesh_get_derived_final(scene, ob, scene->customdata_mask);
|
||||
ModifierData *md = NULL;
|
||||
const short is_obact= (ob != NULL && ob == OBACT);
|
||||
const short is_obact= (ob == OBACT);
|
||||
int draw_flags = (is_obact && paint_facesel_test(ob)) ? DRAW_FACE_SELECT : 0;
|
||||
|
||||
if(!dm)
|
||||
@@ -6108,7 +6108,7 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag)
|
||||
int /*sel, drawtype,*/ colindex= 0;
|
||||
int i, selstart, selend, empty_object=0;
|
||||
short dt, dtx, zbufoff= 0;
|
||||
const short is_obact= (ob != NULL && ob == OBACT);
|
||||
const short is_obact= (ob == OBACT);
|
||||
|
||||
/* only once set now, will be removed too, should become a global standard */
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
Reference in New Issue
Block a user