In a package using TikZ, I'm generating two paths (depending on some option values), which I now need to combine to one path that should be used for `\filldraw`. 
I found [Programming in TikZ](https://tex.stackexchange.com/questions/19715/programming-in-tikz/19720#19720) which really lets me save and restore a path. However, anything I do after the restore does not have any effect on the `\filldraw`. In particular, in the example the `-- cycle` is completely ignored.

Any idea how to save one or two paths in TikZ and then restore and continue or even concatenate two paths?

A simplified example is:

```
\documentclass{article}
\usepackage{tikz}

\begin{document}
\makeatletter

\begin{tikzpicture}
\path[save path=\tmppath] (0,0) -- (2,2) -- (4,1);
\path[save path=\tmppathII] (6,-2) -- (3,-2);

% Effectively, I want the following, but by using \tmppath and \tmppathII:
% \filldraw[color=red,fill=blue] (0,0) -- (2,2) -- (4,1) -- (6,-2) -- (3,-2) -- cycle;

% This properly draws/fills the \tmppath, but does NOT use the -- cycle at all...
\pgfsyssoftpath@setcurrentpath{\tmppath} -- cycle \filldraw[color=red,fill=blue];

% This only draws \tmppathII, not the whole constructed path...
% \pgfsyssoftpath@setcurrentpath{\tmppath} -- 
% \pgfsyssoftpath@setcurrentpath{\tmppathII} -- cycle \filldraw[color=red,fill=blue];

\end{tikzpicture}
\end{document}

```