WooshiiDev/HierarchyDecorator

Selection is not colored correct in twoToneBackground mode

soraphis opened this issue · 2 comments

the line fetching the instance id:

int instanceID = currentTransform.GetInstanceID ();

takes the id of the transform component, not of the game object.
So the check Selection.Contains (instanceID) in line 169 is always false.

to fix it, line 79 should read:

    int instanceID = currentTransform.gameObject.GetInstanceID ();

Hi there, sorry for the slow respose.

Cheers for pointing this out, that's something I should have realized but I'll make sure that's fixed in the next release (which is in the next few weeks)
I've noted this problem in #51 but not the solution itself, so I'll go ahead and mention this on that one.

If you would like, you're always welcome to make a small PR with the fix yourself for a wee bit more credit 😁

Pushed a fix to develop for this, will push with next release 👍