Fix source variables not being marked as modified

This commit is contained in:
baldurk
2020-05-05 18:17:43 +01:00
parent 6f90abb6ab
commit 4c195dd93c
+3
View File
@@ -3287,6 +3287,9 @@ RDTreeWidgetItem *ShaderViewer::makeSourceVariableNode(const SourceVariableMappi
for(RDTreeWidgetItem *c : children)
node->addChild(c);
if(modified)
node->setForegroundColor(QColor(Qt::red));
node->setTag(QVariant::fromValue(VariableTag(localName, l.offset, globalVarIdx, localVarIdx)));
return node;