Fix crash with .dae's exported from FX Composer

This commit is contained in:
rdb 2009-08-12 08:44:33 +00:00
parent 0e596fe4e2
commit 87a4dbdf8b
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void DaeMaterials::
apply_to(const string semantic, const PT(EggGroup) to) {
if (_materials.count(semantic) > 0) {
PT(DaeBlendSettings) blend = _materials[semantic]->_blend;
if (blend->_enabled) {
if (blend && blend->_enabled) {
to->set_blend_mode(EggGroup::BM_add);
to->set_blend_color(blend->_color);
to->set_blend_operand_a(blend->_operand_a);