Merge pull request #56362 from V-Sekai/preview_node_sanitize

Clean preview node of all nodes which are not derived from VisualInstances
This commit is contained in:
Rémi Verschelde 2022-01-04 17:20:13 +01:00 committed by GitHub
commit deefce7bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -385,6 +385,9 @@ private:
Vector3 _get_instance_position(const Point2 &p_pos) const;
static AABB _calculate_spatial_bounds(const Node3D *p_parent, bool p_exclude_top_level_transform = true);
Node *_sanitize_preview_node(Node *p_node) const;
void _create_preview(const Vector<String> &files) const;
void _remove_preview();
bool _cyclical_dependency_exists(const String &p_target_scene_path, Node *p_desired_node);