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
parent 236fda7faf
commit 46cfd345e4
Notes: blender-bot 2023-02-14 09:33:11 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
2 changed files with 2 additions and 2 deletions

View File

@ -1578,7 +1578,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

@ -684,7 +684,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(