Comparing the object with "edit_object" isn't correct as multiple objects may be in edit-mode across multiple scenes. Check the object for edit-mode data instead.
Comparing the object with "edit_object" isn't correct as multiple objects may be in edit-mode across multiple scenes. Check the object for edit-mode data instead.