20 uiItemR(layout,
ptr,
"legacy_behavior", 0,
nullptr, ICON_NONE);
27 if (legacy_behavior) {
30 TIP_(
"This node uses legacy behavior with regards to attributes on "
31 "instances. The behavior can be changed in the node properties in "
32 "the side bar. In most cases the new behavior is the same for files created in "
38 options.keep_original_ids = legacy_behavior;
39 options.realize_instance_attributes = !legacy_behavior;
41 params.set_output(
"Geometry", std::move(geometry_set));
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_REALIZE_INSTANCES
void nodeRegisterType(struct bNodeType *ntype)
@ GEO_NODE_REALIZE_INSTANCES_LEGACY_BEHAVIOR
in reality light always falls off quadratically Particle Info
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
CCL_NAMESPACE_BEGIN struct Options options
GeometrySet realize_instances(GeometrySet geometry_set, const RealizeInstancesOptions &options)
static void node_geo_exec(GeoNodeExecParams params)
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_realize_instances()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons_ex)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)
NodeDeclareFunction declare