Skip to content

Commit c159985

Browse files
authored
Merge pull request #1390 from ivanimanishi/ieBuildFixes
10.5 Build Fixes (for IE)
2 parents fb7f16e + 0738593 commit c159985

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
10.5.x.x (relative to 10.5.2.0)
22
========
33

4+
Build
5+
---
6+
7+
- SConstruct : Make sure VDB includes can be found
8+
- USDScene : Fix build for older USD versions
49

510
10.5.2.0 (relative to 10.5.1.0)
611
========

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3043,11 +3043,11 @@ if doConfigure :
30433043
)
30443044

30453045
if haveVDB :
3046+
usdEnv.Prepend( **vdbEnvPrepends )
30463047
usdEnv.Append(
30473048
LIBS = [
30483049
os.path.basename( vdbEnv.subst( "$INSTALL_LIB_NAME" ) ),
30493050
"${USD_LIB_PREFIX}usdVol",
3050-
vdbEnv.subst( "openvdb" + env["VDB_LIB_SUFFIX"] )
30513051
],
30523052
CPPDEFINES = [ "IECOREUSD_WITH_OPENVDB" ]
30533053
)

contrib/IECoreUSD/src/IECoreUSD/USDScene.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ void USDScene::writeAttribute( const SceneInterface::Name &name, const Object *a
12061206
}
12071207
else if( const IECoreScene::ShaderNetwork *shaderNetwork = runTimeCast<const ShaderNetwork>( attribute ) )
12081208
{
1209+
#if PXR_VERSION >= 2111
12091210
if( name == g_lightAttributeName )
12101211
{
12111212
ShaderAlgo::writeLight( shaderNetwork, m_location->prim );
@@ -1215,6 +1216,10 @@ void USDScene::writeAttribute( const SceneInterface::Name &name, const Object *a
12151216
const auto &[output, purpose] = materialOutputAndPurpose( name.string() );
12161217
m_materials[purpose][output] = shaderNetwork;
12171218
}
1219+
#else
1220+
const auto &[output, purpose] = materialOutputAndPurpose( name.string() );
1221+
m_materials[purpose][output] = shaderNetwork;
1222+
#endif
12181223
}
12191224
else if( name.string() == "gaffer:globals" )
12201225
{

0 commit comments

Comments
 (0)