[Bf-blender-cvs] [be40c67b56c] blender-v3.4-release: Fix T102512: Snapping Option Face Nearest is not working
Germano Cavalcante
noreply at git.blender.org
Tue Nov 15 16:07:06 CET 2022
Commit: be40c67b56cca91f7e53268d3fb541ca4e665b25
Author: Germano Cavalcante
Date: Tue Nov 15 12:07:04 2022 -0300
Branches: blender-v3.4-release
https://developer.blender.org/rBbe40c67b56cca91f7e53268d3fb541ca4e665b25
Fix T102512: Snapping Option Face Nearest is not working
Caused by misuse of the `GS` macro.
Error in rB8f4e52b7e0dd
===================================================================
M source/blender/editors/transform/transform_snap_object.cc
===================================================================
diff --git a/source/blender/editors/transform/transform_snap_object.cc b/source/blender/editors/transform/transform_snap_object.cc
index 87c467d44d8..48f1c381bb8 100644
--- a/source/blender/editors/transform/transform_snap_object.cc
+++ b/source/blender/editors/transform/transform_snap_object.cc
@@ -1305,7 +1305,7 @@ static eSnapMode nearest_world_object_fn(SnapObjectContext *sctx,
return SCE_SNAP_MODE_NONE;
}
}
- else if (GS(ob_data) != ID_ME) {
+ else if (GS(ob_data->name) != ID_ME) {
return SCE_SNAP_MODE_NONE;
}
else if (is_object_active && ELEM(ob_eval->type, OB_CURVES_LEGACY, OB_SURF, OB_FONT)) {
More information about the Bf-blender-cvs
mailing list