[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26408] trunk/blender/source/blender/ makesrna/intern/rna_wm.c: bugfix [#20721] Reloading scripts crashes Blender (own todo)
Campbell Barton
ideasman42 at gmail.com
Sat Jan 30 02:10:16 CET 2010
Revision: 26408
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26408
Author: campbellbarton
Date: 2010-01-30 02:10:16 +0100 (Sat, 30 Jan 2010)
Log Message:
-----------
bugfix [#20721] Reloading scripts crashes Blender (own todo)
made an incorrect assumption that ot->srna and the srna for the registered operators type are the same. caused reload to crash.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_wm.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c 2010-01-30 00:47:41 UTC (rev 26407)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c 2010-01-30 01:10:16 UTC (rev 26408)
@@ -605,7 +605,8 @@
WM_operatortype_remove(ot->idname);
MEM_freeN(idname);
- // RNA_struct_free(&BLENDER_RNA, type); // WM_operatortype_remove calls this
+ /* not to be confused with the RNA_struct_free that WM_operatortype_remove calls, they are 2 different srna's */
+ RNA_struct_free(&BLENDER_RNA, type);
/* update while blender is running */
if(C)
More information about the Bf-blender-cvs
mailing list