[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43700] trunk/blender/source/blender/ makesrna/intern/rna_access.c: hrmf, fix for fix [#29988] Segfault when unwrap default cube with smart project / follow active quads
Campbell Barton
ideasman42 at gmail.com
Wed Jan 25 23:06:58 CET 2012
Revision: 43700
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43700
Author: campbellbarton
Date: 2012-01-25 22:06:53 +0000 (Wed, 25 Jan 2012)
Log Message:
-----------
hrmf, fix for fix [#29988] Segfault when unwrap default cube with smart project / follow active quads
I think that we need a check here for thick wrapped strings but for now we dont have any thick wrapped strings with default values so comment it.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_access.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c 2012-01-25 21:33:37 UTC (rev 43699)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c 2012-01-25 22:06:53 UTC (rev 43700)
@@ -4747,8 +4747,15 @@
break;
case PROP_STRING: {
const char *defvalue= ((StringPropertyRNA*)parm)->defaultvalue;
- if(defvalue && defvalue[0])
+ if(defvalue && defvalue[0]) {
+ /* causes bug [#29988], possibly this is only correct for thick wrapped
+ * need to look further into it - campbell */
+#if 0
BLI_strncpy(data, defvalue, size);
+#else
+ memcpy(data, &defvalue, size);
+#endif
+ }
break;
}
case PROP_POINTER:
More information about the Bf-blender-cvs
mailing list