Cleanup: move comments wrapped with MultiLine control statements
In some cases comments at the end of control statements were wrapped onto new lines which made it read as if they applied to the next line instead of the (now) previous line. Relocate comments to the previous line or in some cases the end of the line (before the brace) to avoid confusion. Note that in quite a few cases these blocks didn't read well even before MultiLine was used as comments after the brace caused wrapping across multiple lines in a way that didn't follow formatting used everywhere else.
This commit is contained in:
@@ -142,8 +142,8 @@ static void read_indices(const tinygltf::Accessor &accessor,
|
||||
}
|
||||
|
||||
constexpr size_t component_size_bytes = sizeof(TSrcIndex);
|
||||
if (buffer_view.byteStride != 0 && buffer_view.byteStride != component_size_bytes)
|
||||
{ /* Index buffer must be packed per glTF spec. */
|
||||
/* Index buffer must be packed per glTF spec. */
|
||||
if (buffer_view.byteStride != 0 && buffer_view.byteStride != component_size_bytes) {
|
||||
throw GHOST_XrException(
|
||||
"glTF: Accessor for indices uses bufferview with invalid 'byteStride'.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user