Skip to content

Commit 83ec456

Browse files
KapimZdenekM
authored andcommitted
docs: added comment for action object picker menu
1 parent bc1ac1d commit 83ec456

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arcor2_AREditor/Assets/TABLET/Scripts/GUI/ActionObjectPickerMenu.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ private void OnGameStateChanged(object sender, GameStateEventArgs args) {
7777
}
7878
// create one button for each object type
7979
foreach (ActionObjectMetadata actionObject in ActionsManager.Instance.ActionObjectsMetadata.Values.OrderBy(x => x.Type)) {
80+
// abstract objects could not be created
81+
// collision objects are intented to be instantiated only once in the moment they are created, therefore
82+
// they are not listed in this menu, except for mesh-based objects (which could not be created or altered in the editor)
8083
if (actionObject.Abstract || (actionObject.CollisionObject && actionObject.ObjectModel.Type != ObjectModel.TypeEnum.Mesh))
8184
continue;
8285
CreateBtn(actionObject);

0 commit comments

Comments
 (0)