[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel BKE_nla.h blender/source/blender/blenkernel/intern nla.c blender/source/blender/python/api2_2x Blender.c Object.c blender/source/blender/src editnla.c

Toni Alatalo antont at kyperjokki.fi
Wed Feb 8 17:58:12 CET 2006


antont (Toni Alatalo) 2006/02/08 17:58:12 CET

  Modified files:
    blender/source/blender/blenkernel BKE_nla.h 
    blender/source/blender/blenkernel/intern nla.c 
    blender/source/blender/python/api2_2x Blender.c Object.c 
    blender/source/blender/src editnla.c 
  
  Log:
  More things for easying the job of replacing proxy/working armatures in the scenes of Elephants Dream with the final ones: 1) adds removing Fakeusers from Actions to PyAPI, now with a hackish call in the Blender module. Possibility of better ways should be discussed on bf-python.           2) adds BPY Object.copyNLA(otherob) - that was simple 'cause the copy_nla function was nicely in kernel nla.c.            3) Object.convertActionToStrip(), here it gets tricky: the function to convert the active action of an object to a NLA strip was buried inside the respective function in the GUI editnla.c which had also code for reading mouse coordinates and whatnot. So I took the actual copying out of it and moved it to the kernel nla.c as a new function, bActionStrip *convert_action_to_strip (Object *ob). that code used other functions, of which find_stridechannel() was also in editnla.c but free of UI code so i moved it to kernel too. kept things with UI code in editnla.c. tried to be careful with keeping mallocs and the pointer business intact, and tested that this works and after usage Blender gives no memory warnings or anything, so seems ok - but certainly is best reviewed by ppl more active with c coding than me. hopefully this little refactor makes it possible to add this function to the menus too, which was not straightforward earlier when Matt took a look at it.
  
  Revision  Changes    Path
  1.6       +5 -3      blender/source/blender/blenkernel/BKE_nla.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/BKE_nla.h.diff?r1=1.5&r2=1.6&cvsroot=bf-blender>
  1.5       +46 -1     blender/source/blender/blenkernel/intern/nla.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/nla.c.diff?r1=1.4&r2=1.5&cvsroot=bf-blender>
  1.73      +39 -2     blender/source/blender/python/api2_2x/Blender.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Blender.c.diff?r1=1.72&r2=1.73&cvsroot=bf-blender>
  1.168     +27 -3     blender/source/blender/python/api2_2x/Object.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Object.c.diff?r1=1.167&r2=1.168&cvsroot=bf-blender>
  1.61      +4 -36     blender/source/blender/src/editnla.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editnla.c.diff?r1=1.60&r2=1.61&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list