Texas toddler dies after mom leaves her in a hot car for 45 minutes

Show me where any statute says that intent is a factor in the legality of leaving a baby in a car.