mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-08-20 00:49:25 +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;
|
var wf = ProjectForm.WorldForm;
|
||||||
if (wf == null) return;
|
if (wf == null) return;
|
||||||
|
|
||||||
//lock (wf.RenderSyncRoot)
|
lock (wf.RenderSyncRoot)
|
||||||
{
|
{
|
||||||
CurrentBatch.CreateInstancesAtMouse(
|
CurrentBatch.CreateInstancesAtMouse(
|
||||||
CurrentBatch,
|
CurrentBatch,
|
||||||
@ -270,7 +270,7 @@ namespace CodeWalker.Project.Panels
|
|||||||
var wf = ProjectForm.WorldForm;
|
var wf = ProjectForm.WorldForm;
|
||||||
if (wf == null) return;
|
if (wf == null) return;
|
||||||
var changed = false;
|
var changed = false;
|
||||||
//lock (wf.RenderSyncRoot)
|
lock (wf.RenderSyncRoot)
|
||||||
{
|
{
|
||||||
if (CurrentBatch.EraseInstancesAtMouse(
|
if (CurrentBatch.EraseInstancesAtMouse(
|
||||||
CurrentBatch,
|
CurrentBatch,
|
||||||
|
Loading…
Reference in New Issue
Block a user