Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-03-21update to trunk r14199ndofJean-Luc Peurière
2008-03-20Python APIKen Hughes
---------- Bugfix #6543: Blender.Library.Load() could segfault if called more than once with a library of different endian type. In the process discovered an invalid memory reference in other another function calling library_append(). Thanks to Brecht for the pointers on tracking this old bug down.
2008-03-19saveRenderedImage dosnt work in backgrond mode, so added a warning in the ↵Campbell Barton
docs and an exception if called.
2008-03-19added a warning in python api abot ipo curves. minor change to curve.c Campbell Barton
2008-03-18fix for [#7962] anomalous mem usage with pydrivers.py scriptsCampbell Barton
2008-03-18patch from Paul Rotering (pryon)Campbell Barton
[#7124] knot vector access for SurfNurb
2008-03-17Running scripts with Blender.Run() would crash when reloading.Campbell Barton
2008-03-17- [#8589] Scripts which use file selector not working correctlyCampbell Barton
Fix for another bug I introduced with persistent python windows. also removed unused var.
2008-03-17missing headerCampbell Barton
2008-03-16== PyNodes ==Willian Padovani Germano
Ongoing updates to the Blender.Node Python API: - Changed Blender.Node.node to Blender.Node.Scripted to be more specific and conform to bpython API. - Added a Blender.Node.Socket type to be used to define node sockets in a PyNode script. Also, socket type is inferred from the value(s) passed in, instead of also being defined by the script author. - Added attr access to input and output sockets in the __call__ method. Ex: an input socket called 'color' can be accessed as self.input.color now. These changes break existing pynode scripts, which shouldn't be a problem yet, of course, since we're still finishing this feature for 2.46. The wiki page and sample .blends have already been updated: http://wiki.blender.org/index.php/BlenderDev/PyNodes http://wiki.blender.org/index.php/BlenderDev/PyNodes/API
2008-03-16[8559] Python script that uses FIleSelector and has an error in it segfaults ↵Campbell Barton
Blender Want completely fixed, check if the script was removed before running the callback.
2008-03-16Constraints PyAPI:Joshua Leung
Added support for Limit Distance constraint
2008-03-16Constraints Py-Api:Joshua Leung
Fixed up Py-API access to PyConstraints. Also updated docs to reflect these changes.
2008-03-15fix for [#8559] Python script that uses FIleSelector and has an error in it ↵Campbell Barton
segfaults Blender
2008-03-15forgot to free memory for python api mesh.getTangents()Campbell Barton
2008-03-15fix bug in walking through script linked list (thanks VS)Benoit Bolsee
2008-03-14added mesh.getTangents() to the python apiCampbell Barton
2008-03-14resolved conflict state with HEAD r14096Jean-Luc Peurière
blenderbuttons still bad not let this compile
2008-03-12Moved recent addition of get/setPixelF to get/setPixelHDR and kept ↵Campbell Barton
get/setPixelF limited to 0.0-1.0 range, to prevent existing scripts breaking.
2008-03-12Added python access to TEXFACE_ALPHACampbell Barton
2008-03-11Bugfixes:Joshua Leung
* Menus could no longer have their items accessed by number (i.e. W-5 didn't run merge tool in EditMode when accessed by keyboard). This was caused by my commit for BUTM (there was some extra code there that isn't really needed, but was causing havok). * NumPad can now be used for the above feature too now * Typo in error message in Constraints PyAPI
2008-03-11fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() andCampbell Barton
cam.setDrawSize(), they would raise errors when setting ints. but used not to. better tooltips for Uv Stretch
2008-03-10Applied [#7076] Updated Python Image API to use float buffers in ↵Campbell Barton
getPixelF/setPixelF and added an image.updateDisplay() function to update imbuf->rect from imbuf->rect_float also corrected some docstrings and epydocs
2008-03-09fix for uninitialized variables in uv stretch drawing,Campbell Barton
[#8428] 'Editmesh_active' theme colour not accessible via Python bugfix problem where saving a theme would raise and error when ~/.blender didnt exist. bugfix for file selector staying open (introduced with own undo resistant scripts)
2008-03-08Bugfix #8478: Constraints PyApi for setting targetspace non-functionalJoshua Leung
Finishing off some unfinished business (from the multi-target constraints work), it is now possible to get/set target-space for constraints where this is relevant. For this to be possible, target-space setting(s) are now always presented as a list of ints, with each int representing the target-space setting for the relevant target. Constraints C-API note: get_targets function now needs to return the number of targets the constraint can have
2008-03-07snap menu order change, as suggested by Theeth, fix for own error with ↵Campbell Barton
Window.TestBreak()
2008-03-07Another big purge of warnings. (Main culprits this time were Campbell and ↵Joshua Leung
Geoffrey): * no newline at end of file (2-3) * uninitialised vars (1) * unused vars (1-2) * assigning/comparing pointers and ints (numerous) * etc.
2008-03-07PyAPI - Window.TestBreak() - True if the user pressed escape.Campbell Barton
2008-03-07Python APIKen Hughes
---------- Bugfix #8472: texture.image setter did not accept None to remove an image, or set the image type once an image was assigned.
2008-03-07Made python scripts save and load in the blend file so you can have the same ↵Campbell Barton
scripts running when you open a blend file. Also scripts will re-run on undo rather then closing. This is done by saving and loading the name of the script or textblock of the 'Script' datablock, connected to the ScriptSpace. This way when there is a name but the script dosnt run. Blender runs the script or text block if available.
2008-03-04PyAPI: create scene sequence data if its not there when getting scene.sequenceCampbell Barton
2008-03-03* Bugfix #8426: certain hooks options segfaulted Joshua Leung
This was caused by my previous commit for add_hook. * Also, removed a compiler warning in the Python code
2008-03-02Py API - rename UndoPush to SaveUndoStateCampbell Barton
2008-03-02* temproary -> temporary topy fxiNathan Letwory
2008-03-01Fix for bug [#8405] makeParentDeform segfaults BlenderCampbell Barton
linking armatures to objects didnt make pose data.
2008-03-01Removed warning from py-api codeJoshua Leung
2008-02-29Wrap UndoPush with python, needed for apricot, so changes made be scripts ↵Campbell Barton
can have undo's as well, otherwise users undo and loose changes the script made.
2008-02-27Fix for bug: cross platform strand render differences with kink/branch.Brecht Van Lommel
This time is was due to different accuracy of floating point computation, now it uses does a comparison a bit different to avoid this. Also changed the vectoquat function to be threadsafe.
2008-02-27Bugfix [#8328] Python scripts from user defined location doesn't loadCampbell Barton
http://projects.blender.org/tracker/index.php?func=detail&aid=8328&group_id=9&atid=125 last commit had mistakes but tested this to fix the bug. - Cam
2008-02-27should fix bug on win32 with user python menu's not loading because stat() ↵Campbell Barton
didnt like the trailing slash and returned the dir as missing.
2008-02-26== BPython ==Willian Padovani Germano
Another experiment to support threading properly. By default the Python Interpreter releases its lock every 100 instructions so that other threads get a chance to run Python code and API calls. But that is not enough to prevent race conditions causing artifacts (and maybe crashes) during threaded rendering, since all threads will access the same pynodes data. So I'm disabling this automatic releasing of the lock (the GIL) by the interpreter, which seems to be a better option for how Blender uses Python.
2008-02-25Added PyGILState_Ensure and PyGILState_Release funcs around module reloading.Campbell Barton
Without them blender would crash when reloading scripts.
2008-02-25Fix for bug #8081: python script crash writing MFace.uv.Brecht Van Lommel
2008-02-25Purge of compiler warnings (number 2):Joshua Leung
* initial values I added in radialcontrol.c might need to be reviewed if they cause problems(I used 200, as it seems many tools were setting that) * #pragma warnings are the only warnings I still get, so that means we have a clean slate again
2008-02-25== BPython ==Willian Padovani Germano
[#8354] Blender or Python25.dll crash on... quit, reported by David B. (myvain) The BPy_FreeButtonsList() function is also called after we call Py_Finalize(). Calling PyGILState_Ensure()/Release() there crashes Blender. Added a test to prevent this, but note that function still runs Python API code to free a buttons list. Doesn't seem to give problems, though. Thanks, David.
2008-02-24== PyNodes ==Willian Padovani Germano
Small update to where a PyGILState_Ensure() call is made. -- Let me use this commit to mention a couple things related to this change to make Python thread-safe in Blender: 1) This page explains the changes: http://wiki.blender.org/index.php/BlenderDev/BPythonAPI/Threads 2) If you experience hangs (deadlocks) when running anything related to Python in Blender, the related part in the code may need a proper Ensure/Release block, as explained in the above link. From Joshua (aligorith)'s previous commit to this file: "* various problems related to gilstate calls being added in strange places (could someone familiar with python double check that they're in the right places now)?" I checked the two places you fixed, second one is ok, the first one needed to be before the call to create a py dict -- done. Thanks for catching them!
2008-02-24Purge of warnings from BPY_interface.cJoshua Leung
* missing include for depsgraph from previous commit * various problems related to gilstate calls being added in strange places (could someone familiar with python double check that they're in the right places now)?
2008-02-24Patch #8344:Joshua Leung
Submitted by: Thomas Knight (epat) Parts committed: 1) Fixed a few misspellings in some error strings. 2) Fixed a (theoretical) bug with pyconstraints where a text object could be deleted from python but would remain linked to the constraint it was assigned to - causing slight UI usage discontinuities! Not committed yet: 3) Particle system bugfix in this patch has not been committed. Could jahka or brecht check this.
2008-02-23=== PyNodes ===Nathan Letwory
* Make PyNodes work with threaded renderer. This patch is by Willian. He has worked hard on getting this sorted out - now you should be able to render with PyNodes AND multiple threads.
2008-02-23=ID Property Bugfix=Joseph Eagar
There was an extraneous line causing ID property groups to have the wrong length, causing crashes in code that relied on it. This commit both fixes that and adds a version check to fix group lengths for older .blends. The subversion was incremented to 15 for this change.