Hi Guys,
need some help updating my old Maya2013 plugins to Maya2017. I want to pass MFn::Type as an argument in a procedure simply like below:
MStatus helperTools::getObjectsOfType(MFn::Type fnType, MObjectArray& result)
{
..
if(obj.hasFn(fnType))
result.append(obj)
};
If i now in Maya2017 call
helperTools::getObjectsOfType(MFn::kMesh, obArray)
nothing happens. As if the variable “fnType” carries nothing to compare with MObject.hasFn()
Up to my actual Maya2013 plugin builts however this worked flawlessly.
Any Ideas?
Thanks