sunmodel: accept animated transformations (even if animations aren't directly supported within SunModel)

metadata
Wenzel Jakob 2015-09-22 19:10:41 +02:00
parent 4558b25a55
commit 313c458b9e
1 changed files with 1 additions and 1 deletions

View File

@ -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;