Cleanup: replace misleading use of 'true' for the bit-field size

Also use a bit-field for SnapObjectParams.keep_on_same_target
This commit is contained in:
Campbell Barton 2022-08-12 11:20:56 +10:00
parent c321572456
commit 269e037ff4
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ void BM_mesh_elem_toolflags_ensure(BMesh *bm);
void BM_mesh_elem_toolflags_clear(BMesh *bm);
struct BMeshCreateParams {
bool use_toolflags : true;
bool use_toolflags : 1;
};
/**

View File

@ -57,13 +57,13 @@ struct SnapObjectParams {
/* Geometry for snapping in edit mode. */
eSnapEditType edit_mode_type;
/* snap to the closest element, use when using more than one snap type */
bool use_occlusion_test : true;
bool use_occlusion_test : 1;
/* exclude back facing geometry from snapping */
bool use_backface_culling : true;
bool use_backface_culling : 1;
/* Break nearest face snapping into steps to improve transformations across U-shaped targets. */
short face_nearest_steps;
/* Enable to force nearest face snapping to snap to target the source was initially near. */
bool keep_on_same_target;
bool keep_on_same_target : 1;
};
typedef struct SnapObjectContext SnapObjectContext;