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.
This commit is contained in:
@@ -4747,8 +4747,15 @@ ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *UNUSE
|
|||||||
break;
|
break;
|
||||||
case PROP_STRING: {
|
case PROP_STRING: {
|
||||||
const char *defvalue= ((StringPropertyRNA*)parm)->defaultvalue;
|
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);
|
BLI_strncpy(data, defvalue, size);
|
||||||
|
#else
|
||||||
|
memcpy(data, &defvalue, size);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PROP_POINTER:
|
case PROP_POINTER:
|
||||||
|
Reference in New Issue
Block a user