Page MenuHome

Python access to removing a shapekey
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Mar 9 2015, 4:38 PM.

Diff Detail

Event Timeline

Philipp Oeser (lichtwerk) retitled this revision from to Python access to removing a shapekey.
Philipp Oeser (lichtwerk) updated this object.
Sergey Sharybin (sergey) requested changes to this revision.Mar 11 2015, 11:54 AM
Sergey Sharybin (sergey) added inline comments.
source/blender/makesrna/intern/rna_object_api.c
247

use context only when it's really needed. Here you can pass bmain by using FUNC_USE_MAIN flag.

265

Use WM_main_add_notifier() instead.

This revision now requires changes to proceed.Mar 11 2015, 11:54 AM
Campbell Barton (campbellbarton) added inline comments.
source/blender/blenkernel/intern/object.c
3524–3532

This makes sense for the UI, but from API we may want a way to remove all keys in one step.

source/blender/makesrna/intern/rna_object_api.c
268

Yes this is need, so access after wont crash from accessing freed memory.

Philipp Oeser (lichtwerk) edited edge metadata.

(thanx for having a look!)

Philipp Oeser (lichtwerk) edited edge metadata.

update to current master