Skip to content

Commit

Permalink
Add const keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Oct 15, 2023
1 parent 600ad7c commit 0d31e0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions source/MaterialXGenShader/Nodes/HwTransformNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

MATERIALX_NAMESPACE_BEGIN

string HwTransformNode::FROM_SPACE = "fromspace";
string HwTransformNode::TO_SPACE = "tospace";
string HwTransformNode::MODEL = "model";
string HwTransformNode::OBJECT = "object";
string HwTransformNode::WORLD = "world";
const string HwTransformNode::FROM_SPACE = "fromspace";
const string HwTransformNode::TO_SPACE = "tospace";
const string HwTransformNode::MODEL = "model";
const string HwTransformNode::OBJECT = "object";
const string HwTransformNode::WORLD = "world";

void HwTransformNode::createVariables(const ShaderNode& node, GenContext&, Shader& shader) const
{
Expand Down
10 changes: 5 additions & 5 deletions source/MaterialXGenShader/Nodes/HwTransformNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class MX_GENSHADER_API HwTransformNode : public ShaderNodeImpl
virtual string getFromSpace(const ShaderNode&) const;
virtual string getToSpace(const ShaderNode&) const;

static string FROM_SPACE;
static string TO_SPACE;
static string MODEL;
static string OBJECT;
static string WORLD;
static const string FROM_SPACE;
static const string TO_SPACE;
static const string MODEL;
static const string OBJECT;
static const string WORLD;
};

class MX_GENSHADER_API HwTransformVectorNode : public HwTransformNode
Expand Down

0 comments on commit 0d31e0c

Please sign in to comment.