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.
1 parent d987071 commit f0540afCopy full SHA for f0540af
Editor/MenuItems/UrdfImporterContextMenuItem.cs
@@ -7,7 +7,15 @@
7
namespace RosSharp.Urdf.Editor
8
{
9
public static class UrdfImporterContextMenuItem
10
- {
+ {
11
+ [MenuItem("Assets/Import Robot from URDF", true, 0)]
12
+ public static bool CreateUrdfObject_IsValid()
13
14
+ string assetPath = AssetDatabase.GetAssetPath(Selection.activeObject);
15
+
16
+ return (Path.GetExtension(assetPath)?.ToLower() == ".urdf");
17
+ }
18
19
[MenuItem("Assets/Import Robot from URDF")]
20
private static void CreateUrdfObject()
21
0 commit comments