forked from bartvdbraak/blender
fix for error when fixing crash in filesel poll function.
This commit is contained in:
parent
43764c30d2
commit
185df0811c
@ -1178,7 +1178,7 @@ static int file_directory_poll(bContext *C)
|
||||
{
|
||||
/* sfile->files can be NULL on file load */
|
||||
SpaceFile *sfile= CTX_wm_space_file(C);
|
||||
return ED_operator_file_active(C) && sfile->files && filelist_lib(sfile->files);
|
||||
return ED_operator_file_active(C) && (sfile->files==NULL || filelist_lib(sfile->files)==NULL);
|
||||
}
|
||||
|
||||
void FILE_OT_directory(struct wmOperatorType *ot)
|
||||
|
Loading…
Reference in New Issue
Block a user