Merge branch 'blender-v4.2-release'
This commit is contained in:
@@ -12,7 +12,7 @@ ExternalProject_Add(external_fribidi
|
||||
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
||||
PREFIX ${BUILD_DIR}/fribidi
|
||||
|
||||
CONFIGURE_COMMAND
|
||||
CONFIGURE_COMMAND ${CONFIGURE_ENV} &&
|
||||
${MESON} setup
|
||||
--prefix ${LIBDIR}/fribidi
|
||||
${MESON_BUILD_TYPE}
|
||||
|
||||
Submodule lib/windows_arm64 updated: 06a9cd56a2...181d15c1c6
@@ -12,6 +12,8 @@
|
||||
#include <pxr/base/gf/rotation.h>
|
||||
#include <pxr/base/gf/vec3f.h>
|
||||
#include <pxr/usd/ar/packageUtils.h>
|
||||
#include <pxr/usd/usdGeom/metrics.h>
|
||||
#include <pxr/usd/usdGeom/tokens.h>
|
||||
#include <pxr/usd/usdGeom/xformCache.h>
|
||||
#include <pxr/usd/usdGeom/xformCommonAPI.h>
|
||||
#include <pxr/usd/usdLux/domeLight.h>
|
||||
@@ -533,6 +535,19 @@ void dome_light_to_world_material(const USDImportParams ¶ms,
|
||||
pxr::UsdGeomXformCache xf_cache(motionSampleTime);
|
||||
pxr::GfMatrix4d xf = xf_cache.GetLocalToWorldTransform(dome_light.GetPrim());
|
||||
|
||||
pxr::UsdStageRefPtr stage = dome_light.GetPrim().GetStage();
|
||||
|
||||
if (!stage) {
|
||||
CLOG_WARN(
|
||||
&LOG, "Couldn't get stage for dome light %s", dome_light.GetPrim().GetPath().GetText());
|
||||
return;
|
||||
}
|
||||
|
||||
if (pxr::UsdGeomGetStageUpAxis(stage) == pxr::UsdGeomTokens->y) {
|
||||
/* Convert from Y-up to Z-up with a 90 degree rotation about the X-axis. */
|
||||
xf *= pxr::GfMatrix4d().SetRotate(pxr::GfRotation(pxr::GfVec3d(1.0, 0.0, 0.0), 90.0));
|
||||
}
|
||||
|
||||
xf = pxr::GfMatrix4d().SetRotate(pxr::GfRotation(pxr::GfVec3d(0.0, 0.0, 1.0), -90.0)) *
|
||||
pxr::GfMatrix4d().SetRotate(pxr::GfRotation(pxr::GfVec3d(1.0, 0.0, 0.0), -90.0)) * xf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user