cedricpinson/osgexport — pull request #5 by aluaces (2012-01-23 13:15:49+00:00)
Title: Explicit use of bpy.types.Operator for older Blender versions (<=2.59)

Hi, can you consider integrating this tiny patch in the repo?

With Blender versions older or equal to 2.59 (current in Debian), I get the following error when executing the script:

BlenderExporter directory blenderExporter
Traceback (most recent call last):
File "/home/alberto/tmp/osgexport.git/blender-2.5/exporter/osgExport.py", line 33, in
import osg
File "./osg/__init__.py", line 28, in
import osg.osgbake
File "./osg/osgbake.py", line 22, in
from bpy.types import Operator
ImportError: No module named types

Blender quit

Since the "Operator" alias is used only once, I guess it should be fine to expand it to bpy.types.Operator, as found currently in osgExport.py. However feel free to do anything else if you find a more elegant way.

Thank you.