Added release function to PoolVector::Access.
For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
This commit is contained in:
parent
0b6b49a897
commit
4e4697b1c4
41 changed files with 102 additions and 114 deletions
|
|
@ -436,10 +436,10 @@ void CSGShape::_update_shape() {
|
|||
}
|
||||
|
||||
// unset write access
|
||||
surfaces.write[i].verticesw = PoolVector<Vector3>::Write();
|
||||
surfaces.write[i].normalsw = PoolVector<Vector3>::Write();
|
||||
surfaces.write[i].uvsw = PoolVector<Vector2>::Write();
|
||||
surfaces.write[i].tansw = PoolVector<float>::Write();
|
||||
surfaces.write[i].verticesw.release();
|
||||
surfaces.write[i].normalsw.release();
|
||||
surfaces.write[i].uvsw.release();
|
||||
surfaces.write[i].tansw.release();
|
||||
|
||||
if (surfaces[i].last_added == 0)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue