mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- invalidate plane meshes when the sector is retriangulated.
After this any old mesh has become invalid and needs to be rebuilt.
This commit is contained in:
parent
37e49ed775
commit
d8a3035bcc
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,6 @@
|
||||||
#include "earcut.hpp"
|
#include "earcut.hpp"
|
||||||
#include "hw_sections2.h"
|
#include "hw_sections2.h"
|
||||||
#include "tesselator.h"
|
#include "tesselator.h"
|
||||||
#include "nodebuilder/nodebuild.h"
|
|
||||||
|
|
||||||
SectorGeometry sectorGeometry;
|
SectorGeometry sectorGeometry;
|
||||||
SectionGeometry sectionGeometry;
|
SectionGeometry sectionGeometry;
|
||||||
|
@ -498,7 +497,10 @@ bool SectionGeometry::CreateMesh(Section* section)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
sdata.planes[0].vertices.Clear();
|
||||||
|
sdata.planes[1].vertices.Clear();
|
||||||
section->dirty &= ~EDirty::GeometryDirty;
|
section->dirty &= ~EDirty::GeometryDirty;
|
||||||
|
section->dirty |= EDirty::FloorDirty | EDirty::CeilingDirty;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue