This patch adds a new node called "Special Characters" with two string outputs: "Line Break" and "Tab".
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
I think the functionality is fine, just adding Jacques since I want to be sure this is what he had in mind for the double constant output function.
| source/blender/nodes/function/nodes/node_fn_input_special_characters.cc | ||
|---|---|---|
| 50–52 | Using the blender namespace explicitly shouldn't be necessary here, since this is already in blender::nodes. | |
| source/blender/nodes/function/nodes/node_fn_input_special_characters.cc | ||
|---|---|---|
| 50–52 | Oops, I thought I deleted this comment, because it's not correct. Just ignore it. | |
| source/blender/nodes/function/nodes/node_fn_input_special_characters.cc | ||
|---|---|---|
| 50–52 | It should be correct though. This can easily be in the blender::nodes namespace, or not? | |
| 55 | Just use the for (const int i : mask) loop here. mask.foreach_index can be faster sometimes, but here it's just not worth the additional complexity. In practice the mask will only contain a single element anyway, because the output is constant. | |
| source/blender/nodes/function/nodes/node_fn_input_special_characters.cc | ||
|---|---|---|
| 50–52 | I looked at the other nodes and they only use the nodes namespace for the declaration, but I agree it would be nicer to have the whole node in it (except for register_node_type_fn_input_special_characters). | |
