         }
         
         bitmap.bitmapData = bitmapData;
+        
+        // Restore original 3D matrix if applicable.
+        if (transform3D)
+            focusObject.transform.matrix3D = transform3D;
     }
     
     private static var classDefCache:Object = {};

        if (focusObject.focusObj)
            focusObject.focusObj.visible = false;
       
        // Temporary solution for focus drawing on CheckBox and RadioButton components.
        // Hide the label before drawing the focus. 
        // FIXME (gruehle): Figure out a better solution.

import flash.geom.Matrix;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.geom.Matrix3D;

import mx.core.UIComponent;
import mx.core.mx_internal;
