diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-03 05:44:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-03 05:44:00 +0400 |
commit | 05884e09beed97669fbec4d35b4e9427bfe997d3 (patch) | |
tree | fa464b01646aa2d1c352ef632429999e718e40b0 /source/blender/makesrna/intern | |
parent | bcf6726b0b1dd78d8bf6c0b843aa5b2e833dadaf (diff) |
- rna bugfix where ints were not clamped and would overflow, now raise an error and print valid range.
- fixed WM_OT_context_cycle_int was causing problems with int overflow, now it cycles properly.
- rename QUOTE macro to STRINGIFY_ARG, and added STRINGIFY, which is used more often since it gives the value as a string.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 36385759c5a..a97033200de 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -515,15 +515,12 @@ static void init(void) { memset(nodes, 0, sizeof nodes); - #define Str(x) #x - #define DefNode(Category, ID, DefFunc, EnumName, StructName, UIName, UIDesc) \ - reg_node(ID, Category_##Category, EnumName, Str(Category##StructName), #Category, UIName, UIDesc); + reg_node(ID, Category_##Category, EnumName, STRINGIFY_ARG(Category##StructName), #Category, UIName, UIDesc); #include "rna_nodetree_types.h" #undef DefNode - #undef Str reg_node(NODE_GROUP, Category_GroupNode, "GROUP", "NodeGroup", "Node", "Group", ""); } |