From e322f97d271a4d1e18b9f52551665292d02bd03e Mon Sep 17 00:00:00 2001 From: Pierre Baillargeon Date: Tue, 8 Oct 2024 13:41:14 -0400 Subject: [PATCH] EMSUSD-1700 simplify code --- lib/mayaUsd/utils/dynamicAttribute.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/mayaUsd/utils/dynamicAttribute.cpp b/lib/mayaUsd/utils/dynamicAttribute.cpp index e16511733d..6d059b179a 100644 --- a/lib/mayaUsd/utils/dynamicAttribute.cpp +++ b/lib/mayaUsd/utils/dynamicAttribute.cpp @@ -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;