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

Foreign nodes are no longer highlighted #81055

Closed
KoBeWi opened this issue Aug 27, 2023 · 6 comments · Fixed by #81061
Closed

Foreign nodes are no longer highlighted #81055

KoBeWi opened this issue Aug 27, 2023 · 6 comments · Fixed by #81061

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Aug 27, 2023

Godot version

4.2 6da4ad1

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

image

In 4.2 dev3:
image

Steps to reproduce

  1. Create a scene with some children
  2. Instantiate it in another scene
  3. Enable editable children

Minimal reproduction project

N/A

@Calinou
Copy link
Member

Calinou commented Aug 27, 2023

I can't get the color to show up in 4.2.dev3 (Test has editable children enabled):

image

The yellow color shows up on Sprite2D if I add another node as child while editable children is enabled. It's gone once I restart the editor though.

@bitsawer
Copy link
Member

Duplicate of #78577 and #78648

Bisected regression to #72277 by capnm: #78648 (comment)

@KoBeWi
Copy link
Member Author

KoBeWi commented Aug 27, 2023

Is it really? I can consistently reproduce it on master and it consistently works in dev3.

@bitsawer
Copy link
Member

I'm not actually sure if we talk about the same thing, by highlight do you mean the color highlight is missing (like Calinou mentioned they yellow color) or something else? Might need some more testing.

@KoBeWi
Copy link
Member Author

KoBeWi commented Aug 27, 2023

Ok it's not related to inherited nodes. It's some Tree bug. TreeItem text can't be colored.
EDIT: At least in SceneTreeEditor.

@KoBeWi
Copy link
Member Author

KoBeWi commented Aug 28, 2023

Caused by this line

p_parent->clear_custom_color(0);

It has existed since 2 months, so something recently might've made it execute more often (aka always).

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

Successfully merging a pull request may close this issue.

3 participants