mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-08-18 16:12:05 +08:00
Merge pull request #134 from pnwparksfan/path-copy-fixes
Fixes for traffic path node editing in world view
This commit is contained in:
commit
b10894ebdb
@ -1365,7 +1365,7 @@ namespace CodeWalker
|
|||||||
}
|
}
|
||||||
foreach (var kvp in pathYnds)
|
foreach (var kvp in pathYnds)
|
||||||
{
|
{
|
||||||
wf.UpdatePathYndGraphics(kvp.Key, true);
|
wf.UpdatePathYndGraphics(kvp.Key, false);
|
||||||
}
|
}
|
||||||
foreach (var kvp in navYnvs)
|
foreach (var kvp in navYnvs)
|
||||||
{
|
{
|
||||||
@ -1399,7 +1399,7 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
if (PathNode != null)
|
if (PathNode != null)
|
||||||
{
|
{
|
||||||
wf.UpdatePathYndGraphics(PathNode.Ynd, true);
|
wf.UpdatePathYndGraphics(PathNode.Ynd, false);
|
||||||
}
|
}
|
||||||
if (NavPoly != null)
|
if (NavPoly != null)
|
||||||
{
|
{
|
||||||
|
@ -1860,6 +1860,7 @@ namespace CodeWalker
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
ynd.UpdateAllNodePositions();
|
||||||
space.BuildYndVerts(ynd);
|
space.BuildYndVerts(ynd);
|
||||||
}
|
}
|
||||||
//lock (Renderer.RenderSyncRoot)
|
//lock (Renderer.RenderSyncRoot)
|
||||||
@ -5870,9 +5871,18 @@ namespace CodeWalker
|
|||||||
GrabbedWidget = Widget;
|
GrabbedWidget = Widget;
|
||||||
GrabbedWidget.IsDragging = true;
|
GrabbedWidget.IsDragging = true;
|
||||||
if (Input.ShiftPressed)
|
if (Input.ShiftPressed)
|
||||||
|
{
|
||||||
|
var ms = CurrentMapSelection.MultipleSelectionItems;
|
||||||
|
if (ms?.Length > 0 && ms[0].PathNode != null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("You cannot clone multiple path nodes at once", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
GrabbedWidget.IsDragging = false;
|
||||||
|
GrabbedWidget = null;
|
||||||
|
} else
|
||||||
{
|
{
|
||||||
CloneItem();
|
CloneItem();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
MarkUndoStart(GrabbedWidget);
|
MarkUndoStart(GrabbedWidget);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user