@@ -656,12 +656,12 @@ void EditorInterface::edit_script(const Ref<Script> &p_script, int p_line, int p
656656 ScriptEditor::get_singleton ()->edit (p_script, p_line - 1 , p_col - 1 , p_grab_focus);
657657}
658658
659- void EditorInterface::open_scene_from_path (const String &scene_path) {
659+ void EditorInterface::open_scene_from_path (const String &scene_path, bool p_set_inherited ) {
660660 if (EditorNode::get_singleton ()->is_changing_scene ()) {
661661 return ;
662662 }
663663
664- EditorNode::get_singleton ()->open_request (scene_path);
664+ EditorNode::get_singleton ()->open_request (scene_path, p_set_inherited );
665665}
666666
667667void EditorInterface::reload_scene_from_path (const String &scene_path) {
@@ -839,7 +839,7 @@ void EditorInterface::_bind_methods() {
839839 ClassDB::bind_method (D_METHOD (" edit_resource" , " resource" ), &EditorInterface::edit_resource);
840840 ClassDB::bind_method (D_METHOD (" edit_node" , " node" ), &EditorInterface::edit_node);
841841 ClassDB::bind_method (D_METHOD (" edit_script" , " script" , " line" , " column" , " grab_focus" ), &EditorInterface::edit_script, DEFVAL (-1 ), DEFVAL (0 ), DEFVAL (true ));
842- ClassDB::bind_method (D_METHOD (" open_scene_from_path" , " scene_filepath" ), &EditorInterface::open_scene_from_path);
842+ ClassDB::bind_method (D_METHOD (" open_scene_from_path" , " scene_filepath" , " set_inherited " ), &EditorInterface::open_scene_from_path, DEFVAL ( false ) );
843843 ClassDB::bind_method (D_METHOD (" reload_scene_from_path" , " scene_filepath" ), &EditorInterface::reload_scene_from_path);
844844
845845 ClassDB::bind_method (D_METHOD (" get_open_scenes" ), &EditorInterface::get_open_scenes);
0 commit comments