fixed save not working on new files

fix for #1026 / MAGN-1149
model curves from curve loop
Merge branch 'master' into ChocoButter-2Become1