Style: Apply clang-tidy's readability-braces-around-statements
This commit is contained in:
@@ -260,8 +260,9 @@ T EditorSceneImporterFBX::_interpolate_track(const Vector<float> &p_times, const
|
||||
//could use binary search, worth it?
|
||||
int idx = -1;
|
||||
for (int i = 0; i < p_times.size(); i++) {
|
||||
if (p_times[i] > p_time)
|
||||
if (p_times[i] > p_time) {
|
||||
break;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
|
||||
@@ -610,8 +611,9 @@ Node3D *EditorSceneImporterFBX::_generate_scene(
|
||||
for (const FBXDocParser::Geometry *mesh : geometry) {
|
||||
print_verbose("[doc] [" + itos(mesh->ID()) + "] mesh: " + fbx_node->node_name);
|
||||
|
||||
if (mesh == nullptr)
|
||||
if (mesh == nullptr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const FBXDocParser::MeshGeometry *mesh_geometry = dynamic_cast<const FBXDocParser::MeshGeometry *>(mesh);
|
||||
if (mesh_geometry) {
|
||||
|
||||
Reference in New Issue
Block a user