Skip to content

Commit

Permalink
ShaderEditor support change uniform's name #628
Browse files Browse the repository at this point in the history
  • Loading branch information
timi-liuliang committed Apr 5, 2020
1 parent 88d611d commit 4115872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ namespace DataFlowProgramming
return getDefaultVariableName();
}

void ShaderUniformDataModel::saveUniformConfig(QJsonObject const& p) const
void ShaderUniformDataModel::saveUniformConfig(QJsonObject& p) const
{
p["isParameter"] = Echo::StringUtil::ToString(m_isParameter).c_str();
p["variableName"] = getVariableName().c_str();
}

void ShaderUniformDataModel::restoreUniformConfig(QJsonObject const& p)
void ShaderUniformDataModel::restoreUniformConfig(QJsonObject const &p)
{
QJsonValue v = p["isParameter"];
if (!v.isUndefined())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace DataFlowProgramming
virtual void showMenu(const QPointF& pos);

// uniform config
void saveUniformConfig(QJsonObject const& p) const;
void saveUniformConfig(QJsonObject& p) const;
void restoreUniformConfig(QJsonObject const& p);

public:
Expand Down

0 comments on commit 4115872

Please # to comment.