17 "For meshes, outputs normals without custom normal attributes taken into account");
22 layout->
prop(ptr,
"legacy_corner_normals",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
27 const bool legacy_corner_normals = bool(params.
node().
custom1);
31 Field<float3>{std::make_shared<bke::NormalFieldInput>(legacy_corner_normals,
false)});
35 Field<float3>{std::make_shared<bke::NormalFieldInput>(
false,
true)});
46 "Retrieve a unit length vector indicating the direction pointing away from the geometry at "
#define GEO_NODE_INPUT_NORMAL
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_output(StringRef identifier, T &&value)
bool output_is_required(StringRef identifier) const
const bNode & node() const
void node_register_type(bNodeType &ntype)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
void(*) draw_buttons_ex(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)