mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix bug #716509: NodePath.findMaterial does not work properly
This commit is contained in:
parent
8c51f16e78
commit
c823dd27ae
@ -7878,7 +7878,9 @@ r_find_material(PandaNode *node, const RenderState *state,
|
||||
if (!ta->is_off()) {
|
||||
Material *material = ta->get_material();
|
||||
if (material != (Material *)NULL) {
|
||||
return material;
|
||||
if (glob.matches(material->get_name())) {
|
||||
return material;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user