// When transferring weights from a dynamic mesh with bone attributes to a dynamic mesh without bone attributes, // first copy over the bone attributes from the source to the target. if (!TargetMesh.HasAttributes() || !TargetMesh.Attributes()->HasBones()) { TargetMesh.EnableAttributes(); TargetMesh.Attributes()->CopyBoneAttributes(*SourceMesh.Attributes()); }