From Wang Rui, "I've found a small problem which causes crashes in the 3ds plugin
while trying to load a model. The fix here will ensure that the texture map is valid and everything could work well then."
This commit is contained in:
@@ -1141,7 +1141,7 @@ ReaderWriter3DS::StateSetInfo ReaderWriter3DS::ReaderObject::createStateSet(Lib3
|
||||
|
||||
// opacity
|
||||
osg::Texture* opacity_map = createTexture(&(mat->opacity_map),"opacity_map", textureTransparency);
|
||||
if (opacity_map)
|
||||
if (opacity_map && texture1_map)
|
||||
{
|
||||
if(texture1_map->getImage()->isImageTranslucent())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user