A tip part for an endoscope, the tip part having a pre-compensation condition and a post-compensation condition, and comprising:a camera assembly having an image sensor and a first light source configured for emitting light along an optical axis to provide illumination of the object to be visualised by the image sensor; anda first tolerance compensating member being configured to, in the pre-compensation condition, allow adjustment of the distance between the first light source and the image sensor along the optical axis of the first light source and being configured to, in the post-compensation condition, maintain the distance between the first light source and the image sensor at least along the optical axis of the first light source.