[Bf-blender-cvs] [887713d08de] retopo_transform: using correct argument now

jon denning noreply at git.blender.org
Sat Jul 16 16:30:43 CEST 2022


Commit: 887713d08deb577017e3da451264d1216e531918
Author: jon denning
Date:   Sat Jul 16 10:30:45 2022 -0400
Branches: retopo_transform
https://developer.blender.org/rB887713d08deb577017e3da451264d1216e531918

using correct argument now

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

M	source/blender/editors/transform/transform_snap.c
M	source/blender/makesrna/intern/rna_scene.c

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

diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c
index 4a82c5a00fa..35a344ba9e6 100644
--- a/source/blender/editors/transform/transform_snap.c
+++ b/source/blender/editors/transform/transform_snap.c
@@ -917,7 +917,7 @@ void initSnapping(TransInfo *t, wmOperator *op)
                            SCE_SNAP_TARGET_NOT_NONEDITED);
       }
 
-      if ((prop = RNA_struct_find_property(op->ptr, "use_snap_selectable")) &&
+      if ((prop = RNA_struct_find_property(op->ptr, "use_snap_selectable_only")) &&
           RNA_property_is_set(op->ptr, prop)) {
         SET_FLAG_FROM_TEST(t->tsnap.target_select,
                            RNA_property_boolean_get(op->ptr, prop),
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 530b18aa8df..85d3cf02e12 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -3394,7 +3394,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
       prop, "Snap onto Non-edited", "Snap onto objects not in Edit Mode (Edit Mode Only)");
   RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */
 
-  prop = RNA_def_property(srna, "use_snap_selectable", PROP_BOOLEAN, PROP_NONE);
+  prop = RNA_def_property(srna, "use_snap_selectable_only", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_TO_ONLY_SELECTABLE);
   RNA_def_property_ui_text(
       prop, "Snap onto Selectable Only", "Snap only onto objects that are selectable");



More information about the Bf-blender-cvs mailing list