From ec737378594e38a763e220cc8f07fa86ba8c6b98 Mon Sep 17 00:00:00 2001 From: syntheticmagus <33846034+syntheticmagus@users.noreply.github.com> Date: Fri, 28 May 2021 18:24:59 -0700 Subject: [PATCH] Add setters for true and false blocks of selection nodes, copying the pattern already used for the condition. --- glslang/Include/intermediate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glslang/Include/intermediate.h b/glslang/Include/intermediate.h index f50d3ba..677b090 100644 --- a/glslang/Include/intermediate.h +++ b/glslang/Include/intermediate.h @@ -1677,7 +1677,9 @@ public: virtual TIntermTyped* getCondition() const { return condition; } virtual void setCondition(TIntermTyped* c) { condition = c; } virtual TIntermNode* getTrueBlock() const { return trueBlock; } + virtual void setTrueBlock(TIntermTyped* tb) { trueBlock = tb; } virtual TIntermNode* getFalseBlock() const { return falseBlock; } + virtual void setFalseBlock(TIntermTyped* fb) { falseBlock = fb; } virtual TIntermSelection* getAsSelectionNode() { return this; } virtual const TIntermSelection* getAsSelectionNode() const { return this; } -- 2.7.4