Page MenuHome

Fix: fix warning icon on Curve to Mesh geometry node
ClosedPublic

Authored by Vitor Boschi (vitorboschi) on Sep 30 2021, 8:59 PM.

Details

Summary

The node was setting a warning when used with instances on input, even though it worked fine.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested changes to this revision.Sep 30 2021, 9:07 PM

I think the node should still give a warning when there were non-empty instances and none of them contained curve data.

This revision now requires changes to proceed.Sep 30 2021, 9:07 PM

Keep the warning when the input is not empty and doesn't have any curve data.

This works in my testing. If the geometry component had an empty instances component it may add a warning anyway, but I'm not sure it's worth handling that case anyway. Thanks for the patch!

source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
63

This change to white-space is unnecessary.

This revision is now accepted and ready to land.Sep 30 2021, 10:56 PM

Re-add line that was mistakenly removed