fix for undo crashing when animating proxies that had ID props

This commit is contained in:
2009-11-27 12:42:42 +00:00
parent 65c4149f20
commit 5ca3d1919c

View File

@@ -1509,6 +1509,10 @@ static void pose_proxy_synchronize(Object *ob, Object *from, int layer_protected
pchanw.child= pchan->child;
pchanw.path= NULL;
/* this is freed so copy a copy, else undo crashes */
if(pchanw.prop)
pchanw.prop= IDP_CopyProperty(pchanw.prop);
/* constraints - proxy constraints are flushed... local ones are added after
* 1. extract constraints not from proxy (CONSTRAINT_PROXY_LOCAL) from pchan's constraints
* 2. copy proxy-pchan's constraints on-to new