Permalink
Browse files

Make Vector3 field for waypoint position actually editable.

  • Loading branch information...
Jon Frisby Jon Frisby
Jon Frisby authored and Jon Frisby committed Dec 18, 2009
1 parent e555225 commit 2497c635bec086b7266d7be46b5c2ebcdd9d70d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Inspector.cs
View
@@ -92,7 +92,6 @@ public Inspector()
}
private static void Spacer() {
-// GUILayout.Space( 30.0f );
EditorGUILayout.Separator();
}
@@ -340,7 +339,8 @@ public void OnNodeGUI( IInspector inspector )
newVector3 = EditorGUILayout.Vector3Field( "Position", ( Editor.Instance.SelectedNode[ 0 ] as WaypointAsset ).Position );
if( ( Editor.Instance.SelectedNode[ 0 ] as WaypointAsset ).Position != newVector3 )
{
- Editor.Instance.SaveCollection();
+ ( Editor.Instance.SelectedNode[ 0 ] as WaypointAsset ).Position = newVector3;
+ Editor.Instance.SaveCollection();
}
/*

0 comments on commit 2497c63

Please sign in to comment.