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

Willian Padovani Germano wgermano at ig.com.br
Wed Feb 16 04:32:58 CET 2005


ianwill (Willian Padovani Germano) 2005/02/16 04:32:57 CET

  Modified files:
    blender/source/blender/python/api2_2x Draw.c Window.c 
  
  Log:
  BPython bug fixes:
  -- Ton caught a redraw trying to free a busy slider button in a script.  Made sure the redraws don't happen in the scripts win during slider updates, but the realtime slider (automatically updates the 3d view) isn't working yet as it probably shouldn't with the current code. There's a pre 2.25 comment in Draw.c about it being hackish and wrong;
  -- Melchior FRANZ reported a bug related to a script dict being freed too early (when two instances of the same script were on: one with a gui and the other with a file selector -- selecting the file triggered the problem);
  -- bug #2074 reported by Roland Hess: totally empty string button -- no prepended but->str (e.g. "OB:") neither but->poin (the actual string) -- crashing Blender.  Crash happened on editscreen.c: screen_delayed_push_undo calls strncpy() without checking the passed string.  Didn't mess with it, better let the coder in charge of undo (Ton, right?) choose a preferred way to deal with it (report error, simply use blank string).  Staying on the python side at least for now, I just made but->str = " " (a space) when user doesn't define it, so the crash shouldn't happen anymore.
  
  http://projects.blender.org/tracker/?func=detail&atid=125&aid=2074&group_id=9
  
  Thanks guys for reporting the problems.
  
  Revision  Changes    Path
  1.33      +29 -28    blender/source/blender/python/api2_2x/Draw.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Draw.c.diff?r1=1.32&r2=1.33&cvsroot=bf-blender>
  1.26      +34 -28    blender/source/blender/python/api2_2x/Window.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Window.c.diff?r1=1.25&r2=1.26&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list