Add get_edited_property_value() shorthand method

This commit is contained in:
kobewi 2023-05-26 09:13:24 +02:00
parent 2eec9a67d5
commit 010ce46ffa
8 changed files with 65 additions and 64 deletions

View file

@ -6620,7 +6620,7 @@ void EditorPropertyVisualShaderMode::_option_selected(int p_which) {
}
void EditorPropertyVisualShaderMode::update_property() {
int which = get_edited_object()->get(get_edited_property());
int which = get_edited_property_value();
options->select(which);
}