This commit is contained in:
SoulliesOfficial
2026-05-27 15:15:28 -04:00
parent 76f498ae2b
commit 72756712f7
669 changed files with 5361 additions and 12268 deletions

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/ClothAssetPostprocessor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -38,9 +38,9 @@ namespace MagicaCloth2
public ClothInitSerializeData editInitSerializeData;
}
static Dictionary<int, ClothInfo> editClothDict = new Dictionary<int, ClothInfo>();
static Dictionary<MagicaObjectId, ClothInfo> editClothDict = new Dictionary<MagicaObjectId, ClothInfo>();
static List<int> destroyList = new List<int>();
static List<MagicaObjectId> destroyList = new List<MagicaObjectId>();
static List<ClothInfo> drawList = new List<ClothInfo>();
static CancellationTokenSource cancelToken = new CancellationTokenSource();
@@ -170,7 +170,7 @@ namespace MagicaCloth2
if (ClothPainter.IsPainting())
return;
int id = component.GetInstanceID();
MagicaObjectId id = component.GetMagicaId();
MagicaCloth cloth = component as MagicaCloth;
//if (cloth)
@@ -273,7 +273,7 @@ namespace MagicaCloth2
return null;
if (comp == null)
return null;
int id = comp.GetInstanceID();
MagicaObjectId id = comp.GetMagicaId();
VirtualMeshContainer cmesh = null;
lock (editClothDict)
{
@@ -291,7 +291,7 @@ namespace MagicaCloth2
{
if (comp == null)
return ResultCode.Empty;
int id = comp.GetInstanceID();
MagicaObjectId id = comp.GetMagicaId();
lock (editClothDict)
{
if (editClothDict.ContainsKey(id))
@@ -435,7 +435,7 @@ namespace MagicaCloth2
/// <param name="createSelectionData"></param>
/// <param name="ct"></param>
/// <returns></returns>
static async Task CreateOrUpdateEditMesh(int id, MagicaCloth cloth, CancellationToken ct)
static async Task CreateOrUpdateEditMesh(MagicaObjectId id, MagicaCloth cloth, CancellationToken ct)
{
// ■メインスレッド
Develop.DebugLog($"Create and update edit meshes: {cloth.name}");
@@ -554,7 +554,7 @@ namespace MagicaCloth2
if (sdata.clothType == ClothProcess.ClothType.MeshCloth)
{
// MeshClothではクロストランスフォームを追加しておく
editMesh.SetTransform(cloth.ClothTransform);
editMesh.SetTransform(cloth.ClothTransform, null, MagicaObjectId.Invalid, MagicaObjectId.Invalid);
}
editMesh.result.SetProcess();
@@ -850,7 +850,7 @@ namespace MagicaCloth2
{
if (cloth == null)
return;
int id = cloth.GetInstanceID();
MagicaObjectId id = cloth.GetMagicaId();
if (editClothDict.ContainsKey(id) == false)
return;
@@ -924,7 +924,7 @@ namespace MagicaCloth2
var connectionMode = sdata.clothType == ClothProcess.ClothType.BoneSpring ? RenderSetupData.BoneConnectionMode.Line : sdata.connectionMode;
var setupType = sdata.clothType == ClothProcess.ClothType.BoneSpring ? RenderSetupData.SetupType.BoneSpring : RenderSetupData.SetupType.BoneCloth;
using var setup = new RenderSetupData(null, setupType, cloth.ClothTransform, sdata.rootBones, null, connectionMode, cloth.name);
foreach (int id in setup.rootTransformIdList)
foreach (MagicaObjectId id in setup.rootTransformIdList)
{
int rootIndex = setup.GetTransformIndexFromId(id);
selectionData.attributes[rootIndex] = VertexAttribute.Fixed;

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/ClothEditorManager.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/ClothEditorUtility.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/ClothInspectorUtility.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/ClothPainter.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/ClothPresetUtility.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaCapsuleColliderEditor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -320,7 +320,10 @@ namespace MagicaCloth2
EditorGUILayout.Space();
if (sync == false)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("serializeData.updateMode"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("serializeData.disableMode"));
}
else
{
// 同期中は操作不可
@@ -331,6 +334,11 @@ namespace MagicaCloth2
EditorGUILayout.LabelField("Update Mode");
EditorGUILayout.LabelField("(Synchronizing)");
}
using (new EditorGUILayout.HorizontalScope())
{
EditorGUILayout.LabelField("Disable Mode");
EditorGUILayout.LabelField("(Synchronizing)");
}
}
}
EditorGUILayout.PropertyField(serializedObject.FindProperty("serializeData.animationPoseRatio"));

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaClothEditor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaEditorBase.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaPlaneColliderEditor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaSettingsEditor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaSphereColliderEditor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/MagicaWindZoneEditor.cs
uploadId: 829902
uploadId: 893596

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.17.0
packageVersion: 2.18.1
assetPath: Assets/OtherPlugins/MagicaCloth2/Scripts/Editor/Cloth/VirtualMeshEditorUtility.cs
uploadId: 829902
uploadId: 893596