Logo Search packages:      
Sourcecode: blender version File versions

static PyObject* World_getMode ( BPy_World *  self  )  [static]

World PyMethod getMode.

Returns:
int : The World Data mode.

Definition at line 568 of file World.c.

Referenced by World_GetAttr().

{
      PyObject *attr = PyInt_FromLong( ( long ) self->world->mode );

      if( attr )
            return attr;

      return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
                              "couldn't get World.mode attribute" ) );
}


Generated by  Doxygen 1.6.0   Back to index