Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_gizmo_library.h
| Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | struct SnapObjectContext *ED_gizmotypes_snap_3d_context_ensure(struct Scene *scene, | ||||
| const struct View3D *v3d, | const struct View3D *v3d, | ||||
| struct wmGizmo *gz); | struct wmGizmo *gz); | ||||
| typedef enum { | typedef enum { | ||||
| ED_SNAPGIZMO_TOGGLE_ALWAYS_TRUE = 1 << 0, | ED_SNAPGIZMO_TOGGLE_ALWAYS_TRUE = 1 << 0, | ||||
| ED_SNAPGIZMO_OCCLUSION_ALWAYS_TRUE = 1 << 1, | ED_SNAPGIZMO_OCCLUSION_ALWAYS_TRUE = 1 << 1, | ||||
| ED_SNAPGIZMO_OCCLUSION_ALWAYS_FALSE = 1 << 2, /* TODO. */ | ED_SNAPGIZMO_OCCLUSION_ALWAYS_FALSE = 1 << 2, /* TODO. */ | ||||
| ED_SNAPGIZMO_SNAP_ONLY_ACTIVE = 1 << 3, | ED_SNAPGIZMO_SNAP_ONLY_ACTIVE = 1 << 3, | ||||
| /* The parameters below define which type of geometry of the edit-mode to snap. | |||||
| * If not defined, the default is snap to geometry without modifiers (#SNAP_GEOM_EDIT). | |||||
| * See #eSnapSelect for more details.*/ | |||||
| ED_SNAPGIZMO_SNAP_EDIT_GEOM_FINAL = 1 << 4, | ED_SNAPGIZMO_SNAP_EDIT_GEOM_FINAL = 1 << 4, | ||||
| ED_SNAPGIZMO_SNAP_EDIT_GEOM_CAGE = 1 << 5, | ED_SNAPGIZMO_SNAP_EDIT_GEOM_CAGE = 1 << 5, | ||||
| ED_SNAPGIZMO_SNAP_EDIT_GEOM_CAGE_DEFORMED = 1 << 6, | |||||
| } eSnapGizmo; | } eSnapGizmo; | ||||
| void ED_gizmotypes_snap_3d_flag_set(struct wmGizmo *gz, eSnapGizmo flag); | void ED_gizmotypes_snap_3d_flag_set(struct wmGizmo *gz, eSnapGizmo flag); | ||||
| void ED_gizmotypes_snap_3d_flag_clear(struct wmGizmo *gz, eSnapGizmo flag); | void ED_gizmotypes_snap_3d_flag_clear(struct wmGizmo *gz, eSnapGizmo flag); | ||||
| bool ED_gizmotypes_snap_3d_flag_test(struct wmGizmo *gz, eSnapGizmo flag); | bool ED_gizmotypes_snap_3d_flag_test(struct wmGizmo *gz, eSnapGizmo flag); | ||||
| bool ED_gizmotypes_snap_3d_invert_snap_get(struct wmGizmo *gz); | bool ED_gizmotypes_snap_3d_invert_snap_get(struct wmGizmo *gz); | ||||
| bool ED_gizmotypes_snap_3d_is_enabled(struct wmGizmo *gz); | bool ED_gizmotypes_snap_3d_is_enabled(struct wmGizmo *gz); | ||||
| Show All 13 Lines | |||||