Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakowalski <makowalski@nvidia.com>2021-07-28 03:39:07 +0300
committermakowalski <makowalski@nvidia.com>2021-07-28 03:39:07 +0300
commitbf908e20ae95ac3e1fef9afd18bf27b4a57d826c (patch)
treef615d8638e81949b8556f0486b30ad76d349b092
parent1c42e28727fb2ce99561c3663c9a22e63a771ec4 (diff)
USD import: convert sun angle to radians
Now converting USD distant light angle from degrees to radians.
-rw-r--r--source/blender/io/usd/intern/usd_reader_light.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_light.cc b/source/blender/io/usd/intern/usd_reader_light.cc
index f62576fcc81..aa4059f7200 100644
--- a/source/blender/io/usd/intern/usd_reader_light.cc
+++ b/source/blender/io/usd/intern/usd_reader_light.cc
@@ -236,7 +236,7 @@ void USDLightReader::read_object_data(Main *bmain, const double motionSampleTime
if (pxr::UsdAttribute angle_attr = distant_light.GetAngleAttr()) {
float angle = 0.0f;
if (angle_attr.Get(&angle, motionSampleTime)) {
- blight->sun_angle = angle;
+ blight->sun_angle = angle * (float)M_PI / 180.0f;
}
}
}