Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get object child returning an object that is not a child #2962

Open
t3du opened this issue Nov 2, 2023 · 0 comments
Open

get object child returning an object that is not a child #2962

t3du opened this issue Nov 2, 2023 · 0 comments
Labels
bug This issue describes a bug

Comments

@t3du
Copy link
Contributor

t3du commented Nov 2, 2023

Hi, the Get Object Child is inconsistent with the Get Object Children. Because the Get Object Child for the same name object returns the object even though is not a child. The Get Object Children does not do that, it only returns the children.
image
https://github.com/armory3d/iron/blob/8bf6b8fbf80bef6f12183413d1c23e2b9ccdeb5b/Sources/iron/object/Object.hx#L111

If it is right this way then that is needed in the documentation. Otherwise we need to adjust the code. Because get children does not do that so its misleading.

i open this issue to further discuss the options.

@t3du t3du added the bug This issue describes a bug label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a bug
Projects
None yet
Development

No branches or pull requests

1 participant