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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user