public void AddModMeshSet(apOptModifiedMeshSet modMeshSet) { if (_requestType == REQUEST_TYPE.VertLocal) { _modWeightPairs.Add(new ModWeightPair(modMeshSet.SubModMesh_Vertex)); _nModWeightPairs = _modWeightPairs.Count; } else if (_requestType == REQUEST_TYPE.Rigging) { apOptModifiedMesh_VertexRig modMesh_Rigging = modMeshSet.SubModMesh_Rigging; if (_rigBoneWeightTables != null) { //?? //Rigging은 Static 타입이어서 ModMesh가 하나만 생성된다. Debug.LogError("Overwritten Mod Mesh To Rigging"); return; } //_totalRiggingWeight = 0.0f; _rigBoneWeightTables = new VertRigWeightTable[modMesh_Rigging._vertRigs.Length]; for (int i = 0; i < modMesh_Rigging._vertRigs.Length; i++) { _rigBoneWeightTables[i] = new VertRigWeightTable(i, modMeshSet, modMesh_Rigging); } } }
// Functions //----------------------------------------------- public void AddModMesh(apOptModifiedMesh modMesh) { if (_requestType == REQUEST_TYPE.VertLocal) { _modWeightPairs.Add(new ModWeightPair(modMesh)); _nModWeightPairs = _modWeightPairs.Count; } else if (_requestType == REQUEST_TYPE.Rigging) { if (_rigBoneWeightTables != null) { //?? //Rigging은 Static 타입이어서 ModMesh가 하나만 생성된다. Debug.LogError("Overwritten Mod Mesh To Rigging"); return; } //_totalRiggingWeight = 0.0f; _rigBoneWeightTables = new VertRigWeightTable[modMesh._vertRigs.Length]; for (int i = 0; i < modMesh._vertRigs.Length; i++) { _rigBoneWeightTables[i] = new VertRigWeightTable(i, modMesh); //_totalRiggingWeight += _rigBoneWeightTables[i]._totalRiggingWeight;//<<추가 RiggingWeight를 계산합시다. } } }