Skip to content

Commit

Permalink
added check for nullptr and %s
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomare-ilm committed Oct 13, 2023
1 parent 65e5b3f commit 271f9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaterialXGraphEditor/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3731,11 +3731,11 @@ void Graph::addPinPopup() {
connected = connected + " out";
}
}
else {
else if(pin->_input != nullptr) {
value = "\nValue: " + pin->_input->getValueString();
}
std::string const message{ "Name: " + pin->_name + "\nType: " + pin->_type + value + connected};
ImGui::SetTooltip(message.c_str());
ImGui::SetTooltip("%s", message.c_str());
ed::Resume();
}
}
Expand Down

0 comments on commit 271f9e6

Please sign in to comment.