sunmodel: accept animated transformations (even if animations aren't directly supported within SunModel)
parent
4558b25a55
commit
313c458b9e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue