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-02-17Starting work on doxygen cleanup. Many things still to be done.Nathan Letwory
2011-02-14more vars made staticCampbell Barton
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-01bugfix [#25846] Strange behaviour if index of render.layers[] is out of rangeCampbell Barton
2011-01-18bad spelling; 'indicies' --> 'indices'Campbell Barton
2011-01-16defining types via python gave confusing errors because DefRNA.laststruct ↵Campbell Barton
was being used for errors when the new property wasn't on the last struct. added CONTAINER_RNA_ID() define to get the ID from the ContainerRNA type.
2011-01-13bugfix [#25588] Not work fcurve.keyframe_points.addCampbell Barton
The problem was flag-enums were being treated as regular enums, a default value of 0 was using the first enum item, whereas with flag enums we want to be able to use 0 as a default value to specify all flags are off.
2011-01-12comment array/collection skip(), since there was some confusion in this area ↵Campbell Barton
which caused bugs on index lookups.
2011-01-11bugfix - collection index lookups was not working correctly when some items ↵Campbell Barton
were skipped.
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-06fix for error in own recent commit, r34098.Campbell Barton
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-04fix for makesrna error on windows where files cant be removed when open.Campbell Barton
2011-01-04print a message if the file cant be removed, may help narrow down why there ↵Campbell Barton
are problems with MSVC at the moment.
2011-01-02Spelling fix: itterator->iteratorSergey Sharybin
2011-01-01For non-gnu compilers, the __func__ doesn't exist.Ton Roosendaal
Fix for commit of 2 hours ago.
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-31Continue from my commit r33952, which disallowed floats to be wrapped as ints.Campbell Barton
this missed some cases, now also disallow ints to be wrapped as floats. This commit also exposed a number of cases where ints/floats were incorrectly wrapped. Bugs like [#25416] wont slip through the cracks anymore.
2010-12-30Fix for bug #25367 didn't ensure the problem wasn't happening elsewhere.Campbell Barton
add a check in makesrna, found FollowPathConstraint.offset was a float wrapped as an int.
2010-12-19user report renaming file fails, print the errno error message.Campbell Barton
2010-12-19another reason to run makesrna needlessly every build is that the makesrna ↵Campbell Barton
binary is newer then the generated files.
2010-12-18workaround for build system dependency hell, fixed for cmake + makefiles ↵Campbell Barton
(probably other buildsystems too). makesrna was often generating source every build, but not updating the files because the contents wasn't changed. this happened because makefiles would check makesrna.c and rna_*.c files were newer then rna_*_gen.c and force a re-generation. Now ensure updating the files even if they dont change when makesrna.c or rna_*.c are newer then rna_*_gen.c files. Another solution for this would be to run makesrna program for each C file for finer grained deps. or remove file comparison checks but that would mean a change to any rna_*.c file would rebuild all.
2010-12-04Bugfix #24699Ton Roosendaal
Crash when deleting Shapekeys, while Graph or Dopesheet was visible. Caused by RNA collection lookup, which is not checking against index out of range errors. Brecht might have to give blessings for this though :)
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-11-17use 'const char *' by default with RNA functions except when the value is ↵Campbell Barton
flagged as PROP_THICK_WRAP. Also use const char in many other parts of blenders code. Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-10-02Fix #24095: user preferences theme colors didn't match exactly with whatBrecht Van Lommel
was drawn. Problem was that these were not set to be in gamma space. Also needed to fix automatic 0..255 to 0..1 range conversion for PROP_COLOR_GAMMA, was only working for PROP_COLOR.
2010-09-24bugfix [#23965] Segmentation fault when using bpy_struct.keyframe_insert() ↵Campbell Barton
with nested custom property
2010-09-03rna api Campbell Barton
- move: material.add_texture(tex, coords, mapto) --> material.texture_slots.add() - added material.texture_slots.create(index), material.texture_slots.clear(index) - texture slot functions also work for lamp and world now. Other minor changes - allow rna functions to set FUNC_NO_SELF and FUNC_USE_SELF_ID at once. - [#23317] Changed some operators' RNA to accept lengths, a modification I made to this patch made it not work as intended, removed this edit so unit buttons appier in the UI for certain operators. - Sphinx doc gen, 2 columns rather then 3, didnt quite fit in some cases.
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-03rna pointer poll function, not used yet.Campbell Barton
2010-07-27* Partially revert r30763, where PROP_IMAGEPATH was added.Nicholas Bishop
* Brush icon property back to not using image browser until a better solution is decided on.
2010-07-26* Added a new RNA subtype, PROP_IMAGEPATH. It's the same as PROP_FILEPATH, ↵Nicholas Bishop
but for images only. * Changed UI code to display image browser for PROP_IMAGEPATH * Set the icon_filepath RNA property for brushes to use PROP_IMAGEPATH * Changed preview icon drawing to ignore unset icons * Fixed const warnings in brush RNA
2010-07-17fix for assigning any ID in rna, it would not run id_lib_extern() which ↵Campbell Barton
means the library reference would be lost on reload.
2010-07-11Logic Editor Python API: link/unlink logics through pythonDalai Felinto
After initial talk with Matt (awhile ago) we realzed that rna_api would fit well for this instead of an operator. The next step would be to move the current UI code to use the rna funcs instead. Note: it takes the s/c/a as argument, not its name. (e.g. cont.link(actuator=act) ) Sample code to link all the logic bricks between each other: ob = bpy.context.object for cont in ob.game.controllers: for sens in ob.game.sensors: cont.link(sensor=sens) for act in ob.game.actuators: cont.link(actuator=act) For a script to create bricks, link bricks, unlink bricks and remove them: http://www.pasteall.org/14266
2010-06-22sequence.swap(other) rna function.Campbell Barton
2010-04-18various minor fixesCampbell Barton
- collada export would run MEM_freeN on an un-initialized pointer in some cases. - makesrna was missing a call to close a file. - text cursor update function was missing a NULL check for st->text. - possible (unlikely) un-initialized return value for bge python lamp.type, set error instead. - possible (unlikely) missing NULL terminator with strncpy for ffmpeg.
2010-04-17bugfix and cleanupCampbell Barton
- BGE Shader.setSampler(name, index): index range check was wrong. - Compositor check for an invalid channel was incorrect. - getting the center of selected verts used an uninitalized z axis. - do_init_render_material() used && rather then & when testing for MA_TRANSP. - weight paint activate flipped bone used && rather then & for flag checking.
2010-04-15Merge various small changes from render branch:Brecht Van Lommel
* Division by zero fix for TNT SVD code. * Sound fix, in case ffmpeg decode fails, don't use the samples. * Fix for incorrect bounds of transformed objects in new raytracing code. * Gave memory arena's a name used for allocations for easier memory usage debugging. * Dupligroup no_draw option was using layers but not restrict view/render setting. (not a bugfix exactly but would do display list context switching while drawing for no reason). * Fix objects instanced on hair particles not giving consistent results when the object is transformed. * New math functions: madd_v4_v4fl, len_squared_v3v3, interp_v4_v4v4v4, mul_v4_m4v4, SH and form factor functions, box_minmax_bounds_m4. * mul_m4_m4m4 and mul_m3_m3m3 now accept the same pointers for multiple arguments. * endjob callback for WM jobs system. * Geometry node uv/color layer now has search list/autocomplete. * Various small buildsystem tweaks, not strictly needed yet in trunk.
2010-03-24remove unused rna includesCampbell Barton
2010-03-22spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)Campbell Barton
2010-03-15Fix #20486: blender hangs upon import attempt of an .obj with >40k polys.Brecht Van Lommel
Added automatic generation of lookup_int callbacks for collections, for quicker lookup by index instead of looping over the whole thing. Import is still quite slow, though now it only takes a few seconds. The next bottleneck seems to be running update (depsgraph, notifiers, ..) on setting every property. I fixed part of that by avoiding a notifier to be added each time, now it checks for duplicates.
2010-02-28Partial Fix: [#21085] Sequencer file selector for movies is strangeAndrea Weikert
* joined filename and directory to single rna entry for movie and sound sequence * PROP_FILENAME was missing in makesrna * made seq->strip->data->name PROP_FILENAME rather than PROP_FILEPATH for the complete path * also made seq->strip->data->name read only Missing still: update of sequence length, start end frame etc..
2010-02-16[#18961] Use const char * where appropriate (2.5)Campbell Barton
from Sean Bartell (wtachi) added own changes bpy_props.c
2010-02-12correct fsf addressCampbell Barton
2010-02-08Warning fixes, one actual bug found in sequencer sound wave drawing. AlsoBrecht Van Lommel
changed some malloc to MEM_mallocN while trying to track down a memory leak.
2010-01-24RNA functionsElia Sarti
Fixed and completed support for returning multiple values. This includes support for returning arrays, both fixed and dynamically sized. The way this is achieved is by storing an additional int value next to the dynamic parameter in the ParameterList stack which gets passed to the C function as an additional parameter. In the case of return parameters it is duty of the C function to set this int to the correct length value for the dynamic parameter (which makes sense). Note that for the dynamic output/return parameter it is assumed the function has allocated that memory (which gets freed automatically). Also, I cleaned the makesrna's bridge function generation code a bit and renamed PROP_RETURN to PROP_OUTPUT, which represents better the reality now that there are multiple returns. The function now to mark multiple returns (outputs) is RNA_def_function_output. For an example, look at Action.get_frame_range in rna_action_api.c, by the way Aligorith I removed the #ifdef for this function now that there's support for returning arrays, feel free to modify (the function seems to work).
2010-01-22- bugfix (user supplied fix) [#20745] makesrna with rename error.Campbell Barton
- error with last commit, length had an index arg.
2010-01-22RNA: added option to pass self ID to RNA functions.Brecht Van Lommel