Fix typo and and incorrect property initialization

Error in rB236fda7faf58
This commit is contained in:
Germano Cavalcante 2022-09-26 14:23:11 -03:00 committed by Philipp Oeser
parent 1c8374978d
commit b4e8d03e5c
Notes: blender-bot 2023-06-12 00:52:52 +02:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
2 changed files with 2 additions and 2 deletions

View File

@ -1573,7 +1573,7 @@ void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
}
}
/* Save sanpping settings. */
/* Save snapping settings. */
if (prop = RNA_struct_find_property(op->ptr, "snap")) {
RNA_property_boolean_set(op->ptr, prop, (t->modifiers & MOD_SNAP) != 0);

View File

@ -682,7 +682,7 @@ void Transform_Properties(struct wmOperatorType *ot, int flags)
prop = RNA_def_boolean(ot->srna, "use_snap_nonedit", true, "Target: Include Non-Edited", "");
RNA_def_property_flag(prop, PROP_HIDDEN);
prop = RNA_def_boolean(
ot->srna, "use_snap_selectable", true, "Target: Exclude Non-Selectable", "");
ot->srna, "use_snap_selectable", false, "Target: Exclude Non-Selectable", "");
RNA_def_property_flag(prop, PROP_HIDDEN);
prop = RNA_def_float_vector(