mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 08:52:52 +08:00
Fixed crash when editing grass
This commit is contained in:
parent
33dc83c0e0
commit
edba2cfae9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user