     patternMaskNode = node;
     
     // just change position if already opened
-    if ( layerWindow.visible == true )
+    if (layerWindow.visible == true)
     {
         HideLayerEditor();
         /*

    }
}

void SetupBitsPanel( int mask ) 
{
    for (int i = 0; i < 8; i++) 
    {

            bits[i].vars["index"] = i;
            SubscribeToEvent(bits[i], "Toggled", "ToggleBits");
    }
    
    SubscribeToEvent("MouseMove", "HandleHideLayerEditor");
    SubscribeToEvent("MouseButtonDown", "HandleHideLayerEditor");
    SubscribeToEvent("MouseWheel", "HandleMaskTypeScroll");
}

bool ShowLayerEditor()
