mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 03:48:19 -05:00
Merge pull request #547 from ousttrue/fix/is_null
`is null` を `== null` に修正
This commit is contained in:
@@ -200,7 +200,7 @@ namespace MeshUtility
|
||||
static string GetDialogDir(UnityEngine.Object obj)
|
||||
{
|
||||
var prefab = PrefabUtility.GetCorrespondingObjectFromSource(obj);
|
||||
if (prefab is null)
|
||||
if (prefab == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace MeshUtility
|
||||
{
|
||||
foreach (var prop in props)
|
||||
{
|
||||
if (prop.Item2 is null)
|
||||
if (prop.Item2 == null)
|
||||
{
|
||||
var name = prop.Item1;
|
||||
if (name.StartsWith("m_"))
|
||||
@@ -406,12 +406,12 @@ namespace MeshUtility
|
||||
public bool AssignBonesFromAnimator()
|
||||
{
|
||||
var animator = GetComponent<Animator>();
|
||||
if (animator is null)
|
||||
if (animator == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var avatar = animator.avatar;
|
||||
if (avatar is null)
|
||||
if (avatar == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace VRM
|
||||
|
||||
static Vector3 GetForward(Transform l, Transform r)
|
||||
{
|
||||
if (l is null || r is null)
|
||||
if (l == null || r == null)
|
||||
{
|
||||
return Vector3.zero;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ namespace VRM
|
||||
{
|
||||
get
|
||||
{
|
||||
if (s_func is null)
|
||||
if (s_func == null)
|
||||
{
|
||||
var methods = typeof(EditorGUILayout).GetMethods(BindingFlags.Static | BindingFlags.NonPublic).Where(x => x.Name == "BeginVerticalScrollView").ToArray();
|
||||
var method = methods.First(x => x.GetParameters()[1].ParameterType == typeof(bool));
|
||||
|
||||
Reference in New Issue
Block a user