-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
A bit back, I ran into a crash when toggling shadows.
I thought it was due to usage of invalid iterators, and made this PR, which seemed to fix it:
PixarAnimationStudios/OpenUSD#565
...however, on discussion with Pixar, realized the problem may be in our scene delegate. Need to remove this change to USD, then re-test to see if crash still exists, and if so, fix (possibly by adding check for double extract).
Original reproduction code was:
import maya.cmds as cmds
import maya.mel as mel
def loadPlug(plug):
if not cmds.pluginInfo(plug, q=1, loaded=1):
cmds.loadPlugin(plug)
loadPlug("AL_USDMayaPlugin")
#cmds.file('/Volumes/sv-dev01/devRepo/paulm/usd_samples/cube_proxy.ma', open=1, f=1)
cmds.file('/Volumes/sv-dev01/devRepo/paulm/usd_samples/Kitchen_set/Kitchen_set_proxy_camera.ma', open=1, f=1)
loadPlug("mtoh")
mel.eval('setRendererAndOverrideInModelPanel $gViewport2 hydraViewportOverride modelPanel4;')
light = cmds.createNode('spotLight')
lightXform = cmds.listRelatives(light, parent=1)[0]
cmds.setAttr("{}.tz".format(lightXform), 500)
cmds.setAttr("{}.useDepthMapShadows".format(light), 1)Metadata
Metadata
Assignees
Labels
No labels