Cleanup: quiet GCC parentheses warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user