Code cleanup, fixed empty skeleton data errors, renderer materials are updated once with submeshes cached