Fixed crash when editing grass

This commit is contained in:
dexy 2020-01-06 23:21:32 +11:00
parent 33dc83c0e0
commit edba2cfae9

View File

@ -245,7 +245,7 @@ namespace CodeWalker.Project.Panels
var wf = ProjectForm.WorldForm;
if (wf == null) return;
//lock (wf.RenderSyncRoot)
lock (wf.RenderSyncRoot)
{
CurrentBatch.CreateInstancesAtMouse(
CurrentBatch,
@ -270,7 +270,7 @@ namespace CodeWalker.Project.Panels
var wf = ProjectForm.WorldForm;
if (wf == null) return;
var changed = false;
//lock (wf.RenderSyncRoot)
lock (wf.RenderSyncRoot)
{
if (CurrentBatch.EraseInstancesAtMouse(
CurrentBatch,