mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
maya2egg: fix a potential crash (see #434)
This commit is contained in:
parent
ad8a6b4a88
commit
cf277ebf6c
@ -975,7 +975,9 @@ MayaEggMesh *MayaEggLoader::GetMesh(EggVertexPool *pool, EggGroup *parent)
|
|||||||
MayaEggMesh *result = _mesh_tab[parent];
|
MayaEggMesh *result = _mesh_tab[parent];
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
result = new MayaEggMesh;
|
result = new MayaEggMesh;
|
||||||
result->_name = parent->get_name();
|
if (parent != nullptr) {
|
||||||
|
result->_name = parent->get_name();
|
||||||
|
}
|
||||||
result->_pool = pool;
|
result->_pool = pool;
|
||||||
result->_parent = parent;
|
result->_parent = parent;
|
||||||
result->_vert_count = 0;
|
result->_vert_count = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user