Skip to content

Commit b5f41d7

Browse files
Added check for null image var when loading from file, if null, allocates a small texture first
1 parent b2da4a0 commit b5f41d7

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
ChangeLog
22

3+
0.1.9.10 (unreleased)
4+
Added check for null image var when loading from file, if null, allocates a small texture first
5+
36
0.1.9.9
47
Release to get AssemblyFileVersion set properly, no functional change
58

GameData/001_ToolbarControl/ToolbarControl.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"MAJOR": 0,
1111
"MINOR": 1,
1212
"PATCH": 9,
13-
"BUILD": 8
13+
"BUILD": 10
1414
},
1515
"KSP_VERSION": {
1616
"MAJOR": 1,

ToolbarControl.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"MAJOR": 0,
1111
"MINOR": 1,
1212
"PATCH": 9,
13-
"BUILD": 9
13+
"BUILD": 10
1414
},
1515
"KSP_VERSION": {
1616
"MAJOR": 1,

ToolbarControl/AssemblyVersion.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
using System.Reflection;
1212

13-
[assembly: AssemblyVersion("0.1.9.8")]
14-
[assembly: AssemblyFileVersion("0.1.9.8")]
13+
[assembly: AssemblyVersion("0.1.9.10")]
14+
[assembly: AssemblyFileVersion("0.1.9.10")]

ToolbarControl/ToolbarControl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,10 @@ public static Boolean LoadImageFromFile(ref Texture2D tex, String fileNamePath)
612612
{
613613

614614
Boolean blnReturn = false;
615+
if (tex == null)
616+
{
617+
tex = new Texture2D(16, 16, TextureFormat.ARGB32, false);
618+
}
615619
bool dds = false;
616620
try
617621
{

0 commit comments

Comments
 (0)