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
2014-04-26Code cleanup: use 'const' for arrays (python)Campbell Barton
2014-02-14Py API: refactor py text compiling into its own functionCampbell Barton
2013-07-02remove nan copyrights from code added since blender become opensource (copy ↵Campbell Barton
paste errors), also remove BKE_script.h
2013-03-17code cleanup: add 'const' to headers to quiet msvc warnings, also remove ↵Campbell Barton
(char *) casts that aren't needed now we're on Python3.3
2013-02-19minor change to own recent commit with transform fcurve centers and some ↵Campbell Barton
style edits and typo corrections.
2012-11-18style cleanup: comments & spellingCampbell Barton
2012-11-06was trying to make py import follow pythons own code more but broke py32 ↵Campbell Barton
compat. this should fix
2012-11-06fix for imp.reload() with Python3.3, function was recursively calling its self.Campbell Barton
2012-07-22code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 defineCampbell Barton
also some minor style cleanup.
2012-07-19remove unneeded externsCampbell Barton
2012-07-17code cleanup: spellingCampbell Barton
2012-06-21Fix for [#31396] "bge.logic.LibLoad fails to import text blocks" reported by ↵Mitchell Stokes
Leonard Ritter. Blender's import function check's the Text datablocks in main for additional modules for importing. However, libloaded scenes were 1) not loading Text datablocks and 2) not letting bpy know about them. Text datablocks are now loaded if a Scene is loaded and bpy can now looking through extra Mains to find additional modules.
2012-05-21py api integration: __import__(... , level=0)Campbell Barton
default changed to work with python3.3
2012-03-26style cleanup: python apiCampbell Barton
2012-03-17style cleanup: py/capiCampbell Barton
2012-03-09style cleanup: spelling.Campbell Barton
also remove large, duplicate comments from sunsky.h
2012-01-11Longer names support for all ID and other object namesSergey Sharybin
This commit extends limit of ID and objects to 64 (it means 63 meaning characters and 1 for zero-terminator). CustomData layers names are also extended. Changed DNA structures and all places where length constants were hardcoded. All names which are "generating" from ID block should be limited by MAX_ID_NAME-2, all non-id names now has got own define called MAX_NAME which should be used all over for non-id names to make further name migration stuff easier. All name fields in DNA now have comment with constant which corresponds to hardcoded numeric value which should make it easier to further update this limits or even switch to non-hardcoded values in DNA. Special thanks to Campbell who helped figuring out some issues and helped a lot in finding all cases where hardcoded valued were still used in code. Both of forwards and backwards compatibility is stored with blender versions newer than January 5, 2011. Older versions had issue with placing null-terminator to DNA strings on file load which will lead to some unpredictable behavior or even crashes.
2011-12-26formatting edits only to use more consisted styleCampbell Barton
2011-12-24formatting edits 120 line lengthCampbell Barton
2011-11-05py operators - don't use the screen as an operators ID anymore, screen's ↵Campbell Barton
don't store operator instances and operator functions have access to the context if they need the current screen. also add some more py api file descriptions.
2011-11-05macro formatting & remve some unused code.Campbell Barton
2011-10-27use const for readonly strings and set some functions to staticCampbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-13formatting edits & remove debug print.Campbell Barton
2011-10-08use newly added ID_BLEND_PATH() in more places.Campbell Barton
2011-09-26replace strncpy with BLI_strncpy, in some cases strncpy was being misused ↵Campbell Barton
since it doesnt ensure \0 termination. also dont call CTX_data_scene() twice when checking for function arguments.
2011-09-07use Py_ssize_t rather than int when dealing with list sizes (original patch ↵Campbell Barton
from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-06-02mathutils support for color arithmetic, also some minor whitespace edits. Campbell Barton
2011-05-29access pythons code object directly rather than attribute access.Campbell Barton
2011-04-21minor changesCampbell Barton
- remove some warnings - fix typos - cmake allow in-source build (when WITH_IN_SOURCE_BUILD is defined) - cmake, use an explicit list of rna files (don't glob)
2011-04-19Some strings to store ID names were too small, could cause stack corruption.Campbell Barton
corrected these and replaced 'sizeof(((ID *)NULL)->name)-2' with 'MAX_ID_NAME-2'.
2011-03-29fix [#26667] Can't import scripts when using blenderplayerCampbell Barton
- move import override initialization to bpy_internal_import.c so the player and blender can both call. - remove ineffectual & unused sandboxing code.
2011-03-19C, style changes (mostly white space edits), no functional change.Campbell Barton
2011-03-07Drop support for python 3.1.Campbell Barton
for building py3.2 on *nix see: http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python also fixed possible buffer overrun with getting the fake filepath for a blender textblock.
2011-02-27doxygen: blender/python tagged.Nathan Letwory
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-12-03Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for ↵Campbell Barton
'const char's,. Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-10-27Convenience defines SEP and ALTSEP (python has these), move BLI_*_slash ↵Campbell Barton
function into path_util.h since these are not fileops.
2010-10-27workaround for python bug [#24400] If Script is executed with TEXT Editor, ↵Campbell Barton
it becomes an error. having the blend file as a part of the __file__ variable is not essential, this is fixed in python 3.2 so add an ifdef and don't use the blend file path for py older then 3.2.
2010-10-18bugfix [#24306] Python : relative import errorCampbell Barton
2010-10-18remove G.sce, use G.main->name instead.Campbell Barton
Both stored the filename of the blend file, but G.sce stored the last opened file. This will make blender act differently in some cases since a relative path to the last opened file will no longer resolve (which is correct IMHO since that file isnt open and the path might not even be valid anymore). Tested linking with durian files and rendering to relative paths when no files is loaded however we may need to have some operators give an error if they are used on the default startup.blend.
2010-10-14UNUSED() macro so -Wunused-parameter can be used with GCC without so many ↵Campbell Barton
warnings. applied to python api and exotic.c, removed some args being passed down which were not needed. keyword args for new mathutils types were being ignored when they should raise an error.
2010-10-04bugfix [#24087] Blender can not install add-ons unless running with root ↵Campbell Barton
priviledges now addon path is created using the same path functions and selecting where to save the startup.blend also made some minor changes to path handling funcs.
2010-09-18move namespace creation function into py_capi_utils.c, to be used in more ↵Campbell Barton
general cases, not just the blender/rna api.
2010-08-30bugfix [#23197] Python can't handle German umlaut characters in stringsCampbell Barton
workaround for python bug with Py_CompileString(), reported http://bugs.python.org/msg115202
2010-08-14- PyLineSpit() - used to print the filename and line number for internal ↵Campbell Barton
errors now works when executing class functions in a module. - replaced PySys_GetObject("modules") with PyImport_GetModuleDict() - use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-08-05bugfix [#23148] "ImportError: __import__ not found" on changing Render FPSCampbell Barton
The BGE was getting the namespace dict directly from __main__ which conflicts with my recent fix to get the pickle module working which to overwrote the __main__ module on script execution. Simple fix is to have the BGE and Blender use the same method of getting namespaces. Renamed CreateGlobalDictionary() to bpy_namespace_dict_new() and moved into bpy_internal_import.c pickle still wont work in the BGE since we make a copy of __main__ namespace but for speed would rather not have to replace the __main__ module many times per second.
2010-07-17spelling correction: alredy --> alreadyCampbell Barton