Commit: 0f52aa0954e75195188499d1d334b5af5731dd29 Author: Germano Cavalcante Date: Tue Jan 24 16:44:31 2023 -0300 Branches: master https://developer.blender.org/rB0f52aa0954e75195188499d1d334b5af5731dd29
Transform: Initialize 'transform_matrix' accordingly Some transform modes are changeable, so callbacks should be reset together. Currently the unchanged `transform_matrix` callback is not a major issue as it is only used for gizmos and gizmos stop updating when changing the operator type. =================================================================== M source/blender/editors/transform/transform_mode_edge_slide.c M source/blender/editors/transform/transform_mode_resize.c M source/blender/editors/transform/transform_mode_vert_slide.c =================================================================== diff --git a/source/blender/editors/transform/transform_mode_edge_slide.c b/source/blender/editors/transform/transform_mode_edge_slide.c index 6920deea574..f2ba8c4bd4d 100644 --- a/source/blender/editors/transform/transform_mode_edge_slide.c +++ b/source/blender/editors/transform/transform_mode_edge_slide.c @@ -1498,6 +1498,7 @@ void initEdgeSlide_ex( t->mode = TFM_EDGE_SLIDE; t->transform = applyEdgeSlide; t->handleEvent = handleEventEdgeSlide; + t->transform_matrix = NULL; t->tsnap.snap_mode_apply_fn = edge_slide_snap_apply; t->tsnap.snap_mode_distance_fn = transform_snap_distance_len_squared_fn; diff --git a/source/blender/editors/transform/transform_mode_resize.c b/source/blender/editors/transform/transform_mode_resize.c index 355da21c253..bf9fba2b1e7 100644 --- a/source/blender/editors/transform/transform_mode_resize.c +++ b/source/blender/editors/transform/transform_mode_resize.c @@ -285,6 +285,7 @@ void initResize(TransInfo *t, float mouse_dir_constraint[3]) { t->mode = TFM_RESIZE; t->transform = applyResize; + t->transform_matrix = NULL; t->tsnap.snap_mode_apply_fn = ApplySnapResize; t->tsnap.snap_mode_distance_fn = ResizeBetween; diff --git a/source/blender/editors/transform/transform_mode_vert_slide.c b/source/blender/editors/transform/transform_mode_vert_slide.c index 3483f2b2bfa..f6e8c64af8f 100644 --- a/source/blender/editors/transform/transform_mode_vert_slide.c +++ b/source/blender/editors/transform/transform_mode_vert_slide.c @@ -610,6 +610,7 @@ void initVertSlide_ex(TransInfo *t, bool use_even, bool flipped, bool use_clamp) t->mode = TFM_VERT_SLIDE; t->transform = applyVertSlide; t->handleEvent = handleEventVertSlide; + t->transform_matrix = NULL; t->tsnap.snap_mode_apply_fn = vert_slide_snap_apply; t->tsnap.snap_mode_distance_fn = transform_snap_distance_len_squared_fn; _______________________________________________ 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