head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.11.08.16.15.19; author ryoon; state Exp; branches; next ; commitid ZLJvun5VhZ31WF2H; desc @@ 1.1 log @graphics/blender52-lts: import blender-5.2.3 Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline - modeling, rigging, animation, simulation, rendering, compositing and motion tracking, video editing and 2D animation pipeline. This package tracks 5.2 LTS release branch. @ text @$NetBSD: patch-source_blender_editors_interface_interface__handlers.cc,v 1.1 2024/09/06 15:43:27 prlw1 Exp $ --- source/blender/editors/interface/interface_handlers.cc.orig 2024-07-25 23:30:10.000000000 +0000 +++ source/blender/editors/interface/interface_handlers.cc @@@@ -4171,10 +4171,10 @@@@ static void ui_numedit_begin(uiBut *but, /* Center around the value, keeping in the real soft min/max range. */ softmin = data->origvalue - (softrange_max / 2); softmax = data->origvalue + (softrange_max / 2); - if (!isfinite(softmin)) { + if (!std::isfinite(softmin)) { softmin = (data->origvalue > 0.0f ? FLT_MAX : -FLT_MAX); } - if (!isfinite(softmax)) { + if (!std::isfinite(softmax)) { softmax = (data->origvalue > 0.0f ? FLT_MAX : -FLT_MAX); } @@@@ -5586,7 +5586,7 @@@@ static int ui_do_but_NUM( double precision = (roundf(log10f(data->value) + UI_PROP_SCALE_LOG_SNAP_OFFSET) - 1.0f) + log10f(number_but->step_size); /* Non-finite when `data->value` is zero. */ - if (UNLIKELY(!isfinite(precision))) { + if (UNLIKELY(!std::isfinite(precision))) { precision = -FLT_MAX; /* Ignore this value. */ } value_step = powf(10.0f, max_ff(precision, -number_but->precision)); @