morphTargets property
MorphTargetData?
get
morphTargets
The morph target data of this mesh's first morphed primitive, or null when no primitive carries targets. Every primitive of an imported mesh shares one target count and order (the importers validate it), so the first primitive's names, defaults, and count speak for the whole mesh.
Implementation
MorphTargetData? get morphTargets {
for (final p in primitives) {
final data = p.geometry.morphTargets;
if (data != null) return data;
}
return null;
}