Fix T49224: Crash due to dangling value in 'Object.proxy_from' pointer.

Why/how this may happen remains a mystery, so for now simply clearing this runtime-only
pointer on Object reading...
This commit is contained in:
Bastien Montagne 2016-09-01 21:16:54 +02:00
parent ff57589afc
commit 159ac3f638
Notes: blender-bot 2023-02-14 07:38:37 +01:00
Referenced by issue #49224, Crash when deleting the text
1 changed files with 3 additions and 0 deletions

View File

@ -5303,6 +5303,9 @@ static void direct_link_object(FileData *fd, Object *ob)
*/
ob->recalc = 0;
/* XXX This should not be needed - but seems like it can happen in some cases, so for now play safe... */
ob->proxy_from = NULL;
/* loading saved files with editmode enabled works, but for undo we like
* to stay in object mode during undo presses so keep editmode disabled.
*