Bug in EggTexture ?

Return to Compiling or Editing the Panda Source

Bug in EggTexture ?

Postby rdb » Wed Sep 10, 2008 2:17 pm

Hi,

When adding support for several different texture types in my collada exporter, I saw the EggTexture.set_texture_type function and thus made my exporter fill in this value based on what the Collada file specifies as texture type. But, when I write it to an .egg file, it doesn't recognize this texture_type parameter:
Code: Select all
:egg2pg: Reading blah.egg

Warning in blah.egg at line 8, column 30:
  <Scalar> texture_type { 2d }
                             ^
Unsupported texture scalar: texture_type


According to the eggSyntax.txt, it should be texture-type. I tried changing that in eggTexture.cxx. But, this doesn't work as well, with the same error (it doesn't recognize texture-type this time).

Any help would be greatly appreciated.
pro-rsoft
I rarely respond to PMs
rdb
 
Posts: 8565
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby rdb » Wed Sep 10, 2008 2:22 pm

Sorry, I didn't look right. It should have been "type". I checked in a fix for this bug to cvs.

While we're talking about bugs in eggTexture.cxx, I found another one. I described it here:
https://bugs.launchpad.net/panda3d/+bug/268586
The programmer probably forgot to change the values after copying&pasting, or was this intentional?
I rarely respond to PMs
rdb
 
Posts: 8565
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby drwr » Wed Sep 10, 2008 2:50 pm

Ah, thank you. Yes, you're right, that was just a paste-buffer error. I just checked in the fix.

David
drwr
 
Posts: 11253
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 0 guests