Fix #110337: 'Target Selection' options modified after transform

Caused by 3a2f5fb9db

`ENUM_OPERATORS` was incorrectly set causing problems for C++ code.
This commit is contained in:
Germano Cavalcante
2023-07-21 18:50:37 -03:00
parent febe38743c
commit 8165b70e58

View File

@@ -2308,11 +2308,8 @@ typedef enum eSnapFlag {
SCE_SNAP_TO_INCLUDE_NONEDITED = (1 << 9),
SCE_SNAP_TO_ONLY_SELECTABLE = (1 << 10),
} eSnapFlag;
/* Due to dependency conflicts with Cycles, header cannot directly include `BLI_utildefines.h`. */
/* TODO: move this macro to a more general place. */
#ifdef ENUM_OPERATORS
ENUM_OPERATORS(eSnapFlag, SCE_SNAP_BACKFACE_CULLING)
#endif
ENUM_OPERATORS(eSnapFlag, SCE_SNAP_TO_ONLY_SELECTABLE)
/** See #ToolSettings::snap_target (to be renamed `snap_source`) and #TransSnap.source_operation */
typedef enum eSnapSourceOP {