Merge pull request #1607 from Areloch/Camera_MatEd_Crashfix

Select camera when in material editor crashfix.
This commit is contained in:
Areloch 2016-05-10 11:01:23 -05:00
commit 6f672fe21d

View file

@ -4888,6 +4888,7 @@ DefineEngineMethod( ShapeBase, getTargetCount, S32, (),,
if ((ShapeBase*)obj->getClientObject()) if ((ShapeBase*)obj->getClientObject())
obj = (ShapeBase*)obj->getClientObject(); obj = (ShapeBase*)obj->getClientObject();
if (obj->getShapeInstance() != NULL)
return obj->getShapeInstance()->getTargetCount(); return obj->getShapeInstance()->getTargetCount();
} }