Object in the back, visible in the front In the 3D view I have a tree behind a house, but despite that the tree is behind the house and way back in the scene, it's just in front of the camera! How come it's like this? I have used a skin modifier to create the tree. Other objects looks like they should depending on their position.

Here is a picture. The leafs on the tree are OK and not visible, just the 
tree trunk and branches.
The Problem is that the x-ray was checked

when the x-ray is disabled the object in back can't be seen like in the photo and when it is enabled it goes front off everything.

For example the back cube (orange) isn't visible clearly because x-ray isn't checked


But in this photo it is checked look :


this checkbox is used in many things like making/creating/assinging bones without it we could not see the bones:


This Checkbox Can be found here : (Properties panel --> Object --> Display)