public void DiffuseMaterial(uint mtl_id, Color value) { IntPtr ptr = this.ColorToIntPtr(value); MtlEditorCoreImporter.SetDiffuseMaterial(core_, mtl_id, ptr); Marshal.FreeHGlobal(ptr); }