[Bf-blender-cvs] [d5b2979ad50] temp-nodes-group-declarations: Cleanup: Fix typos

Hans Goudey noreply at git.blender.org
Tue Dec 27 16:54:35 CET 2022


Commit: d5b2979ad50a99a3d56853f517d90c0efc9ec027
Author: Hans Goudey
Date:   Tue Dec 27 10:52:44 2022 -0500
Branches: temp-nodes-group-declarations
https://developer.blender.org/rBd5b2979ad50a99a3d56853f517d90c0efc9ec027

Cleanup: Fix typos

===================================================================

M	source/blender/blenkernel/BKE_node.h
M	source/blender/nodes/intern/node_common.cc

===================================================================

diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h
index 75fad9d42d1..5ee3a8410a4 100644
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@ -347,7 +347,7 @@ typedef struct bNodeType {
   NodeDeclareFunction declare;
   /**
    * Declare which sockets the node has for declarations that aren't static per node type.
-   * In orther words, defining this callback means that different nodes of this type can have
+   * In other words, defining this callback means that different nodes of this type can have
    * different declarations and different sockets.
    */
   NodeDeclareDynamicFunction declare_dynamic;
diff --git a/source/blender/nodes/intern/node_common.cc b/source/blender/nodes/intern/node_common.cc
index b6cd72f78ee..514e3f88b2b 100644
--- a/source/blender/nodes/intern/node_common.cc
+++ b/source/blender/nodes/intern/node_common.cc
@@ -124,7 +124,7 @@ bool nodeGroupPoll(const bNodeTree *nodetree,
 
 namespace blender::nodes {
 
-static SocketDeclarationPtr declataion_for_interface_socket(const bNodeSocket &io_socket)
+static SocketDeclarationPtr declaration_for_interface_socket(const bNodeSocket &io_socket)
 {
   SocketDeclarationPtr dst;
   switch (io_socket.type) {
@@ -234,10 +234,10 @@ void node_group_declare_dynamic(const bNodeTree & /*node_tree*/,
 
   /* TODO: Figure out how this should work for custom node trees / #SOCK_CUSTOM. */
   LISTBASE_FOREACH (const bNodeSocket *, input, &group->inputs) {
-    r_declaration.inputs_.append(declataion_for_interface_socket(*input));
+    r_declaration.inputs_.append(declaration_for_interface_socket(*input));
   }
   LISTBASE_FOREACH (const bNodeSocket *, output, &group->outputs) {
-    r_declaration.outputs_.append(declataion_for_interface_socket(*output));
+    r_declaration.outputs_.append(declaration_for_interface_socket(*output));
   }
 }
 
@@ -450,7 +450,7 @@ static void group_input_declare_dynamic(const bNodeTree &node_tree,
                                         NodeDeclaration &r_declaration)
 {
   LISTBASE_FOREACH (const bNodeSocket *, input, &node_tree.inputs) {
-    r_declaration.outputs_.append(declataion_for_interface_socket(*input));
+    r_declaration.outputs_.append(declaration_for_interface_socket(*input));
     r_declaration.outputs_.last()->in_out_ = SOCK_OUT;
   }
   r_declaration.outputs_.append(extend_declaration(SOCK_OUT));
@@ -461,7 +461,7 @@ static void group_output_declare_dynamic(const bNodeTree &node_tree,
                                          NodeDeclaration &r_declaration)
 {
   LISTBASE_FOREACH (const bNodeSocket *, input, &node_tree.outputs) {
-    r_declaration.inputs_.append(declataion_for_interface_socket(*input));
+    r_declaration.inputs_.append(declaration_for_interface_socket(*input));
     r_declaration.inputs_.last()->in_out_ = SOCK_IN;
   }
   r_declaration.inputs_.append(extend_declaration(SOCK_IN));



More information about the Bf-blender-cvs mailing list