Skip to content

Commit bc1ac1d

Browse files
KapimZdenekM
authored andcommitted
fix: models with meshes were ignored in ActionObjectPickerMenu
1 parent f839c18 commit bc1ac1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ 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-
if (actionObject.Abstract || actionObject.CollisionObject)
80+
if (actionObject.Abstract || (actionObject.CollisionObject && actionObject.ObjectModel.Type != ObjectModel.TypeEnum.Mesh))
8181
continue;
8282
CreateBtn(actionObject);
8383
}

0 commit comments

Comments
 (0)