Skip to content

[surface model] Fix flip of common surfaces, add missing operator

The flip of the common surface must be decided after the frames are reordered, as the transformation of the first frame (after reordering) is used to determine the transformation of the common surface.

Additionally, a missing operator was added, which caused an undesired casting in line

if (fCPUdata.fCommonSurfaces[id].fDefaultState != parent_state_index) {

Which would lead to an incorrect parent_state_index (as with the casting, it was always level 0).

The rest of the MR is just clang formatting.

Merge request reports