Whoops, how did that not break stuff?
This commit is contained in:
@@ -14,6 +14,9 @@ fn onStep(node: opaque) {
|
||||
if (counter >= 60) {
|
||||
counter = 0;
|
||||
node.incrementCurrentNodeFrame();
|
||||
print "---";
|
||||
print node.getCurrentNodeFrame();
|
||||
print node.getNodeFrames();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -514,7 +514,7 @@ static int nativeGetNodeFrames(Toy_Interpreter* interpreter, Toy_LiteralArray* a
|
||||
Box_EngineNode* node = (Box_EngineNode*)TOY_AS_OPAQUE(nodeLiteral);
|
||||
Toy_Literal framesLiteral = TOY_TO_INTEGER_LITERAL(node->frames);
|
||||
|
||||
Toy_pushLiteralArray(interpreter, framesLiteral);
|
||||
Toy_pushLiteralArray(&interpreter->stack, framesLiteral);
|
||||
|
||||
|
||||
//cleanup
|
||||
@@ -589,8 +589,7 @@ static int nativeGetCurrentNodeFrame(Toy_Interpreter* interpreter, Toy_LiteralAr
|
||||
Box_EngineNode* node = (Box_EngineNode*)TOY_AS_OPAQUE(nodeLiteral);
|
||||
Toy_Literal currentFrameLiteral = TOY_TO_INTEGER_LITERAL(node->currentFrame);
|
||||
|
||||
Toy_pushLiteralArray(interpreter, currentFrameLiteral);
|
||||
|
||||
Toy_pushLiteralArray(&interpreter->stack, currentFrameLiteral);
|
||||
|
||||
//cleanup
|
||||
Toy_freeLiteral(nodeLiteral);
|
||||
|
||||
Reference in New Issue
Block a user