Cleanup: zero initialize VColRef before setting members

Ensures new members will be zeroed, the compiler is able to optimize
this into identical compiled output.
This commit is contained in:
Campbell Barton 2022-04-06 09:40:13 +10:00
parent 20bb859d9b
commit a776385b26
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static blender::Vector<VColRef> get_vcol_refs(const CustomData *cd_vdata,
continue;
}
VColRef ref;
VColRef ref = {};
ref.domain = domain;
ref.layer = layer;