From dbc842b21e7d8a75f3a5366ad8c3d4bf290fc4fc Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Sat, 1 Jun 2024 19:55:28 +0200 Subject: [PATCH] Fix #122582: Missing button assignment caused wrong precision to be used The missing button assignment caused the previous button ("Z:") to have its precision set to the incorrect value. Pull Request: https://projects.blender.org/blender/blender/pulls/122583 --- .../editors/space_view3d/view3d_buttons.cc | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/source/blender/editors/space_view3d/view3d_buttons.cc b/source/blender/editors/space_view3d/view3d_buttons.cc index d616dc5de37..d221dc18d44 100644 --- a/source/blender/editors/space_view3d/view3d_buttons.cc +++ b/source/blender/editors/space_view3d/view3d_buttons.cc @@ -861,20 +861,20 @@ static void v3d_editvertex_buts(uiLayout *layout, View3D *v3d, Object *ob, float else if (totlattdata) { TransformMedian_Lattice *ve_median = &tfp->ve_median.lattice; if (totlattdata == 1) { - uiDefButR(block, - UI_BTYPE_NUM, - 0, - IFACE_("Weight:"), - 0, - yi -= buth + but_margin, - butw, - buth, - &data_ptr, - "weight_softbody", - 0, - 0.0, - 1.0, - nullptr); + but = uiDefButR(block, + UI_BTYPE_NUM, + 0, + IFACE_("Weight:"), + 0, + yi -= buth + but_margin, + butw, + buth, + &data_ptr, + "weight_softbody", + 0, + 0.0, + 1.0, + nullptr); UI_but_number_step_size_set(but, 1); UI_but_number_precision_set(but, 3); }