Commit: ba6f25dd1b6d746c361d78b9c6c898ff96fd50d4 Author: Chris Blackbourn Date: Thu Oct 20 10:10:39 2022 +1300 Branches: master https://developer.blender.org/rBba6f25dd1b6d746c361d78b9c6c898ff96fd50d4
Fix T101907: restore snapping in node editor Regression from 1edebb794b76 =================================================================== M source/blender/editors/transform/transform_snap.c =================================================================== diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 553202b5798..06aec3b45a6 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -523,6 +523,10 @@ void applyGridAbsolute(TransInfo *t) float grid_size_y = (t->modifiers & MOD_PRECISION) ? t->snap_spatial_y[1] : t->snap_spatial_y[0]; float grid_size_z = grid_size_x; + if (grid_size_y == 0.0f) { + grid_size_y = grid_size_x; /* Just use `grid_size_x` when `grid_size_y` isn't set correctly. */ + } + /* Early exit on unusable grid size. */ if (grid_size_x == 0.0f || grid_size_y == 0.0f || grid_size_z == 0.0f) { return; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs