soc-2008-mxcurioni: first version of lib3ds code. It does NOT work yet and has to...
[blender.git] / source / blender / freestyle / intern / python / Interface1D / FEdge / BPy_FEdgeSmooth.cpp
index 6a11b6c1e98e721e2b42dfebbbdedf4fa79e7823..0970e22a72672d6b9620f50fd2a20b0e95bbc2c9 100644 (file)
@@ -152,13 +152,13 @@ PyObject * FEdgeSmooth_normal( BPy_FEdgeSmooth *self ) {
 }
 
 PyObject * FEdgeSmooth_materialIndex( BPy_FEdgeSmooth *self ) {
-       return PyInt_FromLong( self->fes->materialIndex() );
+       return PyInt_FromLong( self->fes->frs_materialIndex() );
 }
 
 
 PyObject * FEdgeSmooth_material( BPy_FEdgeSmooth *self ) {
-       Material m( self->fes->material() );
-       return BPy_FrsMaterial_from_Material(m);
+       FrsMaterial m( self->fes->frs_material() );
+       return BPy_FrsMaterial_from_FrsMaterial(m);
 }
 
 PyObject * FEdgeSmooth_setNormal( BPy_FEdgeSmooth *self, PyObject *args ) {
@@ -186,7 +186,7 @@ PyObject * FEdgeSmooth_setMaterialIndex( BPy_FEdgeSmooth *self, PyObject *args )
                Py_RETURN_NONE;
        }
        
-       self->fes->setMaterialIndex( i );
+       self->fes->setFrsMaterialIndex( i );
 
        Py_RETURN_NONE;
 }