We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd9a9d5 + 21e5d10 commit 78d78fcCopy full SHA for 78d78fc
Assets/FbxExporters/Editor/ConvertToModel.cs
@@ -54,9 +54,12 @@ public static bool OnValidateMenuItem ()
54
static void OnContextItem (MenuCommand command)
55
{
56
if (command == null || command.context == null) {
57
- Debug.LogError ("Error: No GameObject selected");
+ // We were actually invoked from the top GameObject menu,
58
+ // not the context menu, so treat it as such.
59
+ OnMenuItem();
60
return;
61
}
62
+
63
GameObject selected = command.context as GameObject;
64
if (selected == null) {
65
Debug.LogError (string.Format("Error: {0} is not a GameObject and cannot be converted", command.context.name));
0 commit comments