Editing points and portals in navmesh, improved DX error message

This commit is contained in:
dexyfex
2018-03-14 12:36:43 +11:00
Unverified
parent 761278fd0b
commit 8b72fc1220
20 changed files with 2931 additions and 169 deletions
+6 -2
View File
@@ -587,7 +587,7 @@ namespace CodeWalker
}
else if (NavPortal != null)
{
return Quaternion.Identity;
return NavPortal.Orientation;
}
else if (PathNode != null)
{
@@ -634,7 +634,7 @@ namespace CodeWalker
}
else if (NavPortal != null)
{
return WidgetAxis.None;
return WidgetAxis.Z;
}
else if (PathNode != null)
{
@@ -787,6 +787,10 @@ namespace CodeWalker
{
NavPoint.SetOrientation(newrot);
}
else if (NavPortal != null)
{
NavPortal.SetOrientation(newrot);
}
else if (Audio != null)
{
Audio.SetOrientation(newrot);