diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-06 19:54:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-06 19:54:08 +0400 |
commit | 99954545ee23dbeb932add263e94e34ed85c91d5 (patch) | |
tree | b142d81ff22b150f1f12ecf688e75e9da1b2fa01 /source/blender/makesrna/RNA_define.h | |
parent | f6c68f10196fd2e7a1831fdfdced6e39ce862e6d (diff) |
bugfix [#23656] Problems retrieving properties from inside runtime-created PointerProperties
cant test if this fix solves the problem matt is having but it at least fixes an error caused by classes created in exec(),
when the properties pointers were copied the hash key still referred to the python object which could be freed. in most cases this wouldnt happen (would be kept in bytecode) but with exec() the property string is freed immediately.
Diffstat (limited to 'source/blender/makesrna/RNA_define.h')
-rw-r--r-- | source/blender/makesrna/RNA_define.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/RNA_define.h b/source/blender/makesrna/RNA_define.h index 6422950b5e4..16ca718e335 100644 --- a/source/blender/makesrna/RNA_define.h +++ b/source/blender/makesrna/RNA_define.h @@ -192,7 +192,7 @@ void RNA_def_struct_duplicate_pointers(StructRNA *srna); void RNA_def_struct_free_pointers(StructRNA *srna); void RNA_def_func_duplicate_pointers(FunctionRNA *func); void RNA_def_func_free_pointers(FunctionRNA *func); -void RNA_def_property_duplicate_pointers(PropertyRNA *prop); +void RNA_def_property_duplicate_pointers(StructOrFunctionRNA *cont_, PropertyRNA *prop); void RNA_def_property_free_pointers(PropertyRNA *prop); int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier); |