Fixed grass painting and selection bugs/glitchiness

This commit is contained in:
dexy
2018-12-07 13:41:18 +11:00
Unverified
parent 05d3e37394
commit 1e2e927cf6
4 changed files with 24 additions and 7 deletions
+2
View File
@@ -2081,6 +2081,8 @@ namespace CodeWalker.Rendering
if (!(rndbl.IsLoaded && (rndbl.AllTexturesLoaded || !waitforchildrentoload))) continue; //not loaded yet
if ((instb == null) || !instb.IsLoaded) continue;
instb.CamRel = instb.Position - camera.Position;//to gracefully handle batch size changes
RenderableInstanceBatchInst binst = new RenderableInstanceBatchInst();
binst.Batch = instb;
binst.Renderable = rndbl;