From 313c458b9ee38da28bfe500e2bf0e04600dfc0cc Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 22 Sep 2015 19:10:41 +0200 Subject: [PATCH] sunmodel: accept animated transformations (even if animations aren't directly supported within SunModel) --- src/emitters/sunsky/sunmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;