Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed another Update bug for issue #4

  • Loading branch information...
commit 0153cfc954f7a1d353458f610ca64a76bdc027ca 1 parent 4a78c8d
@ericraue authored
Showing with 3 additions and 12 deletions.
  1. +3 −12 assets/RagePixel/editor/RagePixelSpriteSheetEditorWindow.cs
View
15 assets/RagePixel/editor/RagePixelSpriteSheetEditorWindow.cs
@@ -511,10 +511,7 @@ public void OnGUI()
GUILayout.BeginVertical();
if(GUI.Button(new Rect(5, y, 180f, 19f), "Update Selected Frame"))
{
- if(newTexture != null)
- {
- UpdateSprite(SpriteSheetUpdateTarget.SelectedFrame);
- }
+ UpdateSprite(SpriteSheetUpdateTarget.SelectedFrame);
}
/*
if(GUI.Button(new Rect(190, y, 180f, 19f), "Save Frame to Source"))
@@ -528,19 +525,13 @@ public void OnGUI()
y += 21;
if(GUI.Button(new Rect(5, y, 180f, 19f), "Update Selected Sprite"))
{
- if(newTexture != null)
- {
- UpdateSprite(SpriteSheetUpdateTarget.SelectedSprite);
- }
+ UpdateSprite(SpriteSheetUpdateTarget.SelectedSprite);
}
y += 21;
if(GUI.Button(new Rect(5, y, 180f, 19f), "Update All Sprites"))
{
- if(newTexture != null)
- {
- UpdateSprite(SpriteSheetUpdateTarget.AllSprites);
- }
+ UpdateSprite(SpriteSheetUpdateTarget.AllSprites);
}
GUILayout.EndVertical();
}
Please sign in to comment.
Something went wrong with that request. Please try again.