MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ propagate_world_transforms()

void MayaFlux::Nodes::Network::MeshNetwork::propagate_world_transforms ( )
private

Definition at line 226 of file MeshNetwork.cpp.

227{
228 for (uint32_t idx : m_sorted_indices) {
229 auto& slot = m_slots[idx];
230 if (slot.parent_index.has_value()) {
231 slot.world_transform
232 = m_slots[slot.parent_index.value()].world_transform
233 * slot.local_transform;
234 } else {
235 slot.world_transform = slot.local_transform;
236 }
237 }
238}
std::vector< uint32_t > m_sorted_indices
Processing order: indices into m_slots, parents before children.

References m_slots, and m_sorted_indices.

Referenced by process_batch().

+ Here is the caller graph for this function: