Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 1,571 Lines • ▼ Show 20 Lines | if ((t->flag & T_MODAL) || (op->flag & OP_IS_REPEAT)) { | ||||
| } | } | ||||
| } | } | ||||
| if (t->flag & T_MODAL) { | if (t->flag & T_MODAL) { | ||||
| /* do we check for parameter? */ | /* do we check for parameter? */ | ||||
| if (transformModeUseSnap(t)) { | if (transformModeUseSnap(t)) { | ||||
| if (!(t->modifiers & MOD_SNAP) != !(t->tsnap.flag & SCE_SNAP)) { | if (!(t->modifiers & MOD_SNAP) != !(t->tsnap.flag & SCE_SNAP)) { | ||||
| /* Type is #eSnapFlag, but type must match various snap attributes in #ToolSettings. */ | /* Type is #eSnapFlag, but type must match various snap attributes in #ToolSettings. */ | ||||
| char *snap_flag_ptr; | short *snap_flag_ptr; | ||||
| wmMsgParams_RNA msg_key_params = {{0}}; | wmMsgParams_RNA msg_key_params = {{0}}; | ||||
| RNA_pointer_create(&t->scene->id, &RNA_ToolSettings, ts, &msg_key_params.ptr); | RNA_pointer_create(&t->scene->id, &RNA_ToolSettings, ts, &msg_key_params.ptr); | ||||
| if (t->spacetype == SPACE_NODE) { | if (t->spacetype == SPACE_NODE) { | ||||
| snap_flag_ptr = &ts->snap_flag_node; | snap_flag_ptr = &ts->snap_flag_node; | ||||
| msg_key_params.prop = &rna_ToolSettings_use_snap_node; | msg_key_params.prop = &rna_ToolSettings_use_snap_node; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines | |||||