soc-2008-mxcurioni: first version of lib3ds code. It does NOT work yet and has to...
[blender.git] / source / blender / freestyle / intern / python / UnaryFunction0D / BPy_UnaryFunction0DMaterial.cpp
index 2aef794617a04dc1df16b6c0c81330310398734c..b719f6df71b8490a615a0b20b054dc5b46ce3ad4 100644 (file)
@@ -134,7 +134,7 @@ PyMODINIT_FUNC UnaryFunction0DMaterial_Init( PyObject *module ) {
 
 int UnaryFunction0DMaterial___init__(BPy_UnaryFunction0DMaterial* self)
 {
-       self->uf0D_material = new UnaryFunction0D<Material>();
+       self->uf0D_material = new UnaryFunction0D<FrsMaterial>();
        self->uf0D_material->py_uf0D = (PyObject *)self;
        return 0;
 }
@@ -165,8 +165,8 @@ PyObject * UnaryFunction0DMaterial___call__( BPy_UnaryFunction0DMaterial *self,
                return NULL;
        }
        
-       Material m( self->uf0D_material->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
-       return BPy_FrsMaterial_from_Material( m );
+       FrsMaterial m( self->uf0D_material->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
+       return BPy_FrsMaterial_from_FrsMaterial( m );
 
 }