Skip to content

Commit

Permalink
Arnold menu : Remove "Populate GPU Cache" for Arnold 7.3 and greater
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Apr 3, 2024
1 parent 02f4b90 commit ffb5093
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions startup/gui/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,14 @@ def addHelpMenuItems( items ) :

GafferArnoldUI.CacheMenu.appendDefinitions( scriptWindowMenu, "/Tools/Arnold" )

scriptWindowMenu.append(
"/Tools/Arnold/Populate GPU Cache",
{
"command" : GafferArnoldUI.GPUCache.populateGPUCache,
}
)
if [ int( x ) for x in arnold.AiGetVersion()[:2] ] < [ 7, 3 ] :
# `AiGPUCachePopulate` was removed in Arnold 7.3.0.0.
scriptWindowMenu.append(
"/Tools/Arnold/Populate GPU Cache",
{
"command" : GafferArnoldUI.GPUCache.populateGPUCache,
}
)

except Exception as m :

Expand Down

0 comments on commit ffb5093

Please sign in to comment.