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(
|
return computeSunCoordinates(
|
||||||
props.getVector("sunDirection"),
|
props.getVector("sunDirection"),
|
||||||
props.getTransform("toWorld", Transform()).inverse());
|
props.getAnimatedTransform("toWorld", Transform())->eval(0).inverse());
|
||||||
} else {
|
} else {
|
||||||
LocationRecord location;
|
LocationRecord location;
|
||||||
DateTimeRecord dateTime;
|
DateTimeRecord dateTime;
|
||||||
|
|
Loading…
Reference in New Issue