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
2011-03-03replace 0 with NULL when used as a pointerCampbell Barton
2011-02-27doxygen: blender/makesrna tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-16rename IDPropertyGroup to PropertyGroupCampbell Barton
also renamed IDProperty to PropertyGroupItem (these are not referenced for common usage and we already have 'Property' defined).
2011-02-13warning cleanup.Campbell Barton
- fix mistake with grease pencil UI (&& was intended but & used). - use (void) rather then () across _all_ blenders code. - a few minor edits, don't shadow stack variables in roll calculation & avoid running memset() for VBO vertex map.
2011-02-12fix for more warnings.Campbell Barton
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array. - use BLI_snprintf rather then sprintf where the size of the string is known. - particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-07Type checks for internal ID-Property UI min/max/tip & use defines to get ↵Campbell Barton
values from ID-Props. Probably wouldn't cause a problem but manually editing these types through python could easily crash blender. also changed cmake, stub-makefile default build dir to be lower case and leave out architecture string, easier for documentation. Use ../build/linux/ rather then ../build/Linux_i686/
2011-02-02fix crash from report [#25746] Adding keyframes to nested custom properties ↵Campbell Barton
(IDProperties) of a bone causes segfault though keyframing still doesn't work, it gives an error instead. also use const char * in more parts of the py/rna api.
2011-01-25improve unregister error check not to loop over parent classes properties ↵Campbell Barton
(would check the same property multiple times)
2011-01-25fix [#25748] Addons register parameters/functions more than onceCampbell Barton
- values were added to both the classes __dict__ as well as the internal StructRNA. - made properties available from the type since this is where the python api assigns them: >>> bpy.types.Scene.frame_start <bpy_struct, IntProperty("frame_start")> - rename RNA_struct_type_properties() -> RNA_struct_type_properties(), added RNA_struct_type_find_property()
2011-01-17misc maintenance changesCampbell Barton
- metaball tessellation functuion was calculating density when it didn't need to. - image drawing was using a float as a loop counter, in extreme cases this could cause an infinite loop. - remove/comment unused vars.
2011-01-12"Pointer" properties can now be reset to some kind of "default" valueJoshua Leung
when using the Numpad0 feature to reset properties to their default values. While this implementation here is not a full/proper implementation, as you cannot truly specify a default value for some pointers that may require something other than NULL (i.e. nothing), this should be good enough for the vast majority of (editable) cases which are fine if set to NULL. This is most noticeable with the Active Keying Set field in the TimeLine header, where it's now possible to simply use Numpad0 to clear it instead of using a confusing click+backspace+enter dance to do the same thing.
2011-01-10comment dead code from RNA_pointer_create(), was finding the id pointer type ↵Campbell Barton
when 'id' was set, but not using it. also comment a few unused vars.
2011-01-09rename BKE_assert() --> BLI_assert().Campbell Barton
2011-01-09remove unused vars, comment some which look like they could be useful still. ↵Campbell Barton
have makesrna.c omit unused _data definitions for rna funcs with no args.
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.
2011-01-05fix for py/rna mesh.materials[:] where empty materials exist, would raise a ↵Campbell Barton
runtime exception. problem was there was no way to tell the difference between getting an empty item from a collection or the item not being found.
2011-01-03fix for [#25470] single property driver vars don't updateCampbell Barton
2011-01-01Bugfix #25437Ton Roosendaal
Crash in Bezier animation (inserting keys on control points in curve object). The animation rna paths were not fixed after an editmode session, which got fixed 2 weeks ago, but for all older binaries the issue can still pop up. The crash happened because the RNA array-itterator was not doing a boundary check, even whilst the array size was passed on to the itterator callbacks. With rna then writing far outside of valid memory, very bad and unpredictable corruptions happen. I've added a range check now, and a decent print to denote the issue. An assert quit is useless, since a tab-tab on curve objects will fix the channels nicely. Example of warning print: Array itterator out of range: Spline_bezier_points_lookup_int (index 30 range 2)
2010-12-21bugfix [#24469] Cannot add keyframes on custom properties in IDPropertyGroupsCampbell Barton
2010-12-19Patch from Dan to use id user functions rather then accessing direct. also ↵Campbell Barton
use warning fix using const for RNA_parameter_set() arg.
2010-12-17no functional change: only check against OB_RECALC_ALL but don't use for ↵Campbell Barton
assignment. Makes adding new flags give ambiguous results and also makes it less easy to tell whats intended. In some places it looks like OB_RECALC_TIME should be left out too.
2010-12-13check if a path can be created to a property before showing keyframe items ↵Campbell Barton
in menus since they only give an error when accessed.
2010-12-13Expose access to PROP_ENUM_FLAG from bpy.props.EnumProperty(), this is ↵Campbell Barton
exposed as a python set(). The default value is also a python set() so multiple booleans can be used in the 1 property. Also added PROP_ENUM_FLAG support to operator printouts.
2010-12-13multi-dimensional array resolving for rna paths.Campbell Barton
eg, "matrix[3][2]" could be used as a driver. Test from python bpy.context.object.path_resolve("matrix_world[2][3]") Before this was always treated as a 1 dimensional array.
2010-12-05Dependency graph: changed DAG_id_flush_update to DAG_id_tag_update. Now itBrecht Van Lommel
only tags the ID and does the actual flush/update delayed, before the next redraw. For objects the update was already delayed, just flushing wasn't yet. This should help performance in python and animation editors, by making calls to RNA property update quicker. Still need to add calls in a few places where this was previously avoided due to bad performance.
2010-12-04Give functions that use printf style formatting GCC format attributes so if ↵Campbell Barton
incorrect formatting is used the compiler will warn of this. found & fixed 2x incorrect formatting args.
2010-12-01partial fix [#23265] matrix_world rna path is visible but returns 0 to ↵Campbell Barton
drivers without error however accessed this report raised a number of problems with rna paths, while we still dont have multi-dimensional array access, invalid paths were being accepted which confused things. rna path resolving code was accepting all sorts of invalid input because atoi() just returns 0 for non numeric input. now check if 0 number == '0' character.
2010-12-01fix for crashes trying to resolve paths "location[]" or "location.."Campbell Barton
2010-11-29fix [#24921] Crash after inserting keyframing UV coords and changing frame ↵Campbell Barton
in edit mode zero length arrays were still having their members accessible.
2010-11-26remove support for rna resolving paths with collection['name'], only support ↵Campbell Barton
collection["name"], added r31826. This is valid python syntax but I rather be strict with data path format else it becomes harder to parse them if we try to support this. it means checks like fcurve.data_path.startswith('pose.bones["SomeBone"]') isn't ensured to work, since blender uses "" quotes everywhere for keyframe paths I dont think its an advantage to allow users to do it differently.
2010-11-23changes in own recent commit broke MSVC building.Campbell Barton
2010-11-23use zero initializers instead of memset(), also change PointerRNA_NULL from ↵Campbell Barton
an extern into a define.
2010-11-09RNA_property_as_string support for pointer properties, without this macro ↵Campbell Barton
arguments were just called '<POINTER>'
2010-10-31initialize structs to zero rather then using memset().Campbell Barton
2010-10-26Added function RNA_property_update_check() to check if an update call is needed,Campbell Barton
Simple python benchmark shows this to be about 3x faster in the case where an update isn't needed. This also speeds up rna function argument parsing, since each arg in a function call did 2 string lookups on the context which were never needed.
2010-09-24missing check in recent commitCampbell Barton
2010-09-24fix for python refcounting leak, RNA_path_resolve_full now unsets the index ↵Campbell Barton
if its not last.
2010-09-24bugfix [#23965] Segmentation fault when using bpy_struct.keyframe_insert() ↵Campbell Barton
with nested custom property
2010-09-22bugfix [#23514] Modifier names containing ']' character cant be animated.Campbell Barton
2010-09-09- fix for using ['prop'] in RNA apiCampbell Barton
- fix for testing without USE_PY_METACLASS defined.
2010-09-08Apply patch [#23632] Allow single quotes in RNA paths.Nathan Letwory
By Lukas Tönne In the console RNA paths can use double quotes (" ") or single quotes (' ') to select from a collection, an ID property or a vector/color component. The RNA_path_resolve function however only accepts double quotes. This patch adds the ability to use single quotes in areas other than the console too. PS. Note the very nice patch ID :)
2010-09-02rna context renameCampbell Barton
* context.main & bpy.types.Main --> context.blend_data & bpy.types.BlendData * context.manager --> context.window_manager
2010-08-31rna support for passing dynamic sized arrays to rna functionsCampbell Barton
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
2010-08-30fix for resolving rna paths, RNA_path_resolve could return a property which ↵Campbell Barton
was the parent of the pointer (when it would normally be assumed to be the child). also change pythons struct_rna.path_resolve to return StructRNA's or Properties when the property isnt NULL.
2010-08-26patch [#23316] Fix bug that doesn't show "X:" "Y:" "Z:" for vectors with lengthCampbell Barton
patch [#23317] Changed some operators' RNA to accept lengths by Lorenzo Tozzi (oni_niubbo) with the minor change to use XYZ subtype rather then LENGTH.
2010-08-23collection attributes can now be resolved with by rnaCampbell Barton
this now works... bpy.context.scene.path_resolve("objects.active.location") Also added an option to coerce the property into a native pytype.
2010-08-19- Properties from base classes are now registered too, this allows class ↵Campbell Barton
mix-in's to define properties. An example of how this is useful - an importer mixin could define the filepath properties and a generic invoke function which can run the subclasses exec for each selected file. - Panels and Menus now skip the property check when registering. - renamed _idproperties_ to _idprops_ in function names, function names were getting very long.
2010-08-13- remove WM_operatortype_exists since its almost the same as ↵Campbell Barton
WM_operatortype_find - hopefully fix reported problem with MSVC.