diff --git a/arcor2_AREditor/Assets/TABLET/Scripts/GUI/ActionObjectPickerMenu.cs b/arcor2_AREditor/Assets/TABLET/Scripts/GUI/ActionObjectPickerMenu.cs index d9b16f49..8c32e18d 100644 --- a/arcor2_AREditor/Assets/TABLET/Scripts/GUI/ActionObjectPickerMenu.cs +++ b/arcor2_AREditor/Assets/TABLET/Scripts/GUI/ActionObjectPickerMenu.cs @@ -77,6 +77,9 @@ private void OnGameStateChanged(object sender, GameStateEventArgs args) { } // create one button for each object type foreach (ActionObjectMetadata actionObject in ActionsManager.Instance.ActionObjectsMetadata.Values.OrderBy(x => x.Type)) { + // abstract objects could not be created + // collision objects are intented to be instantiated only once in the moment they are created, therefore + // they are not listed in this menu, except for mesh-based objects (which could not be created or altered in the editor) if (actionObject.Abstract || (actionObject.CollisionObject && actionObject.ObjectModel.Type != ObjectModel.TypeEnum.Mesh)) continue; CreateBtn(actionObject);