Skip to content
Permalink
Browse files

[SpriteStudio] Fixes for SpriteStudio to work properly again

  • Loading branch information
xen2 committed Feb 14, 2019
1 parent 2cf773e commit c1522239be6e424a3d0362bd726512a3afb69361
@@ -13,6 +13,6 @@ public class RenderSpriteStudio : RenderObject
public Matrix WorldMatrix;

public SpriteStudioSheet Sheet;
public List<SpriteStudioNodeState> SortedNodes;
public List<SpriteStudioNodeState> SortedNodes = new List<SpriteStudioNodeState>();
}
}
@@ -66,6 +66,9 @@ public override void Prepare(RenderDrawContext context)
foreach (var renderObject in RenderObjects)
{
var renderSpriteStudio = (RenderSpriteStudio)renderObject;
if (!renderObject.Enabled)
continue;

var sprites = renderSpriteStudio.Sheet.Sprites;
if (sprites == null)
continue;

0 comments on commit c152223

Please sign in to comment.
You can’t perform that action at this time.