Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_script.c
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2005 Blender Foundation. | * The Original Code is Copyright (C) 2005 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup shdnodes | * \ingroup shdnodes | ||||
| */ | */ | ||||
| #include "node_shader_util.h" | #include "node_shader_utils.h" | ||||
| /* **************** Script ******************** */ | /* **************** Script ******************** */ | ||||
| static void init(bNodeTree *UNUSED(ntree), bNode *node) | static void init(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeShaderScript *nss = MEM_callocN(sizeof(NodeShaderScript), "shader script node"); | NodeShaderScript *nss = MEM_callocN(sizeof(NodeShaderScript), "shader script node"); | ||||
| node->storage = nss; | node->storage = nss; | ||||
| } | } | ||||
| Show All 38 Lines | |||||