As long as you did it in a well ventilated area (outside is best), you shouldn't worry. I wouldn't make it a regular practice, but once is OK.
You needn't be concerned if you just did it once. But be mindful that continued exposure to such things can contribute to developmental problems. Just don't do it again.
Did you wear any kind of ventilator mask? If not, I'd be concerned about the toxic fumes. I was going to spray paint our bassinet, but my husband wouldn't allow it. He wouldn't even let me near the garage while he did it with the doors wide open. I could still smell it though & it was pretty strong.