public override void OnConnectedOutputNodeChanges(int outputPortId, int otherNodeId, int otherPortId, string name, WirePortDataType type) { base.OnConnectedOutputNodeChanges(outputPortId, otherNodeId, otherPortId, name, type); if (!m_texPort.CheckValidType(type)) { m_texPort.FullDeleteConnections(); UIUtils.ShowMessage(UniqueId, "Dithering node only accepts SAMPLER2D input type.\nTexture Object connected changed to " + type + ", connection was lost, please review and update accordingly.", MessageSeverity.Warning); } }
public override void OnConnectedOutputNodeChanges(int outputPortId, int otherNodeId, int otherPortId, string name, WirePortDataType type) { base.OnConnectedOutputNodeChanges(outputPortId, otherNodeId, otherPortId, name, type); if (!m_texPort.CheckValidType(type)) { m_texPort.FullDeleteConnections(); UIUtils.ShowMessage(UniqueId, "Parallax Occlusion Mapping node only accepts SAMPLER2D, SAMPLER3D and SAMPLER2DARRAY input types.\nTexture Object connected changed to " + type + ", connection was lost, please review and update accordingly.", MessageSeverity.Warning); } else { m_texPort.MatchPortToConnection(); } UpdateIndexPort(); }