fix compilation for 3D models