Architects took their designs back to the drawing board, and it paid off.

Revised plans for the site of Brooklyn’s Domino Sugar factory are now approved.

The Landmarks Preservation Commission signed off on the reworked proposal, which calls for a new glass building within the historic Refinery building.

The space will also feature a barrel-vaulted roof, an open-air courtyard and a new waterfront plaza.

Two Trees Management, which owns the space, says the new plan honors and highlights the landmark. It plans to have shops and restaurants on the ground floor.

Two Trees says the iconic "Domino Sugar" sign will return to the top of the building, which has been vacant since 2004. The proposals were initially rejected, to address preservation of the exposed brick.

One of Two Trees other residential buildings on the site began welcoming new tenants earlier this summer.