Blender  V3.3
rna_action.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include <stdlib.h>
8 
9 #include "DNA_action_types.h"
10 #include "DNA_anim_types.h"
11 #include "DNA_scene_types.h"
12 
13 #include "MEM_guardedalloc.h"
14 
15 #include "BLI_utildefines.h"
16 
17 #include "BLT_translation.h"
18 
19 #include "BKE_action.h"
20 
21 #include "RNA_access.h"
22 #include "RNA_define.h"
23 #include "RNA_enum_types.h"
24 
25 #include "rna_internal.h"
26 
27 #include "WM_types.h"
28 
29 #ifdef RNA_RUNTIME
30 
31 # include "BLI_math_base.h"
32 
33 # include "BKE_fcurve.h"
34 
35 # include "DEG_depsgraph.h"
36 
37 # include "ED_keyframing.h"
38 
39 # include "WM_api.h"
40 
41 static void rna_ActionGroup_channels_next(CollectionPropertyIterator *iter)
42 {
43  ListBaseIterator *internal = &iter->internal.listbase;
44  FCurve *fcu = (FCurve *)internal->link;
45  bActionGroup *grp = fcu->grp;
46 
47  /* only continue if the next F-Curve (if existent) belongs in the same group */
48  if ((fcu->next) && (fcu->next->grp == grp)) {
49  internal->link = (Link *)fcu->next;
50  }
51  else {
52  internal->link = NULL;
53  }
54 
55  iter->valid = (internal->link != NULL);
56 }
57 
58 static bActionGroup *rna_Action_groups_new(bAction *act, const char name[])
59 {
60  return action_groups_add_new(act, name);
61 }
62 
63 static void rna_Action_groups_remove(bAction *act, ReportList *reports, PointerRNA *agrp_ptr)
64 {
65  bActionGroup *agrp = agrp_ptr->data;
66  FCurve *fcu, *fcn;
67 
68  /* try to remove the F-Curve from the action */
69  if (BLI_remlink_safe(&act->groups, agrp) == false) {
70  BKE_reportf(reports,
71  RPT_ERROR,
72  "Action group '%s' not found in action '%s'",
73  agrp->name,
74  act->id.name + 2);
75  return;
76  }
77 
78  /* Move every one of the group's F-Curves out into the Action again. */
79  for (fcu = agrp->channels.first; (fcu) && (fcu->grp == agrp); fcu = fcn) {
80  fcn = fcu->next;
81 
82  /* remove from group */
84 
85  /* tack onto the end */
86  BLI_addtail(&act->curves, fcu);
87  }
88 
89  MEM_freeN(agrp);
90  RNA_POINTER_INVALIDATE(agrp_ptr);
91 
94 }
95 
96 static FCurve *rna_Action_fcurve_new(bAction *act,
97  Main *bmain,
98  ReportList *reports,
99  const char *data_path,
100  int index,
101  const char *group)
102 {
103  if (group && group[0] == '\0') {
104  group = NULL;
105  }
106 
107  if (data_path[0] == '\0') {
108  BKE_report(reports, RPT_ERROR, "F-Curve data path empty, invalid argument");
109  return NULL;
110  }
111 
112  /* Annoying, check if this exists. */
113  if (ED_action_fcurve_find(act, data_path, index)) {
114  BKE_reportf(reports,
115  RPT_ERROR,
116  "F-Curve '%s[%d]' already exists in action '%s'",
117  data_path,
118  index,
119  act->id.name + 2);
120  return NULL;
121  }
122  return ED_action_fcurve_ensure(bmain, act, group, NULL, data_path, index);
123 }
124 
125 static FCurve *rna_Action_fcurve_find(bAction *act,
126  ReportList *reports,
127  const char *data_path,
128  int index)
129 {
130  if (data_path[0] == '\0') {
131  BKE_report(reports, RPT_ERROR, "F-Curve data path empty, invalid argument");
132  return NULL;
133  }
134 
135  /* Returns NULL if not found. */
136  return BKE_fcurve_find(&act->curves, data_path, index);
137 }
138 
139 static void rna_Action_fcurve_remove(bAction *act, ReportList *reports, PointerRNA *fcu_ptr)
140 {
141  FCurve *fcu = fcu_ptr->data;
142  if (fcu->grp) {
143  if (BLI_findindex(&act->groups, fcu->grp) == -1) {
144  BKE_reportf(reports,
145  RPT_ERROR,
146  "F-Curve's action group '%s' not found in action '%s'",
147  fcu->grp->name,
148  act->id.name + 2);
149  return;
150  }
151 
153  BKE_fcurve_free(fcu);
154  RNA_POINTER_INVALIDATE(fcu_ptr);
155  }
156  else {
157  if (BLI_findindex(&act->curves, fcu) == -1) {
158  BKE_reportf(reports, RPT_ERROR, "F-Curve not found in action '%s'", act->id.name + 2);
159  return;
160  }
161 
162  BLI_remlink(&act->curves, fcu);
163  BKE_fcurve_free(fcu);
164  RNA_POINTER_INVALIDATE(fcu_ptr);
165  }
166 
169 }
170 
171 static void rna_Action_fcurve_clear(bAction *act)
172 {
175 }
176 
177 static TimeMarker *rna_Action_pose_markers_new(bAction *act, const char name[])
178 {
179  TimeMarker *marker = MEM_callocN(sizeof(TimeMarker), "TimeMarker");
180  marker->flag = 1;
181  marker->frame = 1;
182  BLI_strncpy_utf8(marker->name, name, sizeof(marker->name));
183  BLI_addtail(&act->markers, marker);
184  return marker;
185 }
186 
187 static void rna_Action_pose_markers_remove(bAction *act,
188  ReportList *reports,
189  PointerRNA *marker_ptr)
190 {
191  TimeMarker *marker = marker_ptr->data;
192  if (!BLI_remlink_safe(&act->markers, marker)) {
193  BKE_reportf(reports,
194  RPT_ERROR,
195  "Timeline marker '%s' not found in action '%s'",
196  marker->name,
197  act->id.name + 2);
198  return;
199  }
200 
201  MEM_freeN(marker);
202  RNA_POINTER_INVALIDATE(marker_ptr);
203 }
204 
205 static PointerRNA rna_Action_active_pose_marker_get(PointerRNA *ptr)
206 {
207  bAction *act = (bAction *)ptr->data;
209  ptr, &RNA_TimelineMarker, BLI_findlink(&act->markers, act->active_marker - 1));
210 }
211 
212 static void rna_Action_active_pose_marker_set(PointerRNA *ptr,
213  PointerRNA value,
214  struct ReportList *UNUSED(reports))
215 {
216  bAction *act = (bAction *)ptr->data;
217  act->active_marker = BLI_findindex(&act->markers, value.data) + 1;
218 }
219 
220 static int rna_Action_active_pose_marker_index_get(PointerRNA *ptr)
221 {
222  bAction *act = (bAction *)ptr->data;
223  return MAX2(act->active_marker - 1, 0);
224 }
225 
226 static void rna_Action_active_pose_marker_index_set(PointerRNA *ptr, int value)
227 {
228  bAction *act = (bAction *)ptr->data;
229  act->active_marker = value + 1;
230 }
231 
232 static void rna_Action_active_pose_marker_index_range(
233  PointerRNA *ptr, int *min, int *max, int *UNUSED(softmin), int *UNUSED(softmax))
234 {
235  bAction *act = (bAction *)ptr->data;
236 
237  *min = 0;
238  *max = max_ii(0, BLI_listbase_count(&act->markers) - 1);
239 }
240 
241 static void rna_Action_frame_range_get(PointerRNA *ptr, float *r_values)
242 {
243  BKE_action_get_frame_range((bAction *)ptr->owner_id, &r_values[0], &r_values[1]);
244 }
245 
246 static void rna_Action_frame_range_set(PointerRNA *ptr, const float *values)
247 {
249 
250  data->flag |= ACT_FRAME_RANGE;
251  data->frame_start = values[0];
252  data->frame_end = values[1];
253  CLAMP_MIN(data->frame_end, data->frame_start);
254 }
255 
256 static void rna_Action_curve_frame_range_get(PointerRNA *ptr, float *values)
257 { /* don't include modifiers because they too easily can have very large
258  * ranges: MINAFRAMEF to MAXFRAMEF. */
259  calc_action_range((bAction *)ptr->owner_id, values, values + 1, false);
260 }
261 
262 static void rna_Action_use_frame_range_set(PointerRNA *ptr, bool value)
263 {
265 
266  if (value) {
267  /* If the frame range is blank, initialize it by scanning F-Curves. */
268  if ((data->frame_start == data->frame_end) && (data->frame_start == 0)) {
269  calc_action_range(data, &data->frame_start, &data->frame_end, false);
270  }
271 
272  data->flag |= ACT_FRAME_RANGE;
273  }
274  else {
275  data->flag &= ~ACT_FRAME_RANGE;
276  }
277 }
278 
279 static void rna_Action_start_frame_set(PointerRNA *ptr, float value)
280 {
282 
283  data->frame_start = value;
284  CLAMP_MIN(data->frame_end, data->frame_start);
285 }
286 
287 static void rna_Action_end_frame_set(PointerRNA *ptr, float value)
288 {
290 
291  data->frame_end = value;
292  CLAMP_MAX(data->frame_start, data->frame_end);
293 }
294 
295 /* Used to check if an action (value pointer)
296  * is suitable to be assigned to the ID-block that is ptr. */
298 {
299  ID *srcId = ptr->owner_id;
300  bAction *act = (bAction *)value.owner_id;
301 
302  if (act) {
303  /* there can still be actions that will have undefined id-root
304  * (i.e. floating "action-library" members) which we will not
305  * be able to resolve an idroot for automatically, so let these through
306  */
307  if (act->idroot == 0) {
308  return 1;
309  }
310  else if (srcId) {
311  return GS(srcId->name) == act->idroot;
312  }
313  }
314 
315  return 0;
316 }
317 
318 /* Used to check if an action (value pointer)
319  * can be assigned to Action Editor given current mode. */
321 {
322  SpaceAction *saction = (SpaceAction *)ptr->data;
323  bAction *act = (bAction *)value.owner_id;
324 
325  if (act) {
326  /* there can still be actions that will have undefined id-root
327  * (i.e. floating "action-library" members) which we will not
328  * be able to resolve an idroot for automatically, so let these through
329  */
330  if (act->idroot == 0) {
331  return 1;
332  }
333 
334  if (saction) {
335  if (saction->mode == SACTCONT_ACTION) {
336  /* this is only Object-level for now... */
337  return act->idroot == ID_OB;
338  }
339  else if (saction->mode == SACTCONT_SHAPEKEY) {
340  /* obviously shapekeys only */
341  return act->idroot == ID_KE;
342  }
343  }
344  }
345 
346  return 0;
347 }
348 
349 static char *rna_DopeSheet_path(const PointerRNA *UNUSED(ptr))
350 {
351  return BLI_strdup("dopesheet");
352 }
353 
354 #else
355 
356 static void rna_def_dopesheet(BlenderRNA *brna)
357 {
358  StructRNA *srna;
359  PropertyRNA *prop;
360 
361  srna = RNA_def_struct(brna, "DopeSheet", NULL);
362  RNA_def_struct_sdna(srna, "bDopeSheet");
363  RNA_def_struct_path_func(srna, "rna_DopeSheet_path");
365  srna, "Dope Sheet", "Settings for filtering the channels shown in animation editors");
366 
367  /* Source of DopeSheet data */
368  /* XXX: make this obsolete? */
369  prop = RNA_def_property(srna, "source", PROP_POINTER, PROP_NONE);
370  RNA_def_property_struct_type(prop, "ID");
372  prop, "Source", "ID-Block representing source data, usually ID_SCE (i.e. Scene)");
373 
374  /* Show data-block filters */
375  prop = RNA_def_property(srna, "show_datablock_filters", PROP_BOOLEAN, PROP_NONE);
378  prop,
379  "Show Data-Block Filters",
380  "Show options for whether channels related to certain types of data are included");
381  RNA_def_property_ui_icon(prop, ICON_DISCLOSURE_TRI_RIGHT, 1);
383 
384  /* General Filtering Settings */
385  prop = RNA_def_property(srna, "show_only_selected", PROP_BOOLEAN, PROP_NONE);
388  prop, "Only Show Selected", "Only include channels relating to selected objects and data");
389  RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, 0);
391 
392  prop = RNA_def_property(srna, "show_hidden", PROP_BOOLEAN, PROP_NONE);
395  prop, "Show Hidden", "Include channels from objects/bone that are not visible");
396  RNA_def_property_ui_icon(prop, ICON_OBJECT_HIDDEN, 0);
398 
399  prop = RNA_def_property(srna, "use_datablock_sort", PROP_BOOLEAN, PROP_NONE);
402  "Sort Data-Blocks",
403  "Alphabetically sorts data-blocks - mainly objects in the scene "
404  "(disable to increase viewport speed)");
405  RNA_def_property_ui_icon(prop, ICON_SORTALPHA, 0);
407 
408  prop = RNA_def_property(srna, "use_filter_invert", PROP_BOOLEAN, PROP_NONE);
410  RNA_def_property_ui_text(prop, "Invert", "Invert filter search");
411  RNA_def_property_ui_icon(prop, ICON_ZOOM_IN, 0);
413 
414  /* Debug Filtering Settings */
415  prop = RNA_def_property(srna, "show_only_errors", PROP_BOOLEAN, PROP_NONE);
418  "Only Show Errors",
419  "Only include F-Curves and drivers that are disabled or have errors");
420  RNA_def_property_ui_icon(prop, ICON_ERROR, 0);
422 
423  /* Object Collection Filtering Settings */
424  prop = RNA_def_property(srna, "filter_collection", PROP_POINTER, PROP_NONE);
425  RNA_def_property_pointer_sdna(prop, NULL, "filter_grp");
428  prop, "Filtering Collection", "Collection that included object should be a member of");
430 
431  /* FCurve Display Name Search Settings */
432  prop = RNA_def_property(srna, "filter_fcurve_name", PROP_STRING, PROP_NONE);
433  RNA_def_property_string_sdna(prop, NULL, "searchstr");
434  RNA_def_property_ui_text(prop, "F-Curve Name Filter", "F-Curve live filtering string");
435  RNA_def_property_ui_icon(prop, ICON_VIEWZOOM, 0);
438 
439  /* NLA Name Search Settings (Shared with FCurve setting, but with different labels) */
440  prop = RNA_def_property(srna, "filter_text", PROP_STRING, PROP_NONE);
441  RNA_def_property_string_sdna(prop, NULL, "searchstr");
442  RNA_def_property_ui_text(prop, "Name Filter", "Live filtering string");
444  RNA_def_property_ui_icon(prop, ICON_VIEWZOOM, 0);
446 
447  /* Multi-word fuzzy search option for name/text filters */
448  prop = RNA_def_property(srna, "use_multi_word_filter", PROP_BOOLEAN, PROP_NONE);
451  "Multi-Word Fuzzy Filter",
452  "Perform fuzzy/multi-word matching.\n"
453  "Warning: May be slow");
454  RNA_def_property_ui_icon(prop, ICON_SORTALPHA, 0);
456 
457  /* NLA Specific Settings */
458  prop = RNA_def_property(srna, "show_missing_nla", PROP_BOOLEAN, PROP_NONE);
461  "Include Missing NLA",
462  "Include animation data-blocks with no NLA data (NLA editor only)");
463  RNA_def_property_ui_icon(prop, ICON_ACTION, 0);
465 
466  /* Summary Settings (DopeSheet editors only) */
467  prop = RNA_def_property(srna, "show_summary", PROP_BOOLEAN, PROP_NONE);
470  prop, "Display Summary", "Display an additional 'summary' line (Dope Sheet editors only)");
471  RNA_def_property_ui_icon(prop, ICON_BORDERMOVE, 0);
473 
474  prop = RNA_def_property(srna, "show_expanded_summary", PROP_BOOLEAN, PROP_NONE);
477  prop,
478  "Collapse Summary",
479  "Collapse summary when shown, so all other channels get hidden (Dope Sheet editors only)");
481 
482  /* General DataType Filtering Settings */
483  prop = RNA_def_property(srna, "show_transforms", PROP_BOOLEAN, PROP_NONE);
486  prop,
487  "Display Transforms",
488  "Include visualization of object-level animation data (mostly transforms)");
489  RNA_def_property_ui_icon(prop, ICON_ORIENTATION_GLOBAL, 0); /* XXX? */
491 
492  prop = RNA_def_property(srna, "show_shapekeys", PROP_BOOLEAN, PROP_NONE);
495  prop, "Display Shape Keys", "Include visualization of shape key related animation data");
496  RNA_def_property_ui_icon(prop, ICON_SHAPEKEY_DATA, 0);
498 
499  prop = RNA_def_property(srna, "show_modifiers", PROP_BOOLEAN, PROP_NONE);
502  prop,
503  "Display Modifier Data",
504  "Include visualization of animation data related to data-blocks linked to modifiers");
505  RNA_def_property_ui_icon(prop, ICON_MODIFIER_DATA, 0);
507 
508  prop = RNA_def_property(srna, "show_meshes", PROP_BOOLEAN, PROP_NONE);
511  prop, "Display Meshes", "Include visualization of mesh related animation data");
512  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_MESH, 0);
514 
515  prop = RNA_def_property(srna, "show_lattices", PROP_BOOLEAN, PROP_NONE);
518  prop, "Display Lattices", "Include visualization of lattice related animation data");
519  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_LATTICE, 0);
521 
522  prop = RNA_def_property(srna, "show_cameras", PROP_BOOLEAN, PROP_NONE);
525  prop, "Display Camera", "Include visualization of camera related animation data");
526  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_CAMERA, 0);
528 
529  prop = RNA_def_property(srna, "show_materials", PROP_BOOLEAN, PROP_NONE);
532  prop, "Display Material", "Include visualization of material related animation data");
533  RNA_def_property_ui_icon(prop, ICON_MATERIAL_DATA, 0);
535 
536  prop = RNA_def_property(srna, "show_lights", PROP_BOOLEAN, PROP_NONE);
539  prop, "Display Light", "Include visualization of light related animation data");
540  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_LIGHT, 0);
542 
543  prop = RNA_def_property(srna, "show_linestyles", PROP_BOOLEAN, PROP_NONE);
546  prop, "Display Line Style", "Include visualization of Line Style related Animation data");
547  RNA_def_property_ui_icon(prop, ICON_LINE_DATA, 0);
549 
550  prop = RNA_def_property(srna, "show_textures", PROP_BOOLEAN, PROP_NONE);
553  prop, "Display Texture", "Include visualization of texture related animation data");
554  RNA_def_property_ui_icon(prop, ICON_TEXTURE_DATA, 0);
556 
557  prop = RNA_def_property(srna, "show_curves", PROP_BOOLEAN, PROP_NONE);
560  prop, "Display Curve", "Include visualization of curve related animation data");
561  RNA_def_property_ui_icon(prop, ICON_CURVE_DATA, 0);
563 
564  prop = RNA_def_property(srna, "show_worlds", PROP_BOOLEAN, PROP_NONE);
567  prop, "Display World", "Include visualization of world related animation data");
568  RNA_def_property_ui_icon(prop, ICON_WORLD_DATA, 0);
570 
571  prop = RNA_def_property(srna, "show_scenes", PROP_BOOLEAN, PROP_NONE);
574  prop, "Display Scene", "Include visualization of scene related animation data");
575  RNA_def_property_ui_icon(prop, ICON_SCENE_DATA, 0);
577 
578  prop = RNA_def_property(srna, "show_particles", PROP_BOOLEAN, PROP_NONE);
581  prop, "Display Particle", "Include visualization of particle related animation data");
582  RNA_def_property_ui_icon(prop, ICON_PARTICLE_DATA, 0);
584 
585  prop = RNA_def_property(srna, "show_metaballs", PROP_BOOLEAN, PROP_NONE);
588  prop, "Display Metaball", "Include visualization of metaball related animation data");
589  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_META, 0);
591 
592  prop = RNA_def_property(srna, "show_armatures", PROP_BOOLEAN, PROP_NONE);
595  prop, "Display Armature", "Include visualization of armature related animation data");
596  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_ARMATURE, 0);
598 
599  prop = RNA_def_property(srna, "show_nodes", PROP_BOOLEAN, PROP_NONE);
602  prop, "Display Node", "Include visualization of node related animation data");
603  RNA_def_property_ui_icon(prop, ICON_NODETREE, 0);
605 
606  prop = RNA_def_property(srna, "show_speakers", PROP_BOOLEAN, PROP_NONE);
609  prop, "Display Speaker", "Include visualization of speaker related animation data");
610  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_SPEAKER, 0);
612 
613  prop = RNA_def_property(srna, "show_cache_files", PROP_BOOLEAN, PROP_NONE);
616  prop, "Display Cache Files", "Include visualization of cache file related animation data");
617  RNA_def_property_ui_icon(prop, ICON_FILE, 0);
619 
620  prop = RNA_def_property(srna, "show_hair_curves", PROP_BOOLEAN, PROP_NONE);
623  prop, "Display Hair", "Include visualization of hair related animation data");
624  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_CURVES, 0);
626 
627  prop = RNA_def_property(srna, "show_pointclouds", PROP_BOOLEAN, PROP_NONE);
630  prop, "Display Point Cloud", "Include visualization of point cloud related animation data");
631  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_POINTCLOUD, 0);
633 
634  prop = RNA_def_property(srna, "show_volumes", PROP_BOOLEAN, PROP_NONE);
637  prop, "Display Volume", "Include visualization of volume related animation data");
638  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_VOLUME, 0);
640 
641  prop = RNA_def_property(srna, "show_gpencil", PROP_BOOLEAN, PROP_NONE);
644  prop,
645  "Display Grease Pencil",
646  "Include visualization of Grease Pencil related animation data and frames");
647  RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_GREASEPENCIL, 0);
649 
650  prop = RNA_def_property(srna, "show_movieclips", PROP_BOOLEAN, PROP_NONE);
653  prop, "Display Movie Clips", "Include visualization of movie clip related animation data");
654  RNA_def_property_ui_icon(prop, ICON_TRACKER, 0);
656 }
657 
659 {
660  StructRNA *srna;
661  PropertyRNA *prop;
662 
663  srna = RNA_def_struct(brna, "ActionGroup", NULL);
664  RNA_def_struct_sdna(srna, "bActionGroup");
665  RNA_def_struct_ui_text(srna, "Action Group", "Groups of F-Curves");
666 
667  prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
668  RNA_def_property_ui_text(prop, "Name", "");
669  RNA_def_struct_name_property(srna, prop);
671 
672  /* WARNING: be very careful when working with this list, since the endpoint is not
673  * defined like a standard ListBase. Adding/removing channels from this list needs
674  * extreme care, otherwise the F-Curve list running through adjacent groups does
675  * not match up with the one stored in the Action, resulting in curves which do not
676  * show up in animation editors. In extreme cases, animation may also selectively
677  * fail to play back correctly.
678  *
679  * If such changes are required, these MUST go through the API functions for manipulating
680  * these F-Curve groupings. Also, note that groups only apply in actions ONLY.
681  */
682  prop = RNA_def_property(srna, "channels", PROP_COLLECTION, PROP_NONE);
683  RNA_def_property_collection_sdna(prop, NULL, "channels", NULL);
684  RNA_def_property_struct_type(prop, "FCurve");
686  prop, NULL, "rna_ActionGroup_channels_next", NULL, NULL, NULL, NULL, NULL, NULL);
687  RNA_def_property_ui_text(prop, "Channels", "F-Curves in this group");
688 
689  prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
691  RNA_def_property_ui_text(prop, "Select", "Action group is selected");
693 
694  prop = RNA_def_property(srna, "lock", PROP_BOOLEAN, PROP_NONE);
696  RNA_def_property_ui_text(prop, "Lock", "Action group is locked");
698 
699  prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE);
701  RNA_def_property_ui_text(prop, "Mute", "Action group is muted");
703 
704  prop = RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE);
707  RNA_def_property_ui_text(prop, "Expanded", "Action group is expanded except in graph editor");
709 
710  prop = RNA_def_property(srna, "show_expanded_graph", PROP_BOOLEAN, PROP_NONE);
714  prop, "Expanded in Graph Editor", "Action group is expanded in graph editor");
716 
717  prop = RNA_def_property(srna, "use_pin", PROP_BOOLEAN, PROP_NONE);
720  RNA_def_property_ui_text(prop, "Pin in Graph Editor", "");
722 
723  /* color set */
725 }
726 
727 /* fcurve.keyframe_points */
728 static void rna_def_action_groups(BlenderRNA *brna, PropertyRNA *cprop)
729 {
730  StructRNA *srna;
731 
732  FunctionRNA *func;
733  PropertyRNA *parm;
734 
735  RNA_def_property_srna(cprop, "ActionGroups");
736  srna = RNA_def_struct(brna, "ActionGroups", NULL);
737  RNA_def_struct_sdna(srna, "bAction");
738  RNA_def_struct_ui_text(srna, "Action Groups", "Collection of action groups");
739 
740  func = RNA_def_function(srna, "new", "rna_Action_groups_new");
741  RNA_def_function_ui_description(func, "Create a new action group and add it to the action");
742  parm = RNA_def_string(func, "name", "Group", 0, "", "New name for the action group");
744 
745  parm = RNA_def_pointer(func, "action_group", "ActionGroup", "", "Newly created action group");
746  RNA_def_function_return(func, parm);
747 
748  func = RNA_def_function(srna, "remove", "rna_Action_groups_remove");
749  RNA_def_function_ui_description(func, "Remove action group");
751  parm = RNA_def_pointer(func, "action_group", "ActionGroup", "", "Action group to remove");
754 }
755 
757 {
758  StructRNA *srna;
759 
760  FunctionRNA *func;
761  PropertyRNA *parm;
762 
763  RNA_def_property_srna(cprop, "ActionFCurves");
764  srna = RNA_def_struct(brna, "ActionFCurves", NULL);
765  RNA_def_struct_sdna(srna, "bAction");
766  RNA_def_struct_ui_text(srna, "Action F-Curves", "Collection of action F-Curves");
767 
768  /* Action.fcurves.new(...) */
769  func = RNA_def_function(srna, "new", "rna_Action_fcurve_new");
770  RNA_def_function_ui_description(func, "Add an F-Curve to the action");
772  parm = RNA_def_string(func, "data_path", NULL, 0, "Data Path", "F-Curve data path to use");
774  RNA_def_int(func, "index", 0, 0, INT_MAX, "Index", "Array index", 0, INT_MAX);
776  func, "action_group", NULL, 0, "Action Group", "Acton group to add this F-Curve into");
777 
778  parm = RNA_def_pointer(func, "fcurve", "FCurve", "", "Newly created F-Curve");
779  RNA_def_function_return(func, parm);
780 
781  /* Action.fcurves.find(...) */
782  func = RNA_def_function(srna, "find", "rna_Action_fcurve_find");
784  func,
785  "Find an F-Curve. Note that this function performs a linear scan "
786  "of all F-Curves in the action.");
788  parm = RNA_def_string(func, "data_path", NULL, 0, "Data Path", "F-Curve data path");
790  RNA_def_int(func, "index", 0, 0, INT_MAX, "Index", "Array index", 0, INT_MAX);
791  parm = RNA_def_pointer(
792  func, "fcurve", "FCurve", "", "The found F-Curve, or None if it doesn't exist");
793  RNA_def_function_return(func, parm);
794 
795  /* Action.fcurves.remove(...) */
796  func = RNA_def_function(srna, "remove", "rna_Action_fcurve_remove");
797  RNA_def_function_ui_description(func, "Remove F-Curve");
799  parm = RNA_def_pointer(func, "fcurve", "FCurve", "", "F-Curve to remove");
802 
803  /* Action.fcurves.clear() */
804  func = RNA_def_function(srna, "clear", "rna_Action_fcurve_clear");
805  RNA_def_function_ui_description(func, "Remove all F-Curves");
806 }
807 
809 {
810  StructRNA *srna;
811  PropertyRNA *prop;
812 
813  FunctionRNA *func;
814  PropertyRNA *parm;
815 
816  RNA_def_property_srna(cprop, "ActionPoseMarkers");
817  srna = RNA_def_struct(brna, "ActionPoseMarkers", NULL);
818  RNA_def_struct_sdna(srna, "bAction");
819  RNA_def_struct_ui_text(srna, "Action Pose Markers", "Collection of timeline markers");
820 
821  func = RNA_def_function(srna, "new", "rna_Action_pose_markers_new");
822  RNA_def_function_ui_description(func, "Add a pose marker to the action");
823  parm = RNA_def_string(func, "name", "Marker", 0, NULL, "New name for the marker (not unique)");
825  parm = RNA_def_pointer(func, "marker", "TimelineMarker", "", "Newly created marker");
826  RNA_def_function_return(func, parm);
827 
828  func = RNA_def_function(srna, "remove", "rna_Action_pose_markers_remove");
829  RNA_def_function_ui_description(func, "Remove a timeline marker");
831  parm = RNA_def_pointer(func, "marker", "TimelineMarker", "", "Timeline marker to remove");
834 
835  prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
836  RNA_def_property_struct_type(prop, "TimelineMarker");
839  prop, "rna_Action_active_pose_marker_get", "rna_Action_active_pose_marker_set", NULL, NULL);
840  RNA_def_property_ui_text(prop, "Active Pose Marker", "Active pose marker for this action");
841 
842  prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED);
843  RNA_def_property_int_sdna(prop, NULL, "active_marker");
846  "rna_Action_active_pose_marker_index_get",
847  "rna_Action_active_pose_marker_index_set",
848  "rna_Action_active_pose_marker_index_range");
849  RNA_def_property_ui_text(prop, "Active Pose Marker Index", "Index of active pose marker");
850 }
851 
852 static void rna_def_action(BlenderRNA *brna)
853 {
854  StructRNA *srna;
855  PropertyRNA *prop;
856 
857  srna = RNA_def_struct(brna, "Action", "ID");
858  RNA_def_struct_sdna(srna, "bAction");
859  RNA_def_struct_ui_text(srna, "Action", "A collection of F-Curves for animation");
860  RNA_def_struct_ui_icon(srna, ICON_ACTION);
861 
862  /* collections */
863  prop = RNA_def_property(srna, "fcurves", PROP_COLLECTION, PROP_NONE);
864  RNA_def_property_collection_sdna(prop, NULL, "curves", NULL);
865  RNA_def_property_struct_type(prop, "FCurve");
866  RNA_def_property_ui_text(prop, "F-Curves", "The individual F-Curves that make up the action");
867  rna_def_action_fcurves(brna, prop);
868 
869  prop = RNA_def_property(srna, "groups", PROP_COLLECTION, PROP_NONE);
870  RNA_def_property_collection_sdna(prop, NULL, "groups", NULL);
871  RNA_def_property_struct_type(prop, "ActionGroup");
872  RNA_def_property_ui_text(prop, "Groups", "Convenient groupings of F-Curves");
873  rna_def_action_groups(brna, prop);
874 
875  prop = RNA_def_property(srna, "pose_markers", PROP_COLLECTION, PROP_NONE);
876  RNA_def_property_collection_sdna(prop, NULL, "markers", NULL);
877  RNA_def_property_struct_type(prop, "TimelineMarker");
878  /* Use lib exception so the list isn't grayed out;
879  * adding/removing is still banned though, see T45689. */
882  prop, "Pose Markers", "Markers specific to this action, for labeling poses");
883  rna_def_action_pose_markers(brna, prop);
884 
885  /* properties */
886  prop = RNA_def_property(srna, "use_frame_range", PROP_BOOLEAN, PROP_NONE);
889  RNA_def_property_boolean_funcs(prop, NULL, "rna_Action_use_frame_range_set");
891  prop,
892  "Manual Frame Range",
893  "Manually specify the intended playback frame range for the action "
894  "(this range is used by some tools, but does not affect animation evaluation)");
896 
897  prop = RNA_def_property(srna, "use_cyclic", PROP_BOOLEAN, PROP_NONE);
901  prop,
902  "Cyclic Animation",
903  "The action is intended to be used as a cycle looping over its manually set "
904  "playback frame range (enabling this doesn't automatically make it loop)");
906 
907  prop = RNA_def_property(srna, "frame_start", PROP_FLOAT, PROP_TIME);
909  RNA_def_property_float_sdna(prop, NULL, "frame_start");
910  RNA_def_property_float_funcs(prop, NULL, "rna_Action_start_frame_set", NULL);
913  prop, "Start Frame", "The start frame of the manually set intended playback range");
915 
916  prop = RNA_def_property(srna, "frame_end", PROP_FLOAT, PROP_TIME);
918  RNA_def_property_float_sdna(prop, NULL, "frame_end");
919  RNA_def_property_float_funcs(prop, NULL, "rna_Action_end_frame_set", NULL);
922  prop, "End Frame", "The end frame of the manually set intended playback range");
924 
925  prop = RNA_def_float_vector(
926  srna,
927  "frame_range",
928  2,
929  NULL,
930  0,
931  0,
932  "Frame Range",
933  "The intended playback frame range of this action, using the manually set range "
934  "if available, or the combined frame range of all F-Curves within this action "
935  "if not (assigning sets the manual frame range)",
936  0,
937  0);
939  prop, "rna_Action_frame_range_get", "rna_Action_frame_range_set", NULL);
941 
942  prop = RNA_def_float_vector(srna,
943  "curve_frame_range",
944  2,
945  NULL,
946  0,
947  0,
948  "Curve Frame Range",
949  "The combined frame range of all F-Curves within this action",
950  0,
951  0);
952  RNA_def_property_float_funcs(prop, "rna_Action_curve_frame_range_get", NULL, NULL);
954 
955  /* special "type" limiter - should not really be edited in general,
956  * but is still available/editable in 'emergencies' */
957  prop = RNA_def_property(srna, "id_root", PROP_ENUM, PROP_NONE);
958  RNA_def_property_enum_sdna(prop, NULL, "idroot");
961  "ID Root Type",
962  "Type of ID block that action can be used on - "
963  "DO NOT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING");
965 
966  /* API calls */
967  RNA_api_action(srna);
968 }
969 
970 /* --------- */
971 
973 {
974  rna_def_action(brna);
975  rna_def_action_group(brna);
976  rna_def_dopesheet(brna);
977 }
978 
979 #endif
Blender kernel action and pose functionality.
struct bActionGroup * action_groups_add_new(struct bAction *act, const char name[])
Definition: action.c:410
void BKE_action_get_frame_range(const struct bAction *act, float *r_start, float *r_end)
Definition: action.c:1480
void action_groups_remove_channel(struct bAction *act, struct FCurve *fcu)
Definition: action.c:542
void calc_action_range(const struct bAction *act, float *start, float *end, short incl_modifiers)
void BKE_action_fcurves_clear(struct bAction *act)
Definition: action.c:1988
void BKE_fcurve_free(struct FCurve *fcu)
Definition: fcurve.c:65
struct FCurve * BKE_fcurve_find(ListBase *list, const char rna_path[], int array_index)
Definition: fcurve.c:249
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BKE_report(ReportList *reports, eReportType type, const char *message)
Definition: report.c:83
bool BLI_remlink_safe(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition: listbase.c:123
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition: listbase.c:80
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition: listbase.c:100
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE int max_ii(int a, int b)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
Definition: string.c:42
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL(1
#define CLAMP_MAX(a, c)
#define UNUSED(x)
#define MAX2(a, b)
#define CLAMP_MIN(a, b)
#define BLT_I18NCONTEXT_ID_ID
void DEG_id_tag_update(struct ID *id, int flag)
@ ID_RECALC_ANIMATION_NO_FLUSH
Definition: DNA_ID.h:879
@ ID_KE
Definition: DNA_ID_enums.h:58
@ ID_OB
Definition: DNA_ID_enums.h:47
@ ADS_FILTER_NOMOVIECLIPS
@ ADS_FILTER_NOVOLUME
@ ADS_FILTER_NOHAIR
@ ADS_FILTER_NOCACHEFILES
@ ADS_FILTER_NOPOINTCLOUD
@ ADS_FILTER_ONLYSEL
@ ADS_FILTER_NOARM
@ ADS_FILTER_NLA_NOACT
@ ADS_FILTER_NOMAT
@ ADS_FILTER_NONTREE
@ ADS_FILTER_NOCAM
@ ADS_FILTER_NOSHAPEKEYS
@ ADS_FILTER_NOTEX
@ ADS_FILTER_ONLY_ERRORS
@ ADS_FILTER_NOSCE
@ ADS_FILTER_NOLAM
@ ADS_FILTER_NOMODIFIERS
@ ADS_FILTER_NOLINESTYLE
@ ADS_FILTER_SUMMARY
@ ADS_FILTER_NOGPENCIL
@ ADS_FILTER_NOOBJ
@ ADS_FILTER_NOCUR
@ ADS_FILTER_NOPART
@ ADS_FILTER_NOSPK
@ ADS_FILTER_NOMESH
@ ADS_FILTER_NOWOR
@ ADS_FILTER_INCL_HIDDEN
@ ADS_FILTER_NOMBA
@ ADS_FILTER_NOLAT
@ AGRP_SELECTED
@ AGRP_EXPANDED_G
@ AGRP_EXPANDED
@ AGRP_PROTECTED
@ AGRP_MUTED
@ ACT_FRAME_RANGE
@ ACT_CYCLIC
@ ADS_FLAG_SHOW_DBFILTERS
@ ADS_FLAG_SUMMARY_COLLAPSED
@ ADS_FLAG_INVERT_FILTER
@ ADS_FLAG_NO_DB_SORT
@ ADS_FLAG_FUZZY_NAMES
@ SACTCONT_ACTION
@ SACTCONT_SHAPEKEY
@ ADT_CURVES_ALWAYS_VISIBLE
#define MINFRAME
#define MAXFRAME
Read Guarded memory(de)allocation.
#define RNA_POINTER_INVALIDATE(ptr)
Definition: RNA_access.h:744
@ PARM_RNAPTR
Definition: RNA_types.h:354
@ PARM_REQUIRED
Definition: RNA_types.h:352
@ FUNC_USE_REPORTS
Definition: RNA_types.h:663
@ FUNC_USE_MAIN
Definition: RNA_types.h:661
@ PROP_FLOAT
Definition: RNA_types.h:61
@ PROP_BOOLEAN
Definition: RNA_types.h:59
@ PROP_ENUM
Definition: RNA_types.h:63
@ PROP_INT
Definition: RNA_types.h:60
@ PROP_STRING
Definition: RNA_types.h:62
@ PROP_POINTER
Definition: RNA_types.h:64
@ PROP_COLLECTION
Definition: RNA_types.h:65
@ PROP_THICK_WRAP
Definition: RNA_types.h:285
@ PROP_ANIMATABLE
Definition: RNA_types.h:202
@ PROP_EDITABLE
Definition: RNA_types.h:189
@ PROP_LIB_EXCEPTION
Definition: RNA_types.h:195
@ PROP_NEVER_NULL
Definition: RNA_types.h:239
@ PROP_NO_DEG_UPDATE
Definition: RNA_types.h:301
@ PROP_TEXTEDIT_UPDATE
Definition: RNA_types.h:209
@ PROP_TIME
Definition: RNA_types.h:146
@ PROP_NONE
Definition: RNA_types.h:126
@ PROP_UNSIGNED
Definition: RNA_types.h:142
#define NC_ANIMATION
Definition: WM_types.h:338
#define NA_EDITED
Definition: WM_types.h:523
#define ND_KEYFRAME
Definition: WM_types.h:442
#define ND_ANIMCHAN
Definition: WM_types.h:444
#define NA_SELECTED
Definition: WM_types.h:528
#define GS(x)
Definition: iris.c:225
FCurve * ED_action_fcurve_ensure(struct Main *bmain, struct bAction *act, const char group[], struct PointerRNA *ptr, const char rna_path[], const int array_index)
Definition: keyframing.c:173
FCurve * ED_action_fcurve_find(struct bAction *act, const char rna_path[], const int array_index)
Definition: keyframing.c:164
void(* MEM_freeN)(void *vmemh)
Definition: mallocn.c:27
void *(* MEM_callocN)(size_t len, const char *str)
Definition: mallocn.c:31
const EnumPropertyItem rna_enum_id_type_items[]
Definition: rna_ID.c:33
PointerRNA rna_pointer_inherit_refine(PointerRNA *ptr, StructRNA *type, void *data)
Definition: rna_access.c:186
static void rna_def_action(BlenderRNA *brna)
Definition: rna_action.c:852
static void rna_def_action_fcurves(BlenderRNA *brna, PropertyRNA *cprop)
Definition: rna_action.c:756
static void rna_def_action_groups(BlenderRNA *brna, PropertyRNA *cprop)
Definition: rna_action.c:728
static void rna_def_dopesheet(BlenderRNA *brna)
Definition: rna_action.c:356
void RNA_def_action(BlenderRNA *brna)
Definition: rna_action.c:972
static void rna_def_action_group(BlenderRNA *brna)
Definition: rna_action.c:658
static void rna_def_action_pose_markers(BlenderRNA *brna, PropertyRNA *cprop)
Definition: rna_action.c:808
void RNA_api_action(StructRNA *srna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2740
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
Definition: rna_define.c:1193
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4170
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
Definition: rna_define.c:2236
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1526
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
Definition: rna_define.c:4312
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3126
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
Definition: rna_define.c:1645
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2695
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
Definition: rna_define.c:1653
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
Definition: rna_define.c:4273
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
Definition: rna_define.c:3474
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
Definition: rna_define.c:3420
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
Definition: rna_define.c:1237
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
Definition: rna_define.c:2944
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
Definition: rna_define.c:3862
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
Definition: rna_define.c:1872
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
Definition: rna_define.c:1048
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
Definition: rna_define.c:1772
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
Definition: rna_define.c:2769
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
Definition: rna_define.c:4347
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
Definition: rna_define.c:2900
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
Definition: rna_define.c:1257
void RNA_def_struct_name_property(struct StructRNA *srna, struct PropertyRNA *prop)
Definition: rna_define.c:1103
void RNA_def_function_flag(FunctionRNA *func, int flag)
Definition: rna_define.c:4342
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1495
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
Definition: rna_define.c:3385
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
Definition: rna_define.c:1028
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2601
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3028
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
Definition: rna_define.c:1245
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3687
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
Definition: rna_define.c:2848
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1490
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
Definition: rna_define.c:3597
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2493
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
Definition: rna_define.c:1664
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2343
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
Definition: rna_define.c:2327
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1518
void rna_def_actionbone_group_common(struct StructRNA *srna, int update_flag, const char *update_cb)
Definition: rna_pose.c:861
bool rna_Action_id_poll(struct PointerRNA *ptr, struct PointerRNA value)
bool rna_Action_actedit_assign_poll(struct PointerRNA *ptr, struct PointerRNA value)
#define min(a, b)
Definition: sort.c:35
ListBaseIterator listbase
Definition: RNA_types.h:409
union CollectionPropertyIterator::@1147 internal
struct FCurve * next
bActionGroup * grp
Definition: DNA_ID.h:368
char name[66]
Definition: DNA_ID.h:378
void * first
Definition: DNA_listBase.h:31
Definition: BKE_main.h:121
void * data
Definition: RNA_types.h:38
struct ID * owner_id
Definition: RNA_types.h:36
char name[64]
unsigned int flag
ListBase curves
ListBase groups
ListBase markers
float max
void WM_main_add_notifier(unsigned int type, void *reference)
PointerRNA * ptr
Definition: wm_files.c:3480