Skip to content

Commit

Permalink
docs: added comment for action object picker menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapim authored and ZdenekM committed Feb 16, 2023
1 parent bc1ac1d commit 83ec456
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83ec456

Please sign in to comment.