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

Getting connected option from option #21

Open
astromediaonly opened this issue Dec 25, 2023 · 1 comment
Open

Getting connected option from option #21

astromediaonly opened this issue Dec 25, 2023 · 1 comment

Comments

@astromediaonly
Copy link

Hi,
Im probably understanding something poorly but Im trying to get option connected to my option and it acts like this:
opt.ConnectionCount returns 1 but opt.GetConnectedOption() returns list of 0 elements

Any idea why this could happen or what Im doing/understanding incorrectly?

@MrKumakun
Copy link

Hi,

The Outpout side is referenced in m_hs_connected.Tolist(), so you can get it.
But, the Input side seems to be a problem.

if (v.Output == this) lst.Add(v.Input);

v.Output is deep copy object, so comparison between objects is not valid.
Object.ReferenceEquals cannot be used.

Is there another way around this?


I'm not very good at English and I use online translators a lot, so I'm sorry if my sentences sound weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants