I’m trying to modify the Array modifier by adding a rotation to the relative offset mode.
All I did so far is add a float array variable to line 262 at the end of ArrayModifierData struct in DNA_modifier_types.h as shown below:
typedef struct ArrayModifierData {
...
float rotation[3];
} ArrayModifierData;
This causes hundreds of errors which seem unrelated to the actual file. There’s hundreds so here are the first few:
- Error MSB6006 “cmd.exe” exited with code 1. bf_dna C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 171
- Error C2065 ‘SDNA_TYPE_MAX’: undeclared identifier bf_blenloader E:\blender-git\blender\source\blender\blenloader\intern\writefile.c 513
- Error C4013 ‘SDNA_TYPE_FROM_STRUCT’ undefined; assuming extern returning int bf_blenloader E:\blender-git\blender\source\blender\blenloader\intern\writefile.c 665
- Error C2275 ‘IDProperty’: illegal use of this type as an expression bf_blenloader E:\blender-git\blender\source\blender\blenloader\intern\writefile.c 665
- Error C2275 ‘IDProperty’: illegal use of this type as an expression bf_blenloader E:\blender-git\blender\source\blender\blenloader\intern\writefile.c 709
- Error C2275 ‘IDOverrideStatic’: illegal use of this type as an expression bf_blenloader E:\blender-git\blender\source\blender\blenloader\intern\writefile.c 721
What am I missing? Why can’t I add a variable?