Cleanup: scripts, unused variables & re-declaring built-ins

This commit is contained in:
Campbell Barton
2025-01-02 15:11:15 +11:00
parent d64bd41ee9
commit 7481355397
3 changed files with 3 additions and 5 deletions

View File

@@ -307,8 +307,8 @@ class USDHookExample(bpy.types.USDHook):
source = surf_output.GetConnectedSource()
# Get the shader prim from the source
shader = UsdShade.Shader(source[0])
id = shader.GetShaderId()
if id != "ND_standard_surface_surfaceshader":
shader_id = shader.GetShaderId()
if shader_id != "ND_standard_surface_surfaceshader":
return False
color_attr = shader.GetInput("base_color")