[Bf-blender-cvs] [8767bba] alembic_basic_io: Fix crash during export.

Kévin Dietrich noreply at git.blender.org
Tue Mar 29 06:30:02 CEST 2016


Commit: 8767bba77dc98bd38dc46d4cd912da5cffaca0cb
Author: Kévin Dietrich
Date:   Tue Mar 29 04:15:56 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB8767bba77dc98bd38dc46d4cd912da5cffaca0cb

Fix crash during export.

===================================================================

M	source/blender/alembic/intern/abc_export_options.cc

===================================================================

diff --git a/source/blender/alembic/intern/abc_export_options.cc b/source/blender/alembic/intern/abc_export_options.cc
index ba5ceef..5add23b 100644
--- a/source/blender/alembic/intern/abc_export_options.cc
+++ b/source/blender/alembic/intern/abc_export_options.cc
@@ -84,6 +84,11 @@ bool AbcExportOptions::isAbcRoot(Object *obj) const
 {
 	ID *id = reinterpret_cast<ID *>(obj);
 	IDProperty *xport_props = IDP_GetProperties(id, false);
+
+	if (!xport_props) {
+		return false;
+	}
+
 	IDProperty *enable_xport = IDP_GetPropertyFromGroup(xport_props, "isAbcRoot");
 
 	if (enable_xport) {




More information about the Bf-blender-cvs mailing list