Skip to content

Commit 2c9a9c7

Browse files
committed
Merge pull request #15 from Sigma88/Development
Development
2 parents 4511518 + cebbefc commit 2c9a9c7

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**v1.4.9.2**
2+
3+
- Fixed an issue with bodies using cbNameLater
4+
5+
16
**v1.4.9.1**
27

38
- Fixed removal of bodies from the science archives
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"NAME":"Sigma: Binary","URL":"http://ksp-avc.cybutek.net/version.php?id=188","DOWNLOAD":"http://forum.kerbalspaceprogram.com/threads/127820","CHANGE_LOG_URL":"https://github.com/Sigma88/Sigma-Binary/raw/master/Changelog.txt","VERSION":{"MAJOR":1,"MINOR":4,"PATCH":9,"BUILD":1},"KSP_VERSION":{"MAJOR":1,"MINOR":0,"PATCH":5}}
1+
{"NAME":"Sigma: Binary","URL":"http://ksp-avc.cybutek.net/version.php?id=188","DOWNLOAD":"http://forum.kerbalspaceprogram.com/threads/127820","CHANGE_LOG_URL":"https://github.com/Sigma88/Sigma-Binary/raw/master/Changelog.txt","VERSION":{"MAJOR":1,"MINOR":4,"PATCH":9,"BUILD":2},"KSP_VERSION":{"MAJOR":1,"MINOR":0,"PATCH":5}}
0 Bytes
Binary file not shown.

[Source]/SigmaBinary/SigmaBinary.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,18 @@ void Start()
178178
sbOrbit.orbit.referenceBody = sbBarycenter;
179179
sbOrbit.orbitDriver.orbitColor = body.orbitDriver.orbitColor;
180180

181-
if (Kopernicus.Templates.drawMode.ContainsKey(body.name))
182-
Kopernicus.Templates.drawMode.Remove(body.name);
183-
Kopernicus.Templates.drawMode.Add(body.name, OrbitRenderer.DrawMode.REDRAW_AND_FOLLOW);
181+
if (body.GetComponent<NameChanger>())
182+
{
183+
if (Kopernicus.Templates.drawMode.ContainsKey(body.GetComponent<NameChanger>().oldName))
184+
Kopernicus.Templates.drawMode.Remove(body.GetComponent<NameChanger>().oldName);
185+
Kopernicus.Templates.drawMode.Add(body.GetComponent<NameChanger>().oldName, OrbitRenderer.DrawMode.REDRAW_AND_FOLLOW);
186+
}
187+
else
188+
{
189+
if (Kopernicus.Templates.drawMode.ContainsKey(body.name))
190+
Kopernicus.Templates.drawMode.Remove(body.name);
191+
Kopernicus.Templates.drawMode.Add(body.name, OrbitRenderer.DrawMode.REDRAW_AND_FOLLOW);
192+
}
184193
}
185194

186195

0 commit comments

Comments
 (0)