diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index 6c4fe1be791..3c1b5268fca 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -608,6 +608,7 @@ void register_scene_types() { OS::get_singleton()->yield(); //may take time to init + ObjectTypeDB::register_virtual_type(); ObjectTypeDB::register_type(); ObjectTypeDB::register_type(); diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 03127620f72..57d2a8d890d 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -1532,7 +1532,39 @@ void SceneState::add_editable_instance(const NodePath& p_path){ editable_instances.push_back(p_path); } +DVector SceneState::_get_node_groups(int p_idx) const { + Vector groups = get_node_groups(p_idx); + DVector ret; + + for(int i=0;i names; Vector variants; Vector node_paths; @@ -103,6 +105,13 @@ class SceneState : public Reference { _FORCE_INLINE_ Ref _get_base_scene_state() const; static bool disable_placeholders; + + DVector _get_node_groups(int p_idx) const; + +protected: + + static void _bind_methods(); + public: enum {