43 std::optional<std::string> node_name;
52 if (node_name.has_value()) {
53 if (
node->name != node_name) {
58 if (!
node->is_selected()) {
88 if (nodes_to_sync.
size() != 1) {
93 if (description.empty()) {
101 ot->
name =
"Sync Sockets";
102 ot->
idname =
"NODE_OT_sockets_sync";
103 ot->
description =
"Update sockets to match what is actually used";
void append(const T &value)
static std::string sockets_sync_get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
static Vector< bNode * > get_nodes_to_sync(bContext &C, PointerRNA *ptr)
void NODE_OT_sockets_sync(wmOperatorType *ot)
Map< int, bool > & node_can_sync_cache_get(SpaceNode &snode)
static wmOperatorStatus sockets_sync_exec(bContext *C, wmOperator *op)
void sync_node(bContext &C, bNode &node, ReportList *reports)
std::string sync_node_description_get(const bContext &C, const bNode &node)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool ED_operator_node_editable(bContext *C)
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
void BKE_main_ensure_invariants(Main &bmain, std::optional< Span< ID * > > modified_ids=std::nullopt)
SpaceNode * CTX_wm_space_node(const bContext *C)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
Main * CTX_data_main(const bContext *C)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
struct bNodeTree * edittree
ed::space_node::SpaceNode_Runtime * runtime
Map< int, bool > node_can_sync_states
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports