[Bf-blender-cvs] [46cfd345e47] master: Fix typo and and incorrect property initialization

Germano Cavalcante noreply at git.blender.org
Mon Sep 26 19:23:21 CEST 2022


Commit: 46cfd345e475bb05caf029502f6c9c3a4e2cc469
Author: Germano Cavalcante
Date:   Mon Sep 26 14:23:11 2022 -0300
Branches: master
https://developer.blender.org/rB46cfd345e475bb05caf029502f6c9c3a4e2cc469

Fix typo and and incorrect property initialization

Error in rB236fda7faf58

===================================================================

M	source/blender/editors/transform/transform.c
M	source/blender/editors/transform/transform_ops.c

===================================================================

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 6ca33a591cc..716005333c8 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -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);
 
diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c
index f15ad99dbc3..dbda9a26bbf 100644
--- a/source/blender/editors/transform/transform_ops.c
+++ b/source/blender/editors/transform/transform_ops.c
@@ -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(



More information about the Bf-blender-cvs mailing list