1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Clean preview_node of all none VisualInstances

(cherry picked from commit 5935cee298)
This commit is contained in:
SaracenOne
2021-12-31 00:46:47 +00:00
committed by Rémi Verschelde
parent 2ebe0e48b9
commit 721bbfd4c8
2 changed files with 33 additions and 0 deletions

View File

@@ -443,6 +443,9 @@ private:
Vector3 _get_instance_position(const Point2 &p_pos) const;
static AABB _calculate_spatial_bounds(const Spatial *p_parent, bool p_exclude_toplevel_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);