source code from https://svn.blender.org/svnroot/yofrankie/trunk