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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-03 17:43:12 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-03 17:43:12 +0400
commit13ec0cd6c3c74c7f324cefff064bb725cc26fcd2 (patch)
tree52d34328fc2ee27ab01da20406f1737aaa2f752e /source/blender/makesrna/intern/rna_access.c
parent07677e836ff0d11d98da2d11c41b058966d06c6a (diff)
Fix #34856: crash passing an object rather than a mesh to bpy.data.mesh.remove(),
this should give an error message but it didn't.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 68a5ac5f639..00ee1b49da2 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -609,6 +609,9 @@ bool RNA_struct_is_a(StructRNA *type, StructRNA *srna)
{
StructRNA *base;
+ if (srna == &RNA_AnyType)
+ return true;
+
if (!type)
return false;