LEFT_DOUBLE_CLICK Camera problem

Hello, everybody! I’m adding to Entity Wall and Polyline. I also specify Model in the properties of the Entity. I have checkboxes that enable and disable Wall and Polyline. When they are enabled, when you double-click on an Entity, the camera points to the center of the Wall or Polyline. I need the camera to capture the Entity when double clicking on the Entity. What could be the reason?