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

[EditorInspector] Fix ImportDock and ProjectExport capitalize #21234

Merged

Conversation

guilhermefelipecgs
Copy link
Contributor

@@ -423,6 +423,7 @@ ImportDock::ImportDock() {
import_opts = memnew(EditorInspector);
add_child(import_opts);
import_opts->set_v_size_flags(SIZE_EXPAND_FILL);
import_opts->set_enable_capitalize_paths(bool(EDITOR_GET("interface/inspector/capitalize_properties")));
Copy link
Contributor Author

@guilhermefelipecgs guilhermefelipecgs Aug 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @akien-mga Maybe we should rename this path interface/inspector/capitalize_properties to a more generic.

Copy link
Contributor Author

@guilhermefelipecgs guilhermefelipecgs Aug 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or should I use a different names for this? or maybe this can be the default to true instead of use EDITOR_GET?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should default to true in EditorInspector.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@@ -1536,7 +1536,7 @@ void EditorInspector::update_tree() {

Color c = sscolor;
c.a /= level;
section->setup(path_name, path_name, object, c, use_folding);
section->setup(acc_path, path_name, object, c, use_folding);
Copy link
Contributor Author

@guilhermefelipecgs guilhermefelipecgs Aug 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, I inverted path_name with acc_name to fix section names:
without change:
captura de tela de 2018-08-20 17-10-31
whit this change:
captura de tela de 2018-08-20 17-09-13

@guilhermefelipecgs guilhermefelipecgs changed the title [PropertyEditor] Fix ImportDock and ProjectExport capitalize [EditorInspector] Fix ImportDock and ProjectExport capitalize Aug 20, 2018
@akien-mga akien-mga merged commit cc3ccf7 into godotengine:master Aug 20, 2018
@guilhermefelipecgs guilhermefelipecgs deleted the fix_inspector_capitalize branch August 21, 2018 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants