Fix #113864: Compositor translation is doubled
Translations in the realtime compositor are doubled where there is a rotation or scale component. That was due to applying translations even after domain realization. So this patch restricts the translation to the case where domain realization doesn't take place.
This commit is contained in:
@@ -77,11 +77,10 @@ void transform(Context &context,
|
||||
}
|
||||
else {
|
||||
input.pass_through(output);
|
||||
const float3x3 translation_matrix = math::from_location<float3x3>(translation);
|
||||
output.transform(translation_matrix);
|
||||
}
|
||||
|
||||
/* Translation transformations are delayed and are only stored in the result. */
|
||||
const float3x3 translation_matrix = math::from_location<float3x3>(translation);
|
||||
output.transform(translation_matrix);
|
||||
output.get_realization_options().interpolation = interpolation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user