Some adjustments
This commit is contained in:
parent
554f4b17a0
commit
7efbad2ae9
@ -71,7 +71,7 @@ namespace FirstPlugin
|
|||||||
|
|
||||||
public void Load(System.IO.Stream stream)
|
public void Load(System.IO.Stream stream)
|
||||||
{
|
{
|
||||||
CanSave = true;
|
CanSave = false;
|
||||||
|
|
||||||
header = new Header();
|
header = new Header();
|
||||||
header.Read(new FileReader(stream));
|
header.Read(new FileReader(stream));
|
||||||
|
@ -109,9 +109,9 @@ namespace Toolbox.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var bitmap = Textures[i].GetBitmap();
|
var bitmap = Textures[i].GetBitmap();
|
||||||
bitmap = Textures[i].GetComponentBitmap(bitmap);
|
|
||||||
if (bitmap != null)
|
if (bitmap != null)
|
||||||
{
|
{
|
||||||
|
bitmap = Textures[i].GetComponentBitmap(bitmap);
|
||||||
string textureName = Textures[i].Text;
|
string textureName = Textures[i].Text;
|
||||||
if (textureName.RemoveIllegaleFileNameCharacters() != textureName)
|
if (textureName.RemoveIllegaleFileNameCharacters() != textureName)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user