diff options
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_channel_matte.cc')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_channel_matte.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_channel_matte.cc b/source/blender/nodes/composite/nodes/node_composite_channel_matte.cc index e17e85f8b87..2f37eba9f2c 100644 --- a/source/blender/nodes/composite/nodes/node_composite_channel_matte.cc +++ b/source/blender/nodes/composite/nodes/node_composite_channel_matte.cc @@ -130,7 +130,7 @@ class ChannelMatteShaderNode : public ShaderNode { return bnode().custom2 - 1; } - NodeChroma *get_node_chroma() + NodeChroma *get_data() { return static_cast<NodeChroma *>(bnode().storage); } @@ -138,7 +138,7 @@ class ChannelMatteShaderNode : public ShaderNode { /* Get the index of the channel used to compute the limit value. */ int get_limit_channel() { - return get_node_chroma()->channel - 1; + return get_data()->channel - 1; } /* Get the indices of the channels used to compute the limit value. We always assume the limit @@ -146,7 +146,7 @@ class ChannelMatteShaderNode : public ShaderNode { * the maximum of two identical values is is the same value. */ void get_limit_channels(float limit_channels[2]) { - if (get_node_chroma()->algorithm) { + if (get_data()->algorithm) { /* If the algorithm is Max, store the indices of the other two channels other than the matte * channel. */ limit_channels[0] = (get_matte_channel() + 1) % 3; @@ -161,12 +161,12 @@ class ChannelMatteShaderNode : public ShaderNode { float get_max_limit() { - return get_node_chroma()->t1; + return get_data()->t1; } float get_min_limit() { - return get_node_chroma()->t2; + return get_data()->t2; } }; |