oops code, having pointers to ID structs that are invalid. This solves at least it crashing... oops needs to be refreshed once :) (occurred on testing complex files, with conversion from nurbs=>mesh)