JAL-4366 JAL-728 simple hack to use 3di matrix when gecos-3di is enabled