Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_uvAlongStroke.c
- This file was moved from source/blender/nodes/shader/nodes/node_shader_uv_along_stroke.cc.
| Show All 11 Lines | |||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2005 Blender Foundation. | * The Original Code is Copyright (C) 2005 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| #include "node_shader_util.hh" | #include "../node_shader_util.h" | ||||
| /* **************** OUTPUT ******************** */ | /* **************** OUTPUT ******************** */ | ||||
| namespace blender::nodes::node_shader_uv_along_stroke_cc { | |||||
| static bNodeSocketTemplate sh_node_uvalongstroke_out[] = { | static bNodeSocketTemplate sh_node_uvalongstroke_out[] = { | ||||
| {SOCK_VECTOR, N_("UV"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | {SOCK_VECTOR, N_("UV"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | ||||
| {-1, ""}, | {-1, ""}, | ||||
| }; | }; | ||||
| } // namespace blender::nodes::node_shader_uv_along_stroke_cc | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_uvalongstroke() | void register_node_type_sh_uvalongstroke(void) | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_uv_along_stroke_cc; | |||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_UVALONGSTROKE, "UV Along Stroke", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_UVALONGSTROKE, "UV Along Stroke", NODE_CLASS_INPUT, 0); | ||||
| node_type_socket_templates(&ntype, nullptr, file_ns::sh_node_uvalongstroke_out); | node_type_socket_templates(&ntype, NULL, sh_node_uvalongstroke_out); | ||||
| node_type_init(&ntype, nullptr); | node_type_init(&ntype, NULL); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||