[Bf-blender-cvs] [4e22a9ab9ed] master: Cleanup: Clang format
Aaron Carlisle
noreply at git.blender.org
Tue Oct 26 04:19:37 CEST 2021
Commit: 4e22a9ab9ed2391788ec3521306c64ddf6c3a48b
Author: Aaron Carlisle
Date: Mon Oct 25 22:18:45 2021 -0400
Branches: master
https://developer.blender.org/rB4e22a9ab9ed2391788ec3521306c64ddf6c3a48b
Cleanup: Clang format
===================================================================
M source/blender/editors/interface/interface_handlers.c
M source/blender/python/generic/bl_math_py_api.c
===================================================================
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 52ab13e5cd0..44420ee926e 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -10648,7 +10648,8 @@ static int ui_handle_menu_event(bContext *C,
menu->menuretval = UI_RETURN_OUT;
}
}
- else if (saferct && !BLI_rctf_isect_pt(&saferct->parent, (float)event->xy[0], (float)event->xy[1])) {
+ else if (saferct && !BLI_rctf_isect_pt(
+ &saferct->parent, (float)event->xy[0], (float)event->xy[1])) {
if (block->flag & UI_BLOCK_OUT_1) {
menu->menuretval = UI_RETURN_OK;
}
diff --git a/source/blender/python/generic/bl_math_py_api.c b/source/blender/python/generic/bl_math_py_api.c
index 5e938db0c35..2211cc931da 100644
--- a/source/blender/python/generic/bl_math_py_api.c
+++ b/source/blender/python/generic/bl_math_py_api.c
@@ -99,21 +99,21 @@ static PyObject *py_bl_math_lerp(PyObject *UNUSED(self), PyObject *args)
return PyFloat_FromDouble(a * (1.0 - x) + b * x);
}
-PyDoc_STRVAR(
- py_bl_math_smoothstep_doc,
- ".. function:: smoothstep(from_value, to_value, value)\n"
- "\n"
- " Performs smooth interpolation between 0 and 1 as value changes between from and to values.\n"
- " Outside the range the function returns the same value as the nearest edge.\n"
- "\n"
- " :arg from_value: The edge value where the result is 0.\n"
- " :type from_value: float\n"
- " :arg to_value: The edge value where the result is 1.\n"
- " :type to_value: float\n"
- " :arg factor: The interpolation value.\n"
- " :type factor: float\n"
- " :return: The interpolated value in [0.0, 1.0].\n"
- " :rtype: float\n");
+PyDoc_STRVAR(py_bl_math_smoothstep_doc,
+ ".. function:: smoothstep(from_value, to_value, value)\n"
+ "\n"
+ " Performs smooth interpolation between 0 and 1 as value changes between from and "
+ "to values.\n"
+ " Outside the range the function returns the same value as the nearest edge.\n"
+ "\n"
+ " :arg from_value: The edge value where the result is 0.\n"
+ " :type from_value: float\n"
+ " :arg to_value: The edge value where the result is 1.\n"
+ " :type to_value: float\n"
+ " :arg factor: The interpolation value.\n"
+ " :type factor: float\n"
+ " :return: The interpolated value in [0.0, 1.0].\n"
+ " :rtype: float\n");
static PyObject *py_bl_math_smoothstep(PyObject *UNUSED(self), PyObject *args)
{
double a, b, x;
More information about the Bf-blender-cvs
mailing list