} EditBone;
+EditBone *addEditBone(char *name, struct ListBase *ebones, struct bArmature *arm);
+
+float rollBoneToVector(EditBone *bone, float new_up_axis[3]);
+ void make_boneList(struct ListBase *list, struct ListBase *bones, EditBone *parent);
+ void editbones_to_armature (struct ListBase *list, struct Object *ob);
void adduplicate_armature(void);
void addvert_armature(void);
char skgen_postpro;
char skgen_postpro_passes;
char skgen_subdivisions[3];
+ char skgen_multi_level;
+ char skgen_optimisation_method;
+
+ char tpad[6];
+ /* Skeleton Sketching */
+ char bone_sketching;
+ char skgen_subdivision_number;
+
/* Alt+RMB option */
char edge_mode;
- char pad3[2];
++ char pad3[6];
} ToolSettings;
/* Used by all brushes to store their properties, which can be directly set
#define RETOPO_ELLIPSE 4
/* toolsettings->skgen_options */
- #define SKGEN_FILTER_INTERNAL 1
- #define SKGEN_FILTER_EXTERNAL 2
- #define SKGEN_SYMMETRY 4
- #define SKGEN_CUT_LENGTH 8
- #define SKGEN_CUT_ANGLE 16
- #define SKGEN_CUT_CORRELATION 32
+ #define SKGEN_FILTER_INTERNAL (1 << 0)
+ #define SKGEN_FILTER_EXTERNAL (1 << 1)
+ #define SKGEN_SYMMETRY (1 << 2)
+ #define SKGEN_CUT_LENGTH (1 << 3)
+ #define SKGEN_CUT_ANGLE (1 << 4)
+ #define SKGEN_CUT_CORRELATION (1 << 5)
+ #define SKGEN_HARMONIC (1 << 6)
+ #define SKGEN_STICK_TO_EMBEDDING (1 << 7)
+ #define SKGEN_ADAPTIVE_DISTANCE (1 << 8)
+ #define SKGEN_FILTER_SMART (1 << 9)
+ #define SKGEN_DISP_LENGTH (1 << 10)
+ #define SKGEN_DISP_WEIGHT (1 << 11)
+ #define SKGEN_DISP_ORIG (1 << 12)
+ #define SKGEN_DISP_EMBED (1 << 13)
+ #define SKGEN_DISP_INDEX (1 << 14)
+#define SKGEN_CUT_FIXED 64
#define SKGEN_SUB_LENGTH 0
#define SKGEN_SUB_ANGLE 1
if (BPY_do_spacehandlers(sa, event, val, SPACEHANDLER_VIEW3D_EVENT))
return; /* return if event was processed (swallowed) by handler(s) */
}
-
+ #endif
+ if(BIF_paintSketch(LEFTMOUSE)) return;
if(gpencil_do_paint(sa, L_MOUSE)) return;
if(BIF_do_manipulator(sa)) return;
}