mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-06-11 17:45:50 +08:00
Fixed grass painting and selection bugs/glitchiness
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user