diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 19:48:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 23:30:08 +0300 |
commit | 024d40b504e4dc2a23824021bdcfe772a1f5f670 (patch) | |
tree | 617778f8e70e0c39300ae8f27c30ca1d05124c18 /source/blender/makesrna/intern/rna_depsgraph.c | |
parent | 66c3a7c5502815af082feee73165d144bee78fb1 (diff) |
Cleanup: comments (long lines) in makesrna
Diffstat (limited to 'source/blender/makesrna/intern/rna_depsgraph.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_depsgraph.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c index 3df4feba024..447318da744 100644 --- a/source/blender/makesrna/intern/rna_depsgraph.c +++ b/source/blender/makesrna/intern/rna_depsgraph.c @@ -297,8 +297,8 @@ static PointerRNA rna_Depsgraph_objects_get(CollectionPropertyIterator *iter) */ /* XXX Ugly python seems to query next item of an iterator before using current one (see T57558). - * This forces us to use that nasty ping-pong game between two sets of iterator data, so that previous one remains - * valid memory for python to access to. Yuck. + * This forces us to use that nasty ping-pong game between two sets of iterator data, + * so that previous one remains valid memory for python to access to. Yuck. */ typedef struct RNA_Depsgraph_Instances_Iterator { BLI_Iterator iterators[2]; @@ -335,8 +335,10 @@ static void rna_Depsgraph_object_instances_next(CollectionPropertyIterator *iter di_it->iterators[di_it->counter % 2].data = &di_it->deg_data[di_it->counter % 2]; DEG_iterator_objects_next(&di_it->iterators[di_it->counter % 2]); /* Dupli_object_current is also temp memory generated during the iterations, - * it may be freed when last item has been iterated, so we have same issue as with the iterator itself: - * we need to keep a local copy, which memory remains valid a bit longer, for python accesses to work. */ + * it may be freed when last item has been iterated, + * so we have same issue as with the iterator itself: + * we need to keep a local copy, which memory remains valid a bit longer, + * for Python accesses to work. */ if (di_it->deg_data[di_it->counter % 2].dupli_object_current != NULL) { di_it->dupli_object_current[di_it->counter % 2] = *di_it->deg_data[di_it->counter % 2].dupli_object_current; |