1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #56364 from V-Sekai/preview_node_sanitize_3_x

Clean preview node of all nodes which are not derived from VisualInstances [3.x]
This commit is contained in:
Rémi Verschelde
2022-01-04 17:20:49 +01:00
committed by GitHub
2 changed files with 33 additions and 0 deletions

View File

@@ -446,6 +446,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);