[Bf-blender-cvs] [1bbc4ccbd22] refactor-idprop-ui-data: Remove more curly braces
Hans Goudey
noreply at git.blender.org
Thu Aug 5 21:01:51 CEST 2021
Commit: 1bbc4ccbd2211356425d09e0a9251cdfe8356fc7
Author: Hans Goudey
Date: Thu Aug 5 13:56:39 2021 -0500
Branches: refactor-idprop-ui-data
https://developer.blender.org/rB1bbc4ccbd2211356425d09e0a9251cdfe8356fc7
Remove more curly braces
===================================================================
M source/blender/python/generic/idprop_py_ui_api.c
===================================================================
diff --git a/source/blender/python/generic/idprop_py_ui_api.c b/source/blender/python/generic/idprop_py_ui_api.c
index c43d2067f8e..cf84fde8145 100644
--- a/source/blender/python/generic/idprop_py_ui_api.c
+++ b/source/blender/python/generic/idprop_py_ui_api.c
@@ -397,38 +397,33 @@ static PyObject *BPy_IDPropertyUIManager_update(BPy_IDPropertyUIManager *self,
BLI_assert(IDP_ui_data_supported(property));
switch (IDP_ui_data_type(property)) {
- case IDP_UI_DATA_TYPE_INT: {
+ case IDP_UI_DATA_TYPE_INT:
IDP_ui_data_ensure(property);
if (!idprop_ui_data_update_int(property, args, kwargs)) {
return NULL;
}
Py_RETURN_NONE;
- }
- case IDP_UI_DATA_TYPE_FLOAT: {
+ case IDP_UI_DATA_TYPE_FLOAT:
IDP_ui_data_ensure(property);
if (!idprop_ui_data_update_float(property, args, kwargs)) {
return NULL;
}
Py_RETURN_NONE;
- }
- case IDP_UI_DATA_TYPE_STRING: {
+ case IDP_UI_DATA_TYPE_STRING:
IDP_ui_data_ensure(property);
if (!idprop_ui_data_update_string(property, args, kwargs)) {
return NULL;
}
Py_RETURN_NONE;
- }
- case IDP_UI_DATA_TYPE_ID: {
+ case IDP_UI_DATA_TYPE_ID:
IDP_ui_data_ensure(property);
if (!idprop_ui_data_update_id(property, args, kwargs)) {
return NULL;
}
Py_RETURN_NONE;
- }
- case IDP_UI_DATA_TYPE_UNSUPPORTED: {
+ case IDP_UI_DATA_TYPE_UNSUPPORTED:
PyErr_Format(PyExc_TypeError, "IDProperty \"%s\" does not support RNA data", property->name);
return NULL;
- }
}
BLI_assert_unreachable();
More information about the Bf-blender-cvs
mailing list