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
2012-05-16Code cleanup: simplify standard GHash creation.Nicholas Bishop
Added four new functions as shortcuts to creating GHashes that use the standard ptr/str/int/pair hash and compare functions. GHash *BLI_ghash_ptr_new(const char *info); GHash *BLI_ghash_str_new(const char *info); GHash *BLI_ghash_int_new(const char *info); GHash *BLI_ghash_pair_new(const char *info); Replaced almost all occurrences of BLI_ghash_new() with one of the above functions.
2012-05-15Fix cosmetic typosSergey Sharybin
Patch provided by Matteo F. Vescovi, thanks!
2012-05-11no need to clamp python values twice when assigning.Campbell Barton
2012-05-09classic compile error: GLEW_STATIC needs to be define when we use opengl ↵Antony Riakiotakis
functions
2012-05-09bgl new methods (for glsl shaders - #version 120)Dalai Felinto
** I did not update rst docs. I will post on the quick-hack list. If no one volunteers to do it, I have it done before next release. ** this patch add the barebone functions to do glsl shaders in an addon. For simplicity sakes it supports old GLSL, but not all the new modern methods (glBindFragDataLocation, ...). It should be enough to make an addon to help with bge 2d filters. I'm using this with a 3dview callback and it's working nicely: self._handle = context.region.callback_add(draw_callback_px, (self, context), 'POST_VIEW') I was considering not to commit this patch due to it not covering all OpenGL new methods. But frankly it's not the first time bgl is expanded upon individual needs (guilty of that myself). If a python developer knows enough to use OpenGL and need new functions, s/he should also be able to patch Blender for that, so I see no problems here. Another solution is to move to PyOpenGL or similar any soon. glShaderSource implemented differently than opengl standards. It's taking one source at a time (instead of an array of sources). This is similar with PyOpenGL solution. glActiveTexture glAttachShader glCompileShader glCreateProgram glCreateShader glDeleteProgram glDeleteShader glDetachShader glGetAttachedShaders glGetProgramInfoLog glGetProgramiv glGetShaderInfoLog glGetShaderiv glGetShaderSource glGetUniformLocation glIsProgram glIsShader glLinkProgram glShaderSource glUniform1f glUniform2f glUniform3f glUniform4f glUniform1fv glUniform2fv glUniform3fv glUniform4fv glUniform1i glUniform2i glUniform3i glUniform4i glUniform1iv glUniform2iv glUniform3iv glUniform4iv glUniformMatrix2fv glUniformMatrix3fv glUniformMatrix4fv glUniformMatrix2x3fv glUniformMatrix3x2fv glUniformMatrix2x4fv glUniformMatrix4x2fv glUniformMatrix3x4fv glUniformMatrix4x3fv glUseProgram glValidateProgram
2012-05-09Python/context: python could get invalid bpy.data in scene update handler afterBrecht Van Lommel
undo. The way this got updated from the context is a bit unreliable, and for handlers the update couldn't happen because there is no context passed in. Now it's updated from setup_app_data, which is where the change actually happens. I left in the other updates to be sure but they should not be needed anymore.
2012-05-07Style cleanup: displist moduleSergey Sharybin
2012-05-05code cleanup: function naming for BLI functions.Campbell Barton
2012-05-04Patch [#31279] clarifiy a python error-string (when incorrectly specifying enumJoshua Leung
items from python) Thanks Philipp Oeser (lichtwerk)
2012-05-01style cleanup: guys - set your editors to tabs!Campbell Barton
2012-05-01bmesh py api:Campbell Barton
add mtexpoly image access
2012-04-30bmesh - python apiCampbell Barton
- bm.*.layers.*.verify() - bm.*.layers.*.is_singleton - bm.*.layers.*.copy_from(other) also added api functons - BM_data_layer_copy(...) - CustomData_layertype_is_singleton(type)
2012-04-30style cleanup: re - ↵Campbell Barton
http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30code cleanup: header cleanupCampbell Barton
2012-04-30- improve select grouped prefix/suffix from recent patchCampbell Barton
- added select similar direction (Y axis)
2012-04-28Code and style cleanup in own modules in BKE and also mball moduleSergey Sharybin
- Make sure functions are named in way BKE_<object>_<action> (same way as RNA callbacks) - Make functions which are used by mball.c only static and remove their prototypes from public header file. Further cleanup is coming.
2012-04-28style cleanup: format 'for' loop macros the same as for loops, some renaming ↵Campbell Barton
to BLI_array macros.
2012-04-26fix [#31113] bmesh.types.BMLayerCollection getter calculate key indices ↵Campbell Barton
wrong (own fault) also add check so layer.name won't crash incase the layer becomes invalid.
2012-04-24Add libMV and Scons support for MinGW-w64, patches by Caleb Joseph with ↵Antony Riakiotakis
slight modifications. Thanks!
2012-04-23corrections from an article about using PVS-Studio static checker with ↵Campbell Barton
blender - http://www.viva64.com/en/b/0145/
2012-04-23bmesh py api: functions to add/renmove customdata layers, eg.Campbell Barton
bm.loops.layers.color.new("Testing")
2012-04-23code cleanup: change C naming convention (so py and C api match), eg:Campbell Barton
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-22style cleanup: commentsCampbell Barton
2012-04-22bmesh py api: expose BM_face_split_n() to the python api;Campbell Barton
face_fill(..., coords=(v1, v2, ...)) This is the same function the knife tool uses. should be handy for dicing up geometry in py.
2012-04-22correction to py docs from mgschwan on IRC.Campbell Barton
2012-04-21style cleanupCampbell Barton
2012-04-20bmesh py api: remove bmesh.loops.index_update(), it wasn't working, as joe ↵Campbell Barton
noticed.
2012-04-19bmesh py api: expose BMVert.calc_shell_factor()Campbell Barton
2012-04-19code cleanup: remove unused BMesh args.Campbell Barton
2012-04-19remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the ↵Campbell Barton
maceros had unused args in both cases).
2012-04-19style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITERCampbell Barton
2012-04-19bmesh api function: BM_edge_face_tangent()Campbell Barton
was used by inset but make into an api function since scripts can use this too.
2012-04-15add 'idprop' module so we can document idprop.types.*, currently doc ↵Campbell Barton
generator has no access to ID Property types.
2012-04-15make ngon_perimeter into a public api function and expose to python.Campbell Barton
2012-04-13Scons:Thomas Dinges
* Compile fix for r45609, pthreads include was missing.
2012-04-13Fix #30858: UI losing buttons at some random moment after using Blender for aBrecht Van Lommel
while. This may not fix all cases but should at least solve the issue when rendering with cycles. The cause was a race condition on C->data.recursion, with multiple threads accessing context at the same time. Cycles itself does not access context from the render thread, but the bpy api would do a context update for any callback in case e.g. a new file got loaded. Disabled that now in non-main threads. The ideal solution would be to not allow any context access at all from threads but that's not so simple to implement, especially not this close to release.
2012-04-13fix [#30925] successful import of keyconfig dependant on current object context?Campbell Barton
revert r34885, The hack was to fix poselib UI but is REALLY BAD - don't modify properties when accessing them. This bug must be fixed some other way.
2012-04-11py rna/api: fix for error running RNA_property_collection_type_get on non ↵Campbell Barton
collection property types.
2012-04-11fix [#30906] dict(prop) crashes if prop is a PropertyGroup with nested ↵Campbell Barton
PropertyGroup the ID of a python ID property can be NULL.
2012-04-10Fix #30698: python console nodetree paths were not accurate, now show ... likeBrecht Van Lommel
in some other cases to at least show these are not accurate.
2012-04-10fix for too small MATHUTILS_TOT_CB when the game engine runs.Campbell Barton
2012-04-07code cleanup: no functional changesCampbell Barton
- memset(..., -1) is used incorrectly even though it worked: MOD_solidify.c - thanks Halley from IRC for noticing this. use fill_vn_i() instead. - quiet warnings in editmesh_slide.c - cleanup comments in bmesh and some other minor comment additions.
2012-04-04add option not to delete edges/verts when joining faces, needed so we can ↵Campbell Barton
loop over edges and join them without having to check if they have been removed.
2012-04-02Hopefully last change to matrix orthogonal check, touches Py API onlySergey Sharybin
- is_orthogonal now checks matrix in the same way as it's defined by linear algebra, meaning that it'll use is_orhonormal C check - Added is_orthogonal_axis_vectors to check if vectors which defines axises are orthogonal
2012-04-02wrap RNA's RNA_property_collection_clear from python.Campbell Barton
2012-04-01Fix for is_orthogonal check which in fact was checking for orthonormal matrix.Sergey Sharybin
Separated it into two functions so now it'll be clear if check happens for orthonormal or just orthogonal.
2012-03-31code cleanup: use uppercase defines and change drawFCurveFade into static ↵Campbell Barton
function.
2012-03-31move debug flag into its own global var (G.debug), split up debug options.Campbell Barton
--debug --debug-ffmpeg --debug-python --debug-events --debug-wm This makes debug output easier to read - event debug prints would flood output too much before. For convenience: --debug-all turns all debug flags on (works as --debug did before). also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
2012-03-30patch to add __deepcopy__ to mathutils types, this is no different to ↵Campbell Barton
__copy__, except some py utilities expect __deepcopy__ to exist, so better have them.
2012-03-30fix for finding the python exception line number when running a script in ↵Campbell Barton
the text editor. - filename comparison was invalid - was stopping on the first traceback, which would reference the caller but not the error line (when the error was in a function).