24 .description(
"Path to a OBJ file");
31#ifdef WITH_IO_WAVEFRONT_OBJ
32 const std::string path =
params.extract_input<std::string>(
"Path");
34 params.set_default_remaining_outputs();
44 import_params.
reports = &reports;
51 switch (report->type) {
53 type = NodeWarningType::Error;
56 type = NodeWarningType::Info;
59 params.error_message_add(type,
TIP_(report->message));
62 if (geometries.is_empty()) {
63 params.set_default_remaining_outputs();
75 params.error_message_add(NodeWarningType::Error,
76 TIP_(
"Disabled, Blender was compiled without OBJ I/O"));
77 params.set_default_remaining_outputs();
void BKE_reports_free(ReportList *reports)
void BKE_reports_init(ReportList *reports, int flag)
#define LISTBASE_FOREACH(type, var, list)
#define BLI_SCOPED_DEFER(function_to_defer)
#define STRNCPY(dst, src)
void OBJ_import_geometries(const OBJImportParams *import_params, blender::Vector< blender::bke::GeometrySet > &geometries)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
void search_link_ops_for_import_node(GatherLinkSearchOpParams ¶ms)
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
static MatBase identity()
static GeometrySet from_instances(Instances *instances, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
NodeGeometryExecFunction geometry_node_execute
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare