poohcom1 / godot-private-exports

A Godot addon that lets you set access modifier for exported variables!
https://godotengine.org/asset-library/asset/2136
MIT License
22 stars 0 forks source link

Fix button rendering on EditorProperty with bottom editors #1

Closed poohcom1 closed 11 months ago

poohcom1 commented 11 months ago

image

Exports that are internally set via EditorProperty.set_bottom_editor, are not rendered properly. Examples include exports set via @export_multiline and flag exports. This is made difficult due to the fact that EditorProperty does not expose bottom_editor to GDScript, so it is difficult to detect when an EditorProperty requires a different way to render buttons.

To fix this issue, we need to detect if an EditorProperty's child is set via set_bottom_editor, and set it again in the renderer when the button is injected.