Model.findMaterial() does not work

Bug #716509 reported by sgflt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Medium
rdb

Bug Description

A simple test case is attached.

In short: model.findMaterial(name) always returns the first material, no matter what name is. Creating a MaterialCollection from findAllMaterials() and using collection.findMaterial(name) works, however.

See zip file for a minimal program showing this. A sample egg is included as well.

Revision history for this message
sgflt (launchpad-5-n1) wrote :
Revision history for this message
rdb (rdb) wrote :

I've checked in a fix for 1.7.1. Thanks for reporting the bug!

Changed in panda3d:
assignee: nobody → rdb (rdb)
importance: Undecided → Medium
milestone: none → 1.7.1
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.