Skip to content

Commit 64a9680

Browse files
authored
Merge pull request #1322 from ImageEngine/RB-10.4
Merge RB-10.4 onto main
2 parents 4c63bfa + a299df4 commit 64a9680

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

Changes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
10.4.3.1 (relative to 10.4.3.0)
2+
========
3+
4+
Fixes
5+
---
6+
7+
- IECoreMaya.SceneShapeSubSceneOverride : Visibility override fixes (#1320).
8+
- Removed SceneInterface visibility check, as it is now obsolete and causing issues.
9+
- Check visibility for root locations, so bounds aren't incorrectly drawn.
10+
- VDBObject : Fixed infinite recursion in isEqualTo() (#1314).
11+
112
10.4.3.0 (relative to 10.4.2.1)
213
========
314

@@ -135,6 +146,16 @@ Build
135146

136147
- Updated IE options file to support Nuke 13.x custom dependencies (#1263).
137148

149+
10.3.8.1 (relative to 10.3.8.0)
150+
========
151+
152+
Fixes
153+
---
154+
155+
- IECoreMaya.SceneShapeSubSceneOverride : Visibility override fixes (#1320).
156+
- Removed SceneInterface visibility check, as it is now obsolete and causing issues.
157+
- Check visibility for root locations, so bounds aren't incorrectly drawn.
158+
138159
10.3.8.0 (relative to 10.3.7.2)
139160
========
140161

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SConsignFile()
5757
ieCoreMilestoneVersion = 10 # for announcing major milestones - may contain all of the below
5858
ieCoreMajorVersion = 4 # backwards-incompatible changes
5959
ieCoreMinorVersion = 3 # new backwards-compatible features
60-
ieCorePatchVersion = 0 # bug fixes
60+
ieCorePatchVersion = 1 # bug fixes
6161
ieCoreVersionSuffix = "" # used for alpha/beta releases. Example: "a1", "b2", etc.
6262

6363
###########################################################################################

src/IECoreMaya/SceneShapeSubSceneOverride.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,16 +1418,6 @@ void SceneShapeSubSceneOverride::visitSceneLocations( const SceneInterface *scen
14181418
return;
14191419
}
14201420

1421-
// respect visibility attribute
1422-
if( sceneInterface->hasAttribute( SceneInterface::visibilityName ) )
1423-
{
1424-
ConstBoolDataPtr vis = runTimeCast<const BoolData>( sceneInterface->readAttribute( SceneInterface::visibilityName, m_time ) );
1425-
if( vis && !vis->readable() )
1426-
{
1427-
return;
1428-
}
1429-
}
1430-
14311421
MMatrix accumulatedMatrix;
14321422
if( !isRoot )
14331423
{
@@ -1473,6 +1463,10 @@ void SceneShapeSubSceneOverride::visitSceneLocations( const SceneInterface *scen
14731463
int count = 0;
14741464
for( const auto &instance : m_instances )
14751465
{
1466+
if ( !instance.visible )
1467+
{
1468+
continue;
1469+
}
14761470
std::string instanceName = rootItemName + "_" + std::to_string( count++ );
14771471
MString itemName( instanceName.c_str() );
14781472
MRenderItem *renderItem = acquireRenderItem( container, IECore::NullObject::defaultNullObject(), instance, relativeLocation, bound, itemName, RenderStyle::BoundingBox );

src/IECoreVDB/VDBObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ IECore::CompoundObjectPtr VDBObject::metadata( const std::string &name )
286286

287287
bool VDBObject::isEqualTo( const IECore::Object *other ) const
288288
{
289-
if( !IECoreScene::VisibleRenderable::isNotEqualTo( other ) )
289+
if( !IECoreScene::VisibleRenderable::isEqualTo( other ) )
290290
{
291291
return false;
292292
}

test/IECoreVDB/VDBObjectTest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,16 @@ def testFilename( self ) :
260260
emptyVDB = IECoreVDB.VDBObject()
261261
self.assertEqual( emptyVDB.fileName(), "" )
262262

263+
def testEquality( self ) :
264+
265+
o = IECoreVDB.VDBObject( os.path.join( self.dataDir, "smoke.vdb" ) )
266+
self.assertEqual( o, o )
267+
268+
o2 = o.copy()
269+
o2.findGrid( "density" ).mapAll( lambda value : value + 1 )
270+
271+
self.assertNotEqual( o2, o )
272+
self.assertEqual( o2, o2 )
263273

264274
if __name__ == "__main__":
265275
unittest.main()

0 commit comments

Comments
 (0)