Cleanup: quiet GCC parentheses warning

This commit is contained in:
Campbell Barton
2024-12-13 09:01:13 +11:00
parent e56c9fc342
commit f7ce3a23fe

View File

@@ -193,7 +193,7 @@ static Vector<int> get_grease_pencil_material_passes(const Object *ob)
Vector<int> result(*totcol, 0);
Material *ma = nullptr;
for (short i = 0; i < *totcol; i++) {
if (ma = BKE_object_material_get(const_cast<Object *>(ob), i + 1)) {
if ((ma = BKE_object_material_get(const_cast<Object *>(ob), i + 1))) {
/* Pass index of the grease pencil material. */
result[i] = ma->gp_style->index;
}