Merge pull request #44524 from madmiraal/rename-editor-viewport
Rename EditorInterface get_editor_viewport to get_editor_main_control
This commit is contained in:
@@ -398,7 +398,7 @@ Error EditorExportPlatform::_save_zip_file(void *p_userdata, const String &p_pat
|
||||
Ref<ImageTexture> EditorExportPlatform::get_option_icon(int p_index) const {
|
||||
Ref<Theme> theme = EditorNode::get_singleton()->get_editor_theme();
|
||||
ERR_FAIL_COND_V(theme.is_null(), Ref<ImageTexture>());
|
||||
if (EditorNode::get_singleton()->get_viewport()->is_layout_rtl()) {
|
||||
if (EditorNode::get_singleton()->get_main_control()->is_layout_rtl()) {
|
||||
return theme->get_icon("PlayBackwards", "EditorIcons");
|
||||
} else {
|
||||
return theme->get_icon("Play", "EditorIcons");
|
||||
|
||||
Reference in New Issue
Block a user