Blender V4.5
node_tree_zones.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include <iostream>
6
7#include "BKE_node.hh"
8#include "BKE_node_runtime.hh"
10
12#include "BLI_bit_span_ops.hh"
13#include "BLI_set.hh"
15
16namespace blender::bke {
17
19{
20 if (zone.depth >= 0) {
21 return;
22 }
23 if (zone.parent_zone == nullptr) {
24 zone.depth = 0;
25 return;
26 }
28 zone.depth = zone.parent_zone->depth + 1;
29}
30
32 const bNodeTree &tree,
33 bNodeTreeZones &owner,
34 Map<const bNode *, bNodeTreeZone *> &r_zone_by_inout_node)
35{
37
39 Vector<const bNode *> zone_output_nodes;
40 for (const bNodeZoneType *zone_type : zone_types) {
41 zone_output_nodes.extend(tree.nodes_by_type(zone_type->output_idname));
42 }
43 for (const bNode *node : zone_output_nodes) {
44 auto zone = std::make_unique<bNodeTreeZone>();
45 zone->owner = &owner;
46 zone->index = zones.size();
47 zone->output_node_id = node->identifier;
48 r_zone_by_inout_node.add(node, zone.get());
49 zones.append_and_get_index(std::move(zone));
50 }
51 for (const bNodeZoneType *zone_type : zone_types) {
52 for (const bNode *input_node : tree.nodes_by_type(zone_type->input_idname)) {
53 if (const bNode *output_node = zone_type->get_corresponding_output(tree, *input_node)) {
54 if (bNodeTreeZone *zone = r_zone_by_inout_node.lookup_default(output_node, nullptr)) {
55 zone->input_node_id = input_node->identifier;
56 r_zone_by_inout_node.add(input_node, zone);
57 }
58 }
59 }
60 }
61 return zones;
62}
63
67
68 uint64_t hash() const
69 {
70 return get_default_hash(this->parent, this->child);
71 }
72
74};
75
76static std::optional<Vector<ZoneRelation>> get_direct_zone_relations(
77 const Span<bNodeTreeZone *> all_zones, const BitGroupVector<> &depend_on_input_flag_array)
78{
79 VectorSet<ZoneRelation> all_zone_relations;
80
81 /* Gather all relations, even the transitive once. */
82 for (bNodeTreeZone *zone : all_zones) {
83 const int zone_i = zone->index;
84 for (const bNode *node : {zone->output_node()}) {
85 if (node == nullptr) {
86 continue;
87 }
88 const BoundedBitSpan depend_on_input_flags = depend_on_input_flag_array[node->index()];
89 bits::foreach_1_index(depend_on_input_flags, [&](const int parent_zone_i) {
90 if (parent_zone_i != zone_i) {
91 all_zone_relations.add_new({all_zones[parent_zone_i], zone});
92 }
93 });
94 }
95 }
96
97 for (const ZoneRelation &relation : all_zone_relations) {
98 const ZoneRelation reverse_relation{relation.child, relation.parent};
99 if (all_zone_relations.contains(reverse_relation)) {
100 /* There is a cyclic zone dependency. */
101 return std::nullopt;
102 }
103 }
104
105 /* Remove transitive relations. This is a brute force algorithm currently. */
106 Vector<int> transitive_relations;
107 for (const int a : all_zone_relations.index_range()) {
108 const ZoneRelation &relation_a = all_zone_relations[a];
109 for (const int b : all_zone_relations.index_range()) {
110 if (a == b) {
111 continue;
112 }
113 const ZoneRelation &relation_b = all_zone_relations[b];
114 if (relation_a.child != relation_b.parent) {
115 continue;
116 }
117 const ZoneRelation transitive_relation{relation_a.parent, relation_b.child};
118 const int transitive_relation_i = all_zone_relations.index_of_try(transitive_relation);
119 if (transitive_relation_i != -1) {
120 transitive_relations.append_non_duplicates(transitive_relation_i);
121 }
122 }
123 }
124 std::sort(transitive_relations.begin(), transitive_relations.end(), std::greater<>());
125
126 Vector<ZoneRelation> zone_relations = all_zone_relations.as_span();
127 for (const int i : transitive_relations) {
128 zone_relations.remove_and_reorder(i);
129 }
130
131 return zone_relations;
132}
133
134static bool update_zone_per_node(const Span<const bNode *> all_nodes,
135 const Span<bNodeTreeZone *> all_zones,
136 const BitGroupVector<> &depend_on_input_flag_array,
137 const Map<const bNode *, bNodeTreeZone *> &zone_by_inout_node,
138 Map<int, int> &r_zone_by_node_id,
139 Vector<int> &r_node_outside_zones)
140{
141 bool found_node_in_multiple_zones = false;
142 for (const int node_i : all_nodes.index_range()) {
143 const bNode &node = *all_nodes[node_i];
144 const BoundedBitSpan depend_on_input_flags = depend_on_input_flag_array[node_i];
145 bNodeTreeZone *parent_zone = nullptr;
146 bits::foreach_1_index(depend_on_input_flags, [&](const int parent_zone_i) {
147 bNodeTreeZone *zone = all_zones[parent_zone_i];
148 if (ELEM(&node, zone->input_node(), zone->output_node())) {
149 return;
150 }
151 if (parent_zone == nullptr) {
152 parent_zone = zone;
153 return;
154 }
155 for (bNodeTreeZone *iter_zone = zone->parent_zone; iter_zone;
156 iter_zone = iter_zone->parent_zone)
157 {
158 if (iter_zone == parent_zone) {
159 /* This zone is nested in the parent zone, so it becomes the new parent of the node. */
160 parent_zone = zone;
161 return;
162 }
163 }
164 for (bNodeTreeZone *iter_zone = parent_zone->parent_zone; iter_zone;
165 iter_zone = iter_zone->parent_zone)
166 {
167 if (iter_zone == zone) {
168 /* This zone is a parent of the current parent of the node, do nothing. */
169 return;
170 }
171 }
172 found_node_in_multiple_zones = true;
173 });
174 if (parent_zone == nullptr) {
175 if (!zone_by_inout_node.contains(&node)) {
176 r_node_outside_zones.append(node.identifier);
177 }
178 }
179 else {
180 r_zone_by_node_id.add(node.identifier, parent_zone->index);
181 }
182 }
183 for (const MapItem<const bNode *, bNodeTreeZone *> item : zone_by_inout_node.items()) {
184 r_zone_by_node_id.add_overwrite(item.key->identifier, item.value->index);
185 }
186 return found_node_in_multiple_zones;
187}
188
190{
191 tree.ensure_topology_cache();
192 for (const bNodeLink *link : tree.all_links()) {
193 if (!link->is_available()) {
194 continue;
195 }
196 if (link->is_muted()) {
197 continue;
198 }
199 if (link->fromnode->is_dangling_reroute()) {
200 continue;
201 }
202 bNodeTreeZone *from_zone = const_cast<bNodeTreeZone *>(
203 tree_zones.get_zone_by_socket(*link->fromsock));
204 bNodeTreeZone *to_zone = const_cast<bNodeTreeZone *>(
205 tree_zones.get_zone_by_socket(*link->tosock));
206 if (from_zone == to_zone) {
207 continue;
208 }
209 BLI_assert(from_zone == nullptr || from_zone->contains_zone_recursively(*to_zone));
210 for (bNodeTreeZone *zone = to_zone; zone != from_zone; zone = zone->parent_zone) {
211 zone->border_links.append(link);
212 }
213 }
214}
215
216static std::unique_ptr<bNodeTreeZones> discover_tree_zones(const bNodeTree &tree)
217{
218 tree.ensure_topology_cache();
219 if (tree.has_available_link_cycle()) {
220 return {};
221 }
222
223 const Span<int> input_types = all_zone_input_node_types();
224 const Span<int> output_types = all_zone_output_node_types();
225
226 std::unique_ptr<bNodeTreeZones> tree_zones = std::make_unique<bNodeTreeZones>();
227 tree_zones->tree = &tree;
228
229 const Span<const bNode *> all_nodes = tree.all_nodes();
230 Map<const bNode *, bNodeTreeZone *> zone_by_inout_node;
231 tree_zones->zones_ptrs = find_zone_nodes(tree, *tree_zones, zone_by_inout_node);
232 for (const std::unique_ptr<bNodeTreeZone> &zone : tree_zones->zones_ptrs) {
233 tree_zones->zones.append(zone.get());
234 }
235
236 const int zones_num = tree_zones->zones.size();
237 const int nodes_num = all_nodes.size();
238 /* A bit for every node-zone-combination. The bit is set when the node is in the zone. */
239 BitGroupVector<> depend_on_input_flag_array(nodes_num, zones_num, false);
240 /* The bit is set when the node depends on the output of the zone. */
241 BitGroupVector<> depend_on_output_flag_array(nodes_num, zones_num, false);
242
243 const Span<const bNode *> sorted_nodes = tree.toposort_left_to_right();
244 for (const bNode *node : sorted_nodes) {
245 const int node_i = node->index();
246 MutableBoundedBitSpan depend_on_input_flags = depend_on_input_flag_array[node_i];
247 MutableBoundedBitSpan depend_on_output_flags = depend_on_output_flag_array[node_i];
248
249 /* Forward all bits from the nodes to the left. */
250 for (const bNodeSocket *input_socket : node->input_sockets()) {
251 if (!input_socket->is_available()) {
252 continue;
253 }
254 for (const bNodeLink *link : input_socket->directly_linked_links()) {
255 if (link->is_muted()) {
256 continue;
257 }
258 const bNode &from_node = *link->fromnode;
259 const int from_node_i = from_node.index();
260 depend_on_input_flags |= depend_on_input_flag_array[from_node_i];
261 depend_on_output_flags |= depend_on_output_flag_array[from_node_i];
262 }
263 }
264 if (input_types.contains(node->type_legacy)) {
265 if (const bNodeTreeZone *zone = zone_by_inout_node.lookup_default(node, nullptr)) {
266 /* Now entering a zone, so set the corresponding bit. */
267 depend_on_input_flags[zone->index].set();
268 }
269 }
270 else if (output_types.contains(node->type_legacy)) {
271 if (const bNodeTreeZone *zone = zone_by_inout_node.lookup_default(node, nullptr)) {
272 /* The output is implicitly linked to the input, so also propagate the bits from there. */
273 if (const bNode *zone_input_node = zone->input_node()) {
274 const int input_node_i = zone_input_node->index();
275 depend_on_input_flags |= depend_on_input_flag_array[input_node_i];
276 depend_on_output_flags |= depend_on_output_flag_array[input_node_i];
277 }
278 /* Now exiting a zone, so change the bits accordingly. */
279 depend_on_input_flags[zone->index].reset();
280 depend_on_output_flags[zone->index].set();
281 }
282 }
283
284 if (bits::has_common_set_bits(depend_on_input_flags, depend_on_output_flags)) {
285 /* A node can not be inside and after a zone at the same time. */
286 return {};
287 }
288 }
289
290 const std::optional<Vector<ZoneRelation>> zone_relations = get_direct_zone_relations(
291 tree_zones->zones, depend_on_input_flag_array);
292 if (!zone_relations) {
293 /* Found cyclic relations. */
294 return {};
295 }
296
297 /* Set parent and child pointers in zones. */
298 for (const ZoneRelation &relation : *zone_relations) {
299 relation.parent->child_zones.append(relation.child);
300 BLI_assert(relation.child->parent_zone == nullptr);
301 relation.child->parent_zone = relation.parent;
302 }
303
304 Set<const bNodeTreeZone *> found_zones;
305 for (bNodeTreeZone *main_zone : tree_zones->zones) {
306 found_zones.clear();
307 for (bNodeTreeZone *zone = main_zone; zone; zone = zone->parent_zone) {
308 if (!found_zones.add(zone)) {
309 /* Found cyclic parent relationships between zones. */
310 return {};
311 }
312 }
313 }
314
315 /* Update depths. */
316 for (bNodeTreeZone *zone : tree_zones->zones) {
317 update_zone_depths(*zone);
318 }
319
320 for (bNodeTreeZone *zone : tree_zones->zones) {
321 if (zone->depth == 0) {
322 tree_zones->root_zones.append(zone);
323 }
324 }
325
326 const bool found_node_in_multiple_zones = update_zone_per_node(
327 all_nodes,
328 tree_zones->zones,
329 depend_on_input_flag_array,
330 zone_by_inout_node,
331 tree_zones->zone_by_node_id,
332 tree_zones->node_ids_outside_zones);
333 if (found_node_in_multiple_zones) {
334 return {};
335 }
336
337 for (const bNode *node : tree.nodes_by_type("NodeGroupOutput")) {
338 if (tree_zones->zone_by_node_id.contains(node->identifier)) {
339 /* Group output nodes must not be in a zone. */
340 return {};
341 }
342 }
343
344 for (const int node_i : all_nodes.index_range()) {
345 const bNode *node = all_nodes[node_i];
346 const int zone_i = tree_zones->zone_by_node_id.lookup_default(node->identifier, -1);
347 if (zone_i == -1) {
348 continue;
349 }
350 bNodeTreeZone &zone = *tree_zones->zones[zone_i];
351 if (ELEM(node->identifier, zone.input_node_id, zone.output_node_id)) {
352 continue;
353 }
354 zone.child_node_ids.append(node->identifier);
355 }
356
357 update_zone_border_links(tree, *tree_zones);
358
359 // std::cout << *tree_zones << std::endl;
360 return tree_zones;
361}
362
364{
365 tree.ensure_topology_cache();
366 tree.runtime->tree_zones_cache_mutex.ensure([&]() {
367 tree.runtime->tree_zones = discover_tree_zones(tree);
368 if (tree.runtime->tree_zones) {
369 tree.runtime->last_valid_zones = tree.runtime->tree_zones;
370 }
371 });
372 return tree.runtime->tree_zones.get();
373}
374
376{
377 const bNodeTreeZones *zones = this->owner;
378 const int zone_i = zones->zone_by_node_id.lookup_default(node.identifier, -1);
379 if (zone_i == -1) {
380 return false;
381 }
382 for (const bNodeTreeZone *zone = zones->zones[zone_i]; zone; zone = zone->parent_zone) {
383 if (zone == this) {
384 return true;
385 }
386 }
387 return false;
388}
389
391{
392 for (const bNodeTreeZone *zone = other_zone.parent_zone; zone; zone = zone->parent_zone) {
393 if (zone == this) {
394 return true;
395 }
396 }
397 return false;
398}
399
401{
402 const bNode &node = socket.owner_node();
403 const bNodeTreeZone *zone = this->get_zone_by_node(node.identifier);
404 if (zone == nullptr) {
405 return zone;
406 }
407 if (zone->input_node_id == node.identifier) {
408 if (socket.is_input()) {
409 return zone->parent_zone;
410 }
411 }
412 if (zone->output_node_id == node.identifier) {
413 if (socket.is_output()) {
414 return zone->parent_zone;
415 }
416 }
417 return zone;
418}
419
421{
422 const int zone_i = this->zone_by_node_id.lookup_default(node_id, -1);
423 if (zone_i == -1) {
424 return nullptr;
425 }
426 return this->zones[zone_i];
427}
428
430 const bNodeTreeZone *to_zone) const
431{
432 if (from_zone == to_zone) {
433 /* Links between zones in the same zone are always allowed. */
434 return true;
435 }
436 if (!from_zone) {
437 /* Links from the root tree can go to any zone. */
438 return true;
439 }
440 if (!to_zone) {
441 /* Links can not leave a zone and connect to a socket in the root tree. */
442 return false;
443 }
444 return from_zone->contains_zone_recursively(*to_zone);
445}
446
448 const bNodeSocket &to) const
449{
450 BLI_assert(from.in_out == SOCK_OUT);
452 const bNodeTreeZone *from_zone = this->get_zone_by_socket(from);
453 const bNodeTreeZone *to_zone = this->get_zone_by_socket(to);
454 return this->link_between_zones_is_allowed(from_zone, to_zone);
455}
456
458 const bNodeTreeZone *outer_zone, const bNodeTreeZone *inner_zone) const
459{
460 BLI_assert(this->link_between_zones_is_allowed(outer_zone, inner_zone));
461 Vector<const bNodeTreeZone *> zones_to_enter;
462 for (const bNodeTreeZone *zone = inner_zone; zone != outer_zone; zone = zone->parent_zone) {
463 zones_to_enter.append(zone);
464 }
465 std::reverse(zones_to_enter.begin(), zones_to_enter.end());
466 return zones_to_enter;
467}
468
474
476 const bNode &output_bnode) const
477{
478 for (const bNode *node : tree.nodes_by_type(this->input_idname)) {
479 if (this->get_corresponding_output_id(*node) == output_bnode.identifier) {
480 return node;
481 }
482 }
483 return nullptr;
484}
485
487 const bNode &input_bnode) const
488{
489 return tree.node_by_id(this->get_corresponding_output_id(input_bnode));
490}
491
493{
494 return const_cast<bNode *>(
495 this->get_corresponding_input(const_cast<const bNodeTree &>(tree), output_bnode));
496}
497
499{
500 return const_cast<bNode *>(
501 this->get_corresponding_output(const_cast<const bNodeTree &>(tree), input_bnode));
502}
503
505{
506 static Vector<const bNodeZoneType *> zone_types;
507 return zone_types;
508};
509
511{
512 get_zone_types_vector().append(&zone_type);
513}
514
519
521{
522 static const Vector<int> node_types = []() {
523 Vector<int> node_types;
524 for (const bNodeZoneType *zone_type : all_zone_types()) {
525 node_types.append(zone_type->input_type);
526 node_types.append(zone_type->output_type);
527 }
528 return node_types;
529 }();
530 return node_types;
531}
532
534{
535 static const Vector<int> node_types = []() {
536 Vector<int> node_types;
537 for (const bNodeZoneType *zone_type : all_zone_types()) {
538 node_types.append(zone_type->input_type);
539 }
540 return node_types;
541 }();
542 return node_types;
543}
544
546{
547 static const Vector<int> node_types = []() {
548 Vector<int> node_types;
549 for (const bNodeZoneType *zone_type : all_zone_types()) {
550 node_types.append(zone_type->output_type);
551 }
552 return node_types;
553 }();
554 return node_types;
555}
556
557const bNodeZoneType *zone_type_by_node_type(const int node_type)
558{
559 for (const bNodeZoneType *zone_type : all_zone_types()) {
560 if (ELEM(node_type, zone_type->input_type, zone_type->output_type)) {
561 return zone_type;
562 }
563 }
564 return nullptr;
565}
566
568{
569 if (!this->input_node_id) {
570 return nullptr;
571 }
572 return this->owner->tree->node_by_id(*this->input_node_id);
573}
574
576{
577 if (!this->output_node_id) {
578 return nullptr;
579 }
580 return this->owner->tree->node_by_id(*this->output_node_id);
581}
582
584{
585 Vector<const bNode *> nodes(node_ids.size());
586 for (const int i : nodes.index_range()) {
587 nodes[i] = tree.node_by_id(node_ids[i]);
588 }
589 return nodes;
590}
591
593{
594 return node_ids_to_vector(*this->owner->tree, this->child_node_ids);
595}
596
601
602std::ostream &operator<<(std::ostream &stream, const bNodeTreeZones &zones)
603{
604 for (const bNodeTreeZone *zone : zones.zones) {
605 stream << *zone;
606 if (zones.zones.last() != zone) {
607 stream << "\n";
608 }
609 }
610 return stream;
611}
612
613std::ostream &operator<<(std::ostream &stream, const bNodeTreeZone &zone)
614{
615 stream << zone.index << ": Parent index: ";
616 if (zone.parent_zone != nullptr) {
617 stream << zone.parent_zone->index;
618 }
619 else {
620 stream << "*";
621 }
622
623 stream << "; Input: " << (zone.input_node() ? zone.input_node()->name : "null");
624 stream << ", Output: " << (zone.output_node() ? zone.output_node()->name : "null");
625
626 stream << "; Border Links: {\n";
627 for (const bNodeLink *border_link : zone.border_links) {
628 stream << " " << border_link->fromnode->name << ": " << border_link->fromsock->name << " -> ";
629 stream << border_link->tonode->name << ": " << border_link->tosock->name << ";\n";
630 }
631 stream << "}.";
632 return stream;
633}
634
635} // namespace blender::bke
#define BLI_assert(a)
Definition BLI_assert.h:46
#define BLI_STRUCT_EQUALITY_OPERATORS_2(Type, m1, m2)
#define ELEM(...)
@ SOCK_OUT
@ SOCK_IN
unsigned long long int uint64_t
Value lookup_default(const Key &key, const Value &default_value) const
Definition BLI_map.hh:570
bool add_overwrite(const Key &key, const Value &value)
Definition BLI_map.hh:325
bool add(const Key &key, const Value &value)
Definition BLI_map.hh:295
Value lookup_default(const Key &key, const Value &default_value) const
Definition BLI_map.hh:570
bool contains(const Key &key) const
Definition BLI_map.hh:353
ItemIterator items() const &
Definition BLI_map.hh:902
bool add(const Key &key)
Definition BLI_set.hh:248
void clear()
Definition BLI_set.hh:551
constexpr int64_t size() const
Definition BLI_span.hh:252
constexpr IndexRange index_range() const
Definition BLI_span.hh:401
constexpr bool contains(const T &value) const
Definition BLI_span.hh:277
int64_t index_of_try(const Key &key) const
IndexRange index_range() const
bool contains(const Key &key) const
Span< Key > as_span() const
void add_new(const Key &key)
int64_t size() const
void remove_and_reorder(const int64_t index)
int64_t append_and_get_index(const T &value)
void append(const T &value)
void extend(Span< T > array)
void append_non_duplicates(const T &value)
bool contains_zone_recursively(const bNodeTreeZone &other_zone) const
Vector< const bNode * > child_nodes() const
std::optional< int > output_node_id
const bNode * output_node() const
Vector< const bNodeLink * > border_links
bool contains_node_recursively(const bNode &node) const
std::optional< int > input_node_id
const bNode * input_node() const
Vector< const bNodeTreeZone * > get_zones_to_enter_from_root(const bNodeTreeZone *zone) const
Vector< const bNodeTreeZone * > get_zones_to_enter(const bNodeTreeZone *outer_zone, const bNodeTreeZone *inner_zone) const
bool link_between_zones_is_allowed(const bNodeTreeZone *from_zone, const bNodeTreeZone *to_zone) const
Vector< const bNode * > nodes_outside_zones() const
Vector< bNodeTreeZone * > zones
const bNodeTreeZone * get_zone_by_node(const int32_t node_id) const
const bNodeTreeZone * get_zone_by_socket(const bNodeSocket &socket) const
bool link_between_sockets_is_allowed(const bNodeSocket &from, const bNodeSocket &to) const
const bNode * get_corresponding_input(const bNodeTree &tree, const bNode &output_bnode) const
virtual const int & get_corresponding_output_id(const bNode &input_bnode) const =0
const bNode * get_corresponding_output(const bNodeTree &tree, const bNode &input_bnode) const
KDTree_3d * tree
#define this
bool has_common_set_bits(const BitSpanT &...args)
void foreach_1_index(const BitSpanT &data, Fn &&fn)
const bNodeZoneType * zone_type_by_node_type(const int node_type)
static void update_zone_depths(bNodeTreeZone &zone)
static std::optional< Vector< ZoneRelation > > get_direct_zone_relations(const Span< bNodeTreeZone * > all_zones, const BitGroupVector<> &depend_on_input_flag_array)
static Vector< const bNodeZoneType * > & get_zone_types_vector()
static Vector< std::unique_ptr< bNodeTreeZone > > find_zone_nodes(const bNodeTree &tree, bNodeTreeZones &owner, Map< const bNode *, bNodeTreeZone * > &r_zone_by_inout_node)
Span< int > all_zone_output_node_types()
static void update_zone_border_links(const bNodeTree &tree, bNodeTreeZones &tree_zones)
Span< const bNodeZoneType * > all_zone_types()
static Vector< const bNode * > node_ids_to_vector(const bNodeTree &tree, const Vector< int > &node_ids)
Span< int > all_zone_node_types()
void register_node_zone_type(const bNodeZoneType &zone_type)
Span< int > all_zone_input_node_types()
static std::unique_ptr< bNodeTreeZones > discover_tree_zones(const bNodeTree &tree)
std::ostream & operator<<(std::ostream &stream, const GeometrySet &geometry_set)
const bNodeTreeZones * get_tree_zones(const bNodeTree &tree)
static bool update_zone_per_node(const Span< const bNode * > all_nodes, const Span< bNodeTreeZone * > all_zones, const BitGroupVector<> &depend_on_input_flag_array, const Map< const bNode *, bNodeTreeZone * > &zone_by_inout_node, Map< int, int > &r_zone_by_node_id, Vector< int > &r_node_outside_zones)
uint64_t get_default_hash(const T &v, const Args &...args)
Definition BLI_hash.hh:233
char name[64]
int32_t identifier
i
Definition text_draw.cc:230