[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x NMesh.c

Ken Hughes khughes at pacific.edu
Sun Oct 30 15:34:50 CET 2005


khughes (Ken Hughes) 2005/10/30 15:34:49 CET

  Modified files:
    blender/source/blender/python/api2_2x NMesh.c 
  
  Log:
  -- fix compiler warning about return "from incompatible pointer type" when
     returning Python exceptions.  EXPP_ReturnPyObjError() always returns a
     NULL because Python expects error conditions to return a NULL pointer
     instead of an object.  Since the pointer is cast to a PyObject *, it's
     ugly to use for propagating the errors back in this case, so this fix just
     uses PyErr_SetString() to set the error and return NULL (see the body
     of EXPP_ReturnPyObjError() ).
  
  Revision  Changes    Path
  1.103     +12 -7     blender/source/blender/python/api2_2x/NMesh.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/NMesh.c.diff?r1=1.102&r2=1.103&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list