Long story short, my dragon egg disappeared, so I duplicated the world and went into creative to fight it again. The dragon looked normal at the start of the fight, but suddenly turned into this.
I got the egg and the dragon was fine after respawning it.
What happened to you?