We were in a tent at Yellowstone when a bear came through. We didn't have any food out but that didn't stop him from sniffing at everything. The neighbor left out some coolers and he went through those.
It really didn't make any difference as to whether we left food out. That bear was way to close to my family.
There is no way I would camp in anything "soft" in bear territory again.