27#include "RNA_prototypes.hh"
76 if (id_prop == ptr->data) {
93 return fmt::format(
"modifiers[\"{}\"].properties.inputs.{}", name_esc, identifier);
130 srna, identifier.
c_str(), socket_srna, socket->
name().c_str(),
"");
143 return fmt::format(
"modifiers[\"{}\"].properties.outputs.{}", name_esc, identifier);
177 description.
c_str());
195 tree.ensure_interface_cache();
202 fmt::format(
"open_{}", panel.identifier));
218 auto generated = std::make_unique<GeneratedTreeSrnaData>();
219 tree.ensure_interface_cache();
222 generated->generated_rna,
"GeometryNodesModifierInterface", RNA_NodesModifierProperties);
223 generated->properties_struct = srna;
231 srna,
"inputs", inputs_srna,
"Inputs",
"Settings for input sockets");
234 srna,
"outputs", outputs_srna,
"Outputs",
"Settings for output sockets");
#define PRF_scope(category)
StringRefNull copy_string(StringRef str)
LinearAllocator & allocator()
constexpr const char * c_str() const
constexpr bool is_empty() const
bNodeSocketType * node_socket_type_find(StringRef idname)
static std::optional< std::string > rna_NodesModifierPropertyInput_path(const PointerRNA *ptr)
static StructRNA * create_inputs_srna(const bNodeTree &tree, const CompositorNodesSrnaContext &context, GeneratedTreeSrnaData &r_generated)
const EnumPropertyItem geometry_nodes_input_type_items_value_or_attribute_or_layer[]
void geometry_nodes_property_update(Main *, Scene *, PointerRNA *ptr)
static std::optional< std::string > rna_NodesModifierPropertyOutput_path(const PointerRNA *ptr)
static StructRNA * create_panels_srna(const bNodeTree &tree, GeneratedTreeSrnaData &r_generated)
static StructRNA * get_input_socket_struct_rna(const bNodeTree &tree, const bNodeTreeInterfaceSocket &socket, const CompositorNodesSrnaContext &context, GeneratedTreeSrnaData &r_generated)
bool socket_type_supports_attributes(const eNodeSocketDatatype socket_type)
const EnumPropertyItem geometry_nodes_input_type_items_value[]
static constexpr EnumPropertyItem input_type_item_fallback
static constexpr EnumPropertyItem input_type_item_layer
static constexpr EnumPropertyItem input_type_item_value
static constexpr EnumPropertyItem input_type_item_attribute
static const ModifierData * find_modifier_data_from_system_property(const PointerRNA *ptr)
static StructRNA * create_outputs_srna(const bNodeTree &tree, GeneratedTreeSrnaData &r_generated)
std::shared_ptr< GeneratedTreeSrnaData > create_geometry_nodes_rna_for_modifier(const bNodeTree &tree)
const EnumPropertyItem geometry_nodes_input_type_items_fallback[]
const EnumPropertyItem geometry_nodes_input_type_items_value_or_attribute[]
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
void IDP_foreach_property(IDProperty *id_property_root, int type_filter, FunctionRef< void(IDProperty *id_property)> callback)
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
@ NODE_INTERFACE_PANEL_DEFAULT_CLOSED
StructRNA RNA_PropertyGroup
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void DEG_id_tag_update(ID *id, unsigned int flags)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
const char * RNA_struct_identifier(const StructRNA *type)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_struct_path_func_runtime(StructRNA *srna, StructPathFunc path_fn)
@ PROP_FORCE_GEOMETRY_EVAL
void RNA_def_property_update_runtime(PropertyRNA *prop, RNAPropertyUpdateFunc func)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
struct IDProperty * system_properties
Vector< AncestorPointerRNA, ANCESTOR_POINTERRNA_DEFAULT_SIZE > ancestors
SocketMakeNodesInputSrnaFunction make_geometry_nodes_input_srna
BlenderRNA * generated_rna