mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 03:28:30 +08:00
Fixed crash when editing grass
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user