Просмотр исходного кода

TSL: Fixed persistent reference of the first stack (#31717)

sunag 9 месяцев назад
Родитель
Сommit
a3c3c2646a
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/nodes/core/NodeBuilder.js

+ 3 - 1
src/nodes/core/NodeBuilder.js

@@ -1575,7 +1575,9 @@ class NodeBuilder {
 
 		this.stack = stack( this.stack );
 
-		this.stacks.push( getCurrentStack() || this.stack );
+		const previousStack = getCurrentStack();
+
+		this.stacks.push( previousStack );
 		setCurrentStack( this.stack );
 
 		return this.stack;

粤ICP备19079148号