diff --git a/src/emitters/sunsky/sunmodel.h b/src/emitters/sunsky/sunmodel.h index 11b50351..049d5fbe 100644 --- a/src/emitters/sunsky/sunmodel.h +++ b/src/emitters/sunsky/sunmodel.h @@ -218,7 +218,7 @@ SphericalCoordinates computeSunCoordinates(const Properties &props) { return computeSunCoordinates( props.getVector("sunDirection"), - props.getTransform("toWorld", Transform()).inverse()); + props.getAnimatedTransform("toWorld", Transform())->eval(0).inverse()); } else { LocationRecord location; DateTimeRecord dateTime;