Blender Git Loki

Git Commits -> Revision 71099a3

Revision 71099a3 by Bastien Montagne (master)
July 2, 2019, 13:12 (GMT)
Fix T66290: new Node's init api callback was not handling ID usercount.

As Usual...

Note that we have to edit each C-defined of those callbacks that set
Node->id pointer, instead of just moving the generic call to
`id_us_plus()` in `node_init()` below the call to
`ntype->initfunc_api()`, since that one manipulates RNA pointers, which
are supposed to already handle usercounts themselves on assignment.

The C callbacks are moving back to manipulating directly DNA, so it's
their responsability to handle user count then (Py code should do that
automatically through RNA assignement).

Commit Details:

Full Hash: 71099a3d67fbf8cfb83faa014215f34fa3232ff6
Parent Commit: 163996b
Lines Changed: +11, -0

5 Modified Paths:

/source/blender/nodes/composite/nodes/node_composite_image.c (+2, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_movieclip.c (+2, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_moviedistortion.c (+2, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_stabilize2d.c (+2, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_switchview.c (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021