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
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-01-06PyAPI: add PyList_APPENDCampbell Barton
This appends while giving ownership to the list, avoiding temp assignment. This matches PyList_SET_ITEM which bypasses refcount's Note, this also reduce code-size, Py_DECREF is a rather heavy macro.
2014-04-29Ignore user-preferences when inserting keys from PythonCampbell Barton
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2013-09-03Tweaks to New Driver creation behaviourJoshua Leung
* 'Show Debug' now enabled for all newly created drivers. For most users, it is useful to be able to see this to help figure out what's going on * Removed failed experiment of creating new drivers with Generator FModifiers. I had hoped that this would make it easier to create drivers that doubled or halved the input values, but that has proved to not be the case, and instead made harder for most users to set things up (as they'd have to remove these first). Now, when adding drivers from the UI, these get created with two keyframes (at (0,0) and (1,1) for a 1-1 mapping), which can be easily tweaked normally. However, for backwards compatability of scripts (notably rigify, and perhaps some others out there), when creating drivers from scripts, they will still get created with Generator FModifiers for now. We can review this situation again for 2.7, but for now it seems ok.
2013-04-22Bugfix [#34836] Crash when driver variable has path == 'data'Joshua Leung
Most of the places which relied on RNA_path_resolve() did so believing that if it returned true, that it had found a valid property, and that the returned pointer+property combination would be what the path referred to. However, it turns out that if the property at the end of the path turns out to be a "pointer" property (e.g. "data" for Object.data), this would automatically become the pointer part, while the prop part would be set to null. Hence, if a user accidentally (or otherwise) specifies a path for the single-property driver variable type like this, then Blender would crash. This commit introduces two convenience functions - RNA_path_resolve_property() and RNA_path_resolve_property_full() - which mirror/wrap the existing RNA_path_resolve() functions. The only difference though is that these include a check to ensure that what was found from resolving the path was in fact a property (they only return true iff this is the case), and make it explicitly clear in the name that this is what they will do so that there's no further confusion. It is possible to do without these wrapper functions by doing these checks inline, but the few cases that had been patched already were pretty hideous looking specimens. Using these just make it clearer and simpler for all. I've also beefed up the docs on these a bit, and changed these to using bools.
2013-03-01style cleanup: braces with multi-line statements, also add some comments.Campbell Barton
2013-01-10pyapi internal api code: check for == -1 rather then < 0, for known error ↵Campbell Barton
returns.
2013-01-07code cleanup: warnings and use stdbool for bpy* funcs.Campbell Barton
2013-01-02fix [#33726] keyframe_insert() and keyframe_delete() with index=-1 always failCampbell Barton
The bug was introduced in r53297, was calling pyrna_struct_anim_args_parse() twice for no reason, perhaps baddly applied patch?.
2012-12-23Add keying "options" parameter to keyframe_insert() bpy_rna function, so now ↵Bastien Montagne
you can enable 'INSERTKEY_NEEDED', 'INSERTKEY_VISUAL' and/or 'INSERTKEY_XYZ_TO_RGB' when you directly key some property from python script (previously those options were only available through keyingsets). Thanks to Campbell for review!
2012-09-20code cleanup: remove unused macros, commet some which may be useful later - ↵Campbell Barton
or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-03-27style cleanup: py apiCampbell Barton
2012-02-27use LIKELY/UNLIKELY macros for operations that run a lot.Campbell Barton
2011-12-26formatting edits only to use more consisted styleCampbell Barton
2011-12-18formatting edits in py api, no functional changesCampbell Barton
2011-11-26minor bpy api editsCampbell Barton
- strict check for rna properties - formatting edits (120 line width) - use PyDoc_STRVAR macros for getset docstrings
2011-11-05documentation - brief descriptions for bpy api files.Campbell 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-10edit error macro formatting (confuses some editors)Campbell Barton
2011-10-09correction to RNA class api references (only used for docs)Campbell Barton
2011-08-14add in asserts for when array/non array RNA funcions are used incorrectly, ↵Campbell Barton
would have made previous fix a lot easier to find. also remove unused argument from RNA_property_array_check.
2011-05-08Fixes for bugs noticed during previous fix:Joshua Leung
- In Drivers mode of Graph Editor, expanders for sub-object data were not working at all. This was because they were getting overriden by an errant ob-level drivers check - Adding drivers from py-api didn't update Graph Editor
2011-04-30whitespace edits for bpy api, split some really long lines.Campbell Barton
2011-04-03quiet various warnings, also disable -Wdouble-promotion with cmake since it ↵Campbell Barton
gives warnings with variable length args.
2011-03-19C, style changes (mostly white space edits), no functional change.Campbell Barton
2011-03-12py/rna: BPy_reports_to_error() now takes the exception type as an argument ↵Campbell Barton
and returns -1 as an error value
2011-03-02fixed compile problem intruduced in r35295M.G. Kishalmi
one import was missing, another one used twice.
2011-03-02SVN maintenance.Guillermo S. Romero
2011-03-02move anim functions out of bpy_rna.c, its getting too big.Campbell Barton