don't try locking disabled ramp elements because of the differences
in Maya and Houdini ramp element indexing
@@ -1214,6 +1214,12 @@ GetAttrOperation::leaf(const HAPI_ParmInfo &parmInfo)
if(exists)
{
+ // if it's not a ramp, go ahead and lock based on disable
+ // leave the ramps alone cause there are other UI issues that complicate things
+ if(!(parmInfo.isChildOfMultiParm
+ && parentParmInfo
+ && parentParmInfo->rampType != HAPI_RAMPTYPE_INVALID)) {
+
if(parmInfo.disabled) {
plug.setLocked(true);
} else {
@@ -1221,6 +1227,8 @@ GetAttrOperation::leaf(const HAPI_ParmInfo &parmInfo)
plug.setLocked(false);
}
}
+ }
+
dataHandle = parentDataHandle.child(attrObj);
// The HAPI_ParmInfo::choiceCount could change between cooks because
