Logo Search packages:      
Sourcecode: blender version File versions

static PyObject* World_setMode ( BPy_World *  self,
PyObject *  args 
) [static]

World PyMethod setMode.

Returns:
int : The World Data mode.

Definition at line 586 of file World.c.

Referenced by World_SetAttr().

{
      int mode;

      if( !PyArg_ParseTuple( args, "i", &mode ) )
            return ( EXPP_ReturnPyObjError( PyExc_TypeError,
                                    "expected int argument" ) );
      self->world->mode = mode;
      Py_INCREF( Py_None );
      return Py_None;
}


Generated by  Doxygen 1.6.0   Back to index