Skip to content

Commit

Permalink
EMSUSD-1700 simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrebai-adsk committed Oct 8, 2024
1 parent 6931f44 commit e322f97
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/mayaUsd/utils/dynamicAttribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ MStatus createDynamicAttribute(
MObject attr = attrFn.create(attrName, "", MFnData::kString, MObject::kNullObj, &status);
CHECK_MSTATUS_AND_RETURN_IT(status);

attrFn.setAffectsAppearance(isFlagSet(flags, DynamicAttrFlags::kAppearance) ? true : false);
attrFn.setCached(isFlagSet(flags, DynamicAttrFlags::kCached) ? true : false);
attrFn.setConnectable(isFlagSet(flags, DynamicAttrFlags::kConnectable) ? true : false);
attrFn.setUsedAsFilename(isFlagSet(flags, DynamicAttrFlags::kFilename) ? true : false);
attrFn.setHidden(isFlagSet(flags, DynamicAttrFlags::kHidden) ? true : false);
attrFn.setKeyable(isFlagSet(flags, DynamicAttrFlags::kKeyable) ? true : false);
attrFn.setReadable(isFlagSet(flags, DynamicAttrFlags::kReadable) ? true : false);
attrFn.setStorable(isFlagSet(flags, DynamicAttrFlags::kStorable) ? true : false);
attrFn.setAffectsWorldSpace(isFlagSet(flags, DynamicAttrFlags::kWorldspace) ? true : false);
attrFn.setWritable(isFlagSet(flags, DynamicAttrFlags::kWritable) ? true : false);
attrFn.setAffectsAppearance(isFlagSet(flags, DynamicAttrFlags::kAppearance));
attrFn.setCached(isFlagSet(flags, DynamicAttrFlags::kCached));
attrFn.setConnectable(isFlagSet(flags, DynamicAttrFlags::kConnectable));
attrFn.setUsedAsFilename(isFlagSet(flags, DynamicAttrFlags::kFilename));
attrFn.setHidden(isFlagSet(flags, DynamicAttrFlags::kHidden));
attrFn.setKeyable(isFlagSet(flags, DynamicAttrFlags::kKeyable));
attrFn.setReadable(isFlagSet(flags, DynamicAttrFlags::kReadable));
attrFn.setStorable(isFlagSet(flags, DynamicAttrFlags::kStorable));
attrFn.setAffectsWorldSpace(isFlagSet(flags, DynamicAttrFlags::kWorldspace));
attrFn.setWritable(isFlagSet(flags, DynamicAttrFlags::kWritable));

status = depNode.addAttribute(attr);
return status;
Expand Down

0 comments on commit e322f97

Please sign in to comment.