~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/makesrna/intern/rna_animviz.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-05-12 20:02:22 UTC
  • mfrom: (14.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120512200222-lznjs2cxzaq96wua
Tags: 2.63a-1
* New upstream bugfix release
  + debian/patches/: re-worked since source code changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include "WM_types.h"
41
41
 
 
42
/* Which part of bone(s) get baked */
 
43
// TODO: icons?
 
44
EnumPropertyItem motionpath_bake_location_items[] = {
 
45
        {MOTIONPATH_BAKE_HEADS, "HEADS", 0, "Heads", "Calculate bone paths from heads"},
 
46
        {0, "TAILS", 0, "Tails", "Calculate bone paths from tails"},
 
47
        //{MOTIONPATH_BAKE_CENTERS, "CENTROID", 0, "Centers", "Calculate bone paths from center of mass"},
 
48
        {0, NULL, 0, NULL, NULL}};
 
49
 
42
50
#ifdef RNA_RUNTIME
43
51
 
44
52
static PointerRNA rna_AnimViz_onion_skinning_get(PointerRNA *ptr)
241
249
                                        "Display Paths of poses within a fixed number of frames around the current frame"},
242
250
                {MOTIONPATH_TYPE_RANGE, "RANGE", 0, "In Range", "Display Paths of poses within specified range"},
243
251
                {0, NULL, 0, NULL, NULL}};
244
 
        static const EnumPropertyItem prop_location_items[] = {
245
 
                {MOTIONPATH_BAKE_HEADS, "HEADS", 0, "Heads", "Calculate bone paths from heads"},
246
 
                {0, "TAILS", 0, "Tails", "Calculate bone paths from tails"},
247
 
                {0, NULL, 0, NULL, NULL}};
248
252
        
249
253
        srna = RNA_def_struct(brna, "AnimVizMotionPaths", NULL);
250
254
        RNA_def_struct_sdna(srna, "bAnimVizSettings");
260
264
        
261
265
        prop = RNA_def_property(srna, "bake_location", PROP_ENUM, PROP_NONE);
262
266
        RNA_def_property_enum_bitflag_sdna(prop, NULL, "path_bakeflag");
263
 
        RNA_def_property_enum_items(prop, prop_location_items);
 
267
        RNA_def_property_enum_items(prop, motionpath_bake_location_items);
264
268
        RNA_def_property_ui_text(prop, "Bake Location", "When calculating Bone Paths, use Head or Tips");
265
269
        RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); /* XXX since this is only for 3d-view drawing */
266
270