mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-08-20 00:49:25 +08:00
Paste into different files bug fix, multiple selection clone bug fix, fix for collisions editing crash
This commit is contained in:
parent
3f24a234e6
commit
acba388358
@ -1502,7 +1502,6 @@ namespace CodeWalker.Project
|
|||||||
public object NewObject(MapSelection sel, bool copyPosition = false, bool selectNew = true)
|
public object NewObject(MapSelection sel, bool copyPosition = false, bool selectNew = true)
|
||||||
{
|
{
|
||||||
//general method to add a new object, given a map selection
|
//general method to add a new object, given a map selection
|
||||||
SetObject(ref sel);
|
|
||||||
if (sel.MultipleSelectionItems != null)
|
if (sel.MultipleSelectionItems != null)
|
||||||
{
|
{
|
||||||
var objs = new List<object>();
|
var objs = new List<object>();
|
||||||
@ -6789,6 +6788,12 @@ namespace CodeWalker.Project
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ((sel.MultipleSelectionItems != null) && (sel.MultipleSelectionItems.Length > 0))
|
||||||
|
{
|
||||||
|
SetObject(ref sel.MultipleSelectionItems[sel.MultipleSelectionItems.Length - 1]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var mlo = sel.MloEntityDef;
|
var mlo = sel.MloEntityDef;
|
||||||
var room = sel.MloRoomDef;
|
var room = sel.MloRoomDef;
|
||||||
var ent = sel.EntityDef;
|
var ent = sel.EntityDef;
|
||||||
|
@ -1765,6 +1765,8 @@ namespace CodeWalker
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateCollisionBoundsGraphics(Bounds b)
|
public void UpdateCollisionBoundsGraphics(Bounds b)
|
||||||
|
{
|
||||||
|
lock (Renderer.RenderSyncRoot)
|
||||||
{
|
{
|
||||||
if (b is BoundBVH bvh)
|
if (b is BoundBVH bvh)
|
||||||
{
|
{
|
||||||
@ -1781,8 +1783,6 @@ namespace CodeWalker
|
|||||||
ib = ib.Parent;
|
ib = ib.Parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
//lock (Renderer.RenderSyncRoot)
|
|
||||||
{
|
|
||||||
Renderer.Invalidate(ib);
|
Renderer.Invalidate(ib);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user