Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GER-Space committed Aug 18, 2018
1 parent f53e480 commit 6cf4a1c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Binary file modified GameData/KerbalKonstructs/KerbalKonstructs.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Core/StaticObjects/StaticDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ internal static void UpdateCache(Vector3 playerPos)
else
{
//Log.Normal("Checking Group: " + group.name );
var dist = Vector3.Distance(group.groupCenter.gameObject.transform.position, vPlayerPos);
var dist = Vector3.Distance(group.groupCenter.transform.position, vPlayerPos);
bool isClose = (dist < group.visibilityRange);
Log.Debug("StaticDatabase.updateCache(): group visrange is " + group.visibilityRange.ToString() + " for " + group.name);

Expand Down
6 changes: 6 additions & 0 deletions src/Core/StaticObjects/StaticGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ public void AddStatic(StaticInstance instance)
// instance.pqsCity = null;
// Log.Normal("444");
//}

if (groupCenter == null && instance.Group != "Ungrouped")
{
groupCenter = instance.gameObject;
}

_groupInstances.Add(instance);
groupInstances = _groupInstances.ToArray();
UpdateCacheSettings();
Expand Down
4 changes: 4 additions & 0 deletions src/Editor/StaticsEditorGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,10 @@ internal void SelectMouseObject()
Log.Normal("Try to select Object: " + myHitinstance.gameObject.name);
myHitinstance.HighlightObject(XKCDColors.Green_Yellow);
KerbalKonstructs.instance.selectObject(myHitinstance, true, true, false);
if (!EditorGUI.instance.IsOpen())
{
EditorGUI.instance.Open();
}
}

}
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("1.4.5.4")]
[assembly: AssemblyInformationalVersion("1.4.5.4")]
[assembly: AssemblyFileVersion("1.4.5.5")]
[assembly: AssemblyInformationalVersion("1.4.5.5")]
[assembly: KSPAssembly("KerbalKonstructs", 0, 9)]

0 comments on commit 6cf4a1c

Please sign in to comment.