Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-01-26 02:06:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-26 02:06:53 +0400
commit337302b56f27ccbcdaac44fffd2a69a8e19b736f (patch)
tree43e375ba3236909d58b8bc1c31e5358dd00ad36a /source/blender/makesrna/intern/rna_access.c
parent6b567963b378acb1a2e64c80e5675ebf73184883 (diff)
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 3dc0e7c37e4..5339ee58acf 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -4747,8 +4747,15 @@ ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *UNUSE
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: