From 7eed3af3c1e117df49b25176d17e822e18bcfd3c Mon Sep 17 00:00:00 2001 From: SideFX Date: Fri, 10 Jan 2020 01:00:16 -0500 Subject: [PATCH] Matching to Houdini build 18.5.86. --- src/houdini/lib/H_USD/HUSD/HUSD_BindMaterial.C | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/houdini/lib/H_USD/HUSD/HUSD_BindMaterial.C b/src/houdini/lib/H_USD/HUSD/HUSD_BindMaterial.C index db67f346..09b5b747 100644 --- a/src/houdini/lib/H_USD/HUSD/HUSD_BindMaterial.C +++ b/src/houdini/lib/H_USD/HUSD/HUSD_BindMaterial.C @@ -94,7 +94,14 @@ husdGetBindPrim( UsdStageRefPtr &stage, const UT_StringRef &path, { UT_StringHolder final_path( path ); if( !final_path.isstring() && find_prims ) + { final_path = find_prims->getSharedRootPrim(); + + UT_WorkBuffer b; + b.format("Binding primitive path not specified.\n Using: {}", + final_path); + HUSD_ErrorScope::addWarning( HUSD_ERR_STRING, b.buffer() ); + } return stage->GetPrimAtPath( HUSDgetSdfPath( final_path )); }