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

Properties cannot be set during debugging (remote scene tree) #825

Open
Tracked by #767
bluenote10 opened this issue Dec 7, 2021 · 0 comments
Open
Tracked by #767

Properties cannot be set during debugging (remote scene tree) #825

bluenote10 opened this issue Dec 7, 2021 · 0 comments
Labels
bug c: export Component: export (mod export, derive) help wanted
Milestone

Comments

@bluenote10
Copy link
Contributor

bluenote10 commented Dec 7, 2021

I noticed that it is not possible to modify properties of native classes during a debug session, i.e., in the "remote" scene tree. The properties get displayed in the Inspector, and modifying them produces a "set foobar" message, but the value doesn't change.

A minimal project to reproduce the issue is available here (the native class simply prints its property in _process, so modifications in the live Inspector should change the value).

@Bromeon found some related discussions:

An initial guess: We somehow have to call Object.property_list_changed_notify after a property gets set. However the after_set mechanism doesn't seem to work either, so I'm not sure if we get a chance to call it. Edit: On second, I'd say that property_list_changed_notify solves the inverse problem of the Inspector not updating the displayed value. In this case the value actually does update visually in the Inspector, but the change doesn't propagate into the native class instance. Perhaps a GDNative limitation after all?

@bluenote10 bluenote10 added the bug label Dec 7, 2021
@Bromeon Bromeon added this to the v0.11 milestone Dec 7, 2021
@Bromeon Bromeon added c: export Component: export (mod export, derive) and removed c: export labels Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: export Component: export (mod export, derive) help wanted
Projects
None yet
Development

No branches or pull requests

2 participants