Fix: Geometry Nodes: false warning when passing gizmo data through instance-only nodes

There was a `Realized data in input geometry is ignored` warning when passing
gizmo data through instance-only nodes. This was because the node thought that
this data is "realized data" (like a mesh, curves, etc). This patch removes the
warning by making the check for realized data more precise.

Pull Request: https://projects.blender.org/blender/blender/pulls/146014
This commit is contained in:
Jacques Lucke
2025-09-10 11:29:43 +02:00
parent 0c3005ca0c
commit 0484738f8b

View File

@@ -404,7 +404,10 @@ bool GeometrySet::has_realized_data() const
{
for (const GeometryComponentPtr &component_ptr : components_) {
if (component_ptr) {
if (component_ptr->type() != GeometryComponent::Type::Instance) {
if (!ELEM(component_ptr->type(),
GeometryComponent::Type::Instance,
GeometryComponent::Type::Edit))
{
return true;
}
}