Blender Git Loki
Git Commits -> Revision b5a4492
Revision b5a4492 by Dalai Felinto (master) June 29, 2009, 02:37 (GMT) |
fix for bug while importing transparent faces: image.has_data can't be called before you load an image, otherwise it will return false even for valid images. The workaround is to try to run image.glLoad() before. That will crash if the image is corrupted (for we are using try/catch here). Campbell (ideasman42) thinks it would be better to have an api call proper for that. Since 2.4xx is close to its end I really don't think it's time to keep working in its API. Specially if we have similar functions doing what we need. @ Arystanbek (kazanbas): I'm done with the obj fixes I told you. You are free to go with the importers :) You may want to take a look at implementing a proper image.load() to 2.5 as Campbell suggested. |
Commit Details:
Full Hash: b5a4492069d5d17d9c24f99f2056b14e51f1850c
SVN Revision: 21230
Parent Commit: 417aeb9
Lines Changed: +10, -0
1 Modified Path:
/release/scripts/import_obj.py (+10, -0) (Diff)