Added a boolean to tell if an object has a mask or not to send obj message