Cleanup: style
This commit is contained in:
@@ -350,7 +350,7 @@ class VIEW3D_MT_editor_menus(Menu):
|
||||
layout.menu("VIEW3D_MT_edit_mesh_edges")
|
||||
layout.menu("VIEW3D_MT_edit_mesh_faces")
|
||||
layout.menu("VIEW3D_MT_uv_map", text="UV")
|
||||
elif mode_string in ['EDIT_CURVE', 'EDIT_SURFACE']:
|
||||
elif mode_string in {'EDIT_CURVE', 'EDIT_SURFACE'}:
|
||||
layout.menu("VIEW3D_MT_edit_curve_ctrlpoints")
|
||||
layout.menu("VIEW3D_MT_edit_curve_segments")
|
||||
|
||||
@@ -3319,7 +3319,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(Menu):
|
||||
|
||||
edit_object = context.edit_object
|
||||
|
||||
if edit_object.type in ['CURVE', 'SURFACE']:
|
||||
if edit_object.type in {'CURVE', 'SURFACE'}:
|
||||
layout.operator("curve.extrude_move")
|
||||
|
||||
layout.separator()
|
||||
|
@@ -181,14 +181,14 @@ char *BLI_cpu_brand_string(void)
|
||||
void BLI_hostname_get(char *buffer, size_t bufsize)
|
||||
{
|
||||
#ifndef WIN32
|
||||
if (gethostname(buffer, bufsize-1) < 0) {
|
||||
if (gethostname(buffer, bufsize - 1) < 0) {
|
||||
BLI_strncpy(buffer, "-unknown-", bufsize);
|
||||
}
|
||||
/* When gethostname() truncates, it doesn't guarantee the trailing \0. */
|
||||
buffer[bufsize - 1] = '\0';
|
||||
#else
|
||||
DWORD bufsize_inout = bufsize;
|
||||
if(!GetComputerName(buffer, &bufsize_inout)) {
|
||||
if (!GetComputerName(buffer, &bufsize_inout)) {
|
||||
strncpy(buffer, "-unknown-", bufsize);
|
||||
}
|
||||
#endif
|
||||
|
@@ -519,7 +519,7 @@ void DepsgraphRelationBuilder::build_rig(Object *object)
|
||||
add_relation(bone_segments_key,
|
||||
pose_done_key,
|
||||
"PoseEval Result-Bone Link",
|
||||
DEPSREL_FLAG_GODMODE);
|
||||
DEPSREL_FLAG_GODMODE);
|
||||
add_relation(bone_segments_key,
|
||||
pose_cleanup_key,
|
||||
"Cleanup dependency");
|
||||
|
@@ -499,7 +499,7 @@ static Mesh *applyModifier(
|
||||
const int ml_index = (ml - mloop);
|
||||
if (mloopcols_index != NULL) {
|
||||
const int part_index = vert_part_index[ml->v];
|
||||
store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart-1));
|
||||
store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart - 1));
|
||||
}
|
||||
if (mloopcols_value != NULL) {
|
||||
const float part_value = vert_part_value[ml->v];
|
||||
|
Reference in New Issue
Block a user