public void RepopulateValues() { MCS.FOUNDATIONS.CoreMesh core_mesh = GetComponent <MCS.FOUNDATIONS.CoreMesh>(); core_mesh.dazName = geometryId; core_mesh.ID = ID; core_mesh.meshType = meshType; }
//this function is to only be used AFTER the new importer added NEW metadata and needs to populate old values //if you use the old importer and had old data, this will ruin the world. we will all cry, and everything will be aweful. I think I spelled awful incorrectly. private void DownConvertDarwinSpecToProtoSpec() { this.vendorId = "DAZ3D"; this.versionId = this.mcs_version.ToString(); this.meshType = ItemFunctionToMeshType(this.function); this.geometryId = this.item_name; this.ID = this.item_id; if (this.function != ItemFunction.figure) { if (this.compatibilities.figures.Length != 0) { Debug.Log("this.compatibilities.figures is not null"); this.compatabilityBase = this.compatibilities.figures[0]; } } else { this.compatabilityBase = this.item_name; } //declarativeUse; //controllerScales; MCS.FOUNDATIONS.CoreMesh core_mesh = GetComponent <MCS.FOUNDATIONS.CoreMesh>(); if (core_mesh != null) { //Debug.Log("Core Mesh != null "); core_mesh.dazName = geometryId; core_mesh.ID = ID; core_mesh.meshType = meshType; } }