mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 06:20:01 -05:00
rename Update_extensionsUsed to FindUsedExtensionsAndUpdateJson
This commit is contained in:
@@ -149,7 +149,7 @@ namespace UniGLTF
|
||||
|
||||
var json = f.ToString().ParseAsJson().ToString(" ");
|
||||
|
||||
json = GltfJsonUtil.Update_extensionsUsed(json);
|
||||
json = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(json);
|
||||
|
||||
return Glb.Create(json, BinBytes).ToBytes();
|
||||
}
|
||||
@@ -176,7 +176,7 @@ namespace UniGLTF
|
||||
GltfSerializer.Serialize(f, GLTF);
|
||||
var json = f.ToString().ParseAsJson().ToString(" ");
|
||||
|
||||
json = GltfJsonUtil.Update_extensionsUsed(json);
|
||||
json = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(json);
|
||||
|
||||
return (json, GLTF.buffers[0]);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace UniGLTF
|
||||
/// </summary>
|
||||
/// <param name="src"></param>
|
||||
/// <returns></returns>
|
||||
public static string Update_extensionsUsed(string src)
|
||||
public static string FindUsedExtensionsAndUpdateJson(string src)
|
||||
{
|
||||
var used = new HashSet<string>();
|
||||
var parsed = src.ParseAsJson();
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace UniGLTF
|
||||
[Test]
|
||||
public void Update_extensionUsed()
|
||||
{
|
||||
var dst = GltfJsonUtil.Update_extensionsUsed(@"{
|
||||
var dst = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(@"{
|
||||
""asset"": {
|
||||
""generator"": ""COLLADA2GLTF"",
|
||||
""version"": ""2.0""
|
||||
@@ -50,7 +50,7 @@ namespace UniGLTF
|
||||
[Test]
|
||||
public void Replace_extensionUsed()
|
||||
{
|
||||
var dst = GltfJsonUtil.Update_extensionsUsed(@"{
|
||||
var dst = GltfJsonUtil.FindUsedExtensionsAndUpdateJson(@"{
|
||||
""asset"": {
|
||||
""generator"": ""COLLADA2GLTF"",
|
||||
""version"": ""2.0""
|
||||
|
||||
Reference in New Issue
Block a user