Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-04-24 | Cleanup: style | Campbell Barton | |
2017-04-13 | Datablock ID Properties | Alexander Romanov | |
The absence of datablock properties "will certainly be resolved soon as the need for them is becoming obvious" said the [[http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.67/Python_Nodes|Python Nodes release notes]]. So this patch allows Python scripts to create ID Properties which reference datablocks. This functionality is implemented for `PointerProperty` and now such properties can be created with Python. In addition to the standard update callback, `PointerProperty` can have a `poll` callback (standard RNA) which is useful for search menus. For details see the test included in this patch. Original author: @artfunkel Alexander (Blend4Web Team) Reviewers: brecht, artfunkel, mont29, campbellbarton Reviewed By: mont29, campbellbarton Subscribers: jta, sergey, campbellbarton, wisaac, poseidon4o, mont29, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov, fjuhec, sharlybg, cardboard, duarteframos, blueprintrandom, a.romanov, BYOB, disnel, aditiapratama, bliblubli, dfelinto, lukastoenne Maniphest Tasks: T37754 Differential Revision: https://developer.blender.org/D113 | |||
2017-04-10 | PyAPI: Fast buffer access to id property arrays | Jacques Lucke | |
Support Python's buffer protocol for ID-properties. | |||
2017-04-09 | Cleanup: use doxy code block | Campbell Barton | |
2017-04-09 | ListBase: Add insert-replace function | Campbell Barton | |
Handy to replace an existing link (without having to store before/after links) Use for id-props | |||
2017-03-30 | Cleanup/fix bad code in IDP_SetIndexArray() | Bastien Montagne | |
Mainly, using index before checking for its validity... | |||
2016-07-31 | PyAPI: Add PyC_UnicodeAsByteAndSize | Campbell Barton | |
Read the string length from Python directly when assigning id-properties | |||
2015-11-09 | Cleanup: avoid incrementing/decrementing id->us outside of BKE_library. | Bastien Montagne | |
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...). | |||
2015-01-26 | Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage). | Bastien Montagne | |
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places... | |||
2014-12-14 | Fix for idproperty comparison | Campbell Barton | |
comparing arrays had flipped logic | |||
2014-12-12 | Fix T42883: ID-Prop arrays longer than 'shot' fail | Campbell Barton | |
2014-11-21 | Cleanup: typo | Campbell Barton | |
2014-11-15 | Cleanup (mostly 0/1 -> false/true). | Bastien Montagne | |
2014-11-10 | Fix/workaround T37073: Crash updating custom props visible in the UI | Campbell Barton | |
2014-11-03 | Cleanup: remove rarely used IDProp iterator | Campbell Barton | |
2014-08-15 | Cleanup | Campbell Barton | |
2014-08-11 | Fix compilation error with debug scons | Sergey Sharybin | |
The issue is that we've got hell with DEBUG and _DEBUG, theu're defined really inconsistent acros CMake and SCons. Used more reliable NDEBUG definition for IDP_spit. | |||
2014-08-01 | Prevent macros hiding casts from `const` pointers | Campbell Barton | |
2014-06-17 | Support for building without Python | Campbell Barton | |
2014-04-24 | Quiet warnings | Campbell Barton | |
2014-04-24 | Fix T39867: Hotkey is not displayed in the node editor's menu. | Bastien Montagne | |
Making both keymap and menu values the same, and adding a (debug only) check in IDP_EqualsProperties_ex() warning when comparing two floats with nearly the same value. | |||
2014-04-01 | Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define | Campbell Barton | |
2014-02-15 | IDProp API: change IDP_NewString so `sizeof()` can be passed in. | Campbell Barton | |
2013-12-12 | Fix T37595: Switching modal transform broke with trackball rotation. | Campbell Barton | |
Id properties may have different sized "values" array depending on the transform operator | |||
2013-12-12 | Code Cleanup: use const's and bools for idprops | Campbell Barton | |
2013-10-16 | add IDP_FreeFromGroup(), replaces IDP_RemFromGroup(), IDP_FreeProperty(), ↵ | Campbell Barton | |
MEM_freeN(). | |||
2013-09-30 | add asserts for id property functions (ensure invalid types aren't passed) | Campbell Barton | |
2013-09-05 | simplify idprop reallocation with MEM_recallocN | Campbell Barton | |
2013-07-21 | code cleanup: add break statements in switch ()'s, (even at the last case). | Campbell Barton | |
2013-05-15 | Fix slow resizing of ID property arrays with more than 1619 items, it ↵ | Brecht Van Lommel | |
incorrectly reverted to sizing with by 1 each time. This was slowing down painting long strokes with small brush radius. | |||
2013-03-24 | code cleanup: move doxy docs from headers into source. also replace ↵ | Campbell Barton | |
strncpy();str[len]=0 with BLI_strncpy() in BLI_stringdec(). | |||
2013-03-10 | add STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for ↵ | Campbell Barton | |
some areas of the python api, bmesh. | |||
2013-02-22 | patch [#34103] - listbase.patch, insertlinkbefore.patch | Campbell Barton | |
from Lawrence D'Oliveiro (ldo) notes from tracker: use bool for return type from BLI_remlink_safe, necessitating including BLI_utildefines.h in BLI_listbase.h get rid of duplicate BLI_insertlink, use BLI_insertlinkafter instead. A few places which were using BLI_insertlinkafter (actually BLI_insertlink), when it would be simpler to use BLI_insertlinkbefore instead. | |||
2013-02-04 | style cleanup: spaces -> tabs | Campbell Barton | |
2013-01-14 | no need to call BLI_countlist on idproperty groups when comparing. | Campbell Barton | |
2013-01-03 | add id property clear function (matching the same python function for ↵ | Campbell Barton | |
dicts/lists) | |||
2012-11-01 | fix [#30910] Problems: Add Shortcut(s) for "Ctrl Tab" menu | Campbell Barton | |
comparing keymaps was too sloppy or too strict, now sloppy keymap comparison works by setting all the operator properties to their default values if they are not already set, then compare this with the keymap item (ignoring values missing from either one). ... this way any non default keymap setting wont match with an operator menu item which doesnt set this operator at all (a problem sighted in this bug report). developer notes: - IDP_EqualsProperties_ex() function adds an argument to treat missing members of either group to act as if there is a match. - WM_operator_properties_default() function to reset RNA values to their defaults. - add IDP_spit(), debug only function to print out ID properties. | |||
2012-10-31 | code style: use switch for IDP_EqualsProperties() | Campbell Barton | |
2012-10-31 | add IDP_MergeGroup(dst, src, overwrite) function, | Campbell Barton | |
like PyDict_Merge() | |||
2012-09-16 | style cleanup | Campbell Barton | |
2012-09-03 | add endian switch functions to replace macros SWITCH_INT/LONG/SHORT, with ↵ | Campbell Barton | |
BLI_endian_switch_int32/int64/float/double... | |||
2012-08-17 | fix own error in recent smoothview cleanup, also correct some cross ↵ | Campbell Barton | |
references in bmesh docs. | |||
2012-07-08 | correct use of nonull attribute | Campbell Barton | |
2012-07-08 | use gcc attrubutes to warn on unused return values and arguments which ↵ | Campbell Barton | |
shouldnt be NULL. also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either. | |||
2012-05-17 | style cleanup: line length and ensure some macros error when not ending with ';' | Campbell Barton | |
2012-05-06 | style cleanup: blenkernel | Campbell Barton | |
2012-04-28 | style cleanup: changes to brace placement / newlines - for/while/if/switch | Campbell Barton | |
2012-04-25 | code cleanup: typos and set gcc attributes for string formatting. | Campbell Barton | |
2012-03-24 | style cleanup: follow style guide for formatting of if/for/while loops, and ↵ | Campbell Barton | |
else if's | |||
2012-03-18 | spelling cleanup | Campbell Barton | |