mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-26 21:04:14 -05:00
editor の null check
This commit is contained in:
@@ -47,7 +47,7 @@ namespace UniVRM10
|
||||
|
||||
public override void OnToolGUI(EditorWindow window)
|
||||
{
|
||||
var root = Selection.activeTransform.GetComponent<Vrm10Instance>();
|
||||
var root = Selection.activeTransform?.GetComponent<Vrm10Instance>();
|
||||
if (root == null)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user