hdPrman motion blur scene index plugin: simplifying code using that HdSceneIndexPrim...
authorunhyperbolic <unhyperbolic@users.noreply.github.com>
Tue, 2 Jan 2024 22:43:30 +0000 (14:43 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Tue, 2 Jan 2024 22:43:30 +0000 (14:43 -0800)
(Internal change: 2310001)

third_party/renderman-25/plugin/hdPrman/motionBlurSceneIndexPlugin.cpp

index 2fa1fc5b7a2cb4f253e83656338e98d93b7dc64d..1e945c59439c79cebbecea2e30774aef322d490c 100644 (file)
@@ -1323,13 +1323,7 @@ private:
             return false;
         }
 #endif
-        if (const auto container = HdContainerDataSource::Cast(
-            prim.dataSource)) {
-            if (HdXformSchema::GetFromParent(container)) {
-                return true;
-            }
-        }
-        return false;
+        return bool(HdXformSchema::GetFromParent(prim.dataSource));
     };
 
     HdContainerDataSourceHandle _inputArgs;