Geometry Nodes: Change point translate and scale node defaults

Since these nodes are usually used for more basic operations and the
attribute nodes are used when more complexity is necessary, it makes
sense to give these nodes more accessible defaults-- hopefully this can
make learning about the core concepts of geometry nodes a bit easier.
This commit is contained in:
Hans Goudey 2021-04-02 11:45:05 -05:00
parent 8bd0bde012
commit bd9c479475
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ static void geo_node_point_scale_init(bNodeTree *UNUSED(tree), bNode *node)
NodeGeometryPointScale *data = (NodeGeometryPointScale *)MEM_callocN(
sizeof(NodeGeometryPointScale), __func__);
data->input_type = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE;
data->input_type = GEO_NODE_ATTRIBUTE_INPUT_VECTOR;
node->storage = data;
}

View File

@ -85,7 +85,7 @@ static void geo_node_point_translate_init(bNodeTree *UNUSED(tree), bNode *node)
NodeGeometryPointTranslate *data = (NodeGeometryPointTranslate *)MEM_callocN(
sizeof(NodeGeometryPointTranslate), __func__);
data->input_type = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE;
data->input_type = GEO_NODE_ATTRIBUTE_INPUT_VECTOR;
node->storage = data;
}