clang-format: Disable alignment of operands, too unreliable
Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
This commit is contained in:
parent
8508f9396d
commit
3b11e33a09
95 changed files with 649 additions and 645 deletions
|
|
@ -1300,27 +1300,28 @@ bool ResourceImporterScene::get_internal_option_visibility(InternalImportCategor
|
|||
if (p_option == "primitive/position" || p_option == "primitive/rotation") {
|
||||
const ShapeType physics_shape = (ShapeType)p_options["physics/shape_type"].operator int();
|
||||
return generate_physics &&
|
||||
physics_shape >= SHAPE_TYPE_BOX;
|
||||
physics_shape >= SHAPE_TYPE_BOX;
|
||||
}
|
||||
|
||||
if (p_option == "primitive/size") {
|
||||
const ShapeType physics_shape = (ShapeType)p_options["physics/shape_type"].operator int();
|
||||
return generate_physics &&
|
||||
physics_shape == SHAPE_TYPE_BOX;
|
||||
physics_shape == SHAPE_TYPE_BOX;
|
||||
}
|
||||
|
||||
if (p_option == "primitive/radius") {
|
||||
const ShapeType physics_shape = (ShapeType)p_options["physics/shape_type"].operator int();
|
||||
return generate_physics && (physics_shape == SHAPE_TYPE_SPHERE ||
|
||||
physics_shape == SHAPE_TYPE_CYLINDER ||
|
||||
physics_shape == SHAPE_TYPE_CAPSULE);
|
||||
return generate_physics &&
|
||||
(physics_shape == SHAPE_TYPE_SPHERE ||
|
||||
physics_shape == SHAPE_TYPE_CYLINDER ||
|
||||
physics_shape == SHAPE_TYPE_CAPSULE);
|
||||
}
|
||||
|
||||
if (p_option == "primitive/height") {
|
||||
const ShapeType physics_shape = (ShapeType)p_options["physics/shape_type"].operator int();
|
||||
return generate_physics &&
|
||||
(physics_shape == SHAPE_TYPE_CYLINDER ||
|
||||
physics_shape == SHAPE_TYPE_CAPSULE);
|
||||
(physics_shape == SHAPE_TYPE_CYLINDER ||
|
||||
physics_shape == SHAPE_TYPE_CAPSULE);
|
||||
}
|
||||
} break;
|
||||
case INTERNAL_IMPORT_CATEGORY_MESH: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue