Fix error in macOS system file detection in recent changes

Differential Revision: https://developer.blender.org/D7250
This commit is contained in:
Ankit
2020-03-27 18:56:01 +01:00
committed by Brecht Van Lommel
parent 9120191fe2
commit 0c0170f77a

View File

@@ -87,7 +87,7 @@ eFileAttributes BLI_file_attributes(const char *path)
if (is_readable && !is_writable) {
ret |= FILE_ATTR_READONLY;
}
if (is_readable) {
if (!is_readable) {
ret |= FILE_ATTR_SYSTEM;
}
}