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
path: root/source
AgeCommit message (Collapse)Author
2012-05-11Add mask support to CCGSubSurf and multires.Nicholas Bishop
* Add new CCG function ccgSubSurf_setAllocMask(). Similar to to ccgSubSurf_setCalcVertexNormals(), it sets whether the CCG elements have a mask layer and what that layer's offset is. Unlike normals however, it doesn't change any behavior during CCG calculation; it's there only to give CCGKey information on the mask. * Add a new flag to _getSubSurf(), CCG_ALLOC_MASK. If set, space for an extra layer is allocated, but the number of CCG layers is not set to include it. This is done because GridPaintMasks are absolute, rather than being relative to the subdivided output (as MDisp displacements are), so we skip subdividing paint masks here. * Add a new flag to subsurf_make_derived_from_derived(), SUBSURF_ALLOC_PAINT_MASK. This controls whether CCG_ALLOC_MASK is set for _getSubSurf(). Related, masks are never loaded in during ss_sync_from_derivedmesh(). After subdivision is finished, if the alloc mask flag is set, the number of CCG layers is increase to 4 with ccgSubSurf_setNumLayers(). * Add a new flag to multires_make_from_derived(), MULTIRES_ALLOC_PAINT_MASK. Not all multires functions need paint mask data (e.g. multiresModifier_base_apply.) This flag is always set in MOD_multires.c so that subdividing a mesh with a mask updates properly even when not in sculpt mode. * Update multiresModifier_disp_run() to apply, calculate, and add mask elements. It's almost the same as the existing operations with xyz coordinates, but treats masks as absolute rather than displacements relative to subdivided values. * Update multires_customdata_delete to free CD_GRID_PAINT_MASK in addition to CD_MDISPS. * Update multires_del_higher() to call the new function multires_grid_paint_mask_downsample(), which allocates a lower-resolution paint mask grid and copies values over from the high-resolution grid.
2012-05-11Add GridPaintMask accessor to paint.c.Nicholas Bishop
2012-05-11Add paint mask access to the PBVH vertex iterator.Nicholas Bishop
2012-05-11Add access to mesh vertex customdata to the PBVH.Nicholas Bishop
2012-05-11Add DNA and customdata entries for paint masks.Nicholas Bishop
CD_PAINT_MASK is a layer of per-vertex floats for non-multires meshes. Multires meshes use CD_GRID_PAINT_MASK, which is a layer of per-loop GridPaintMask structures. GridPaintMask is similar to MDisp, but contains an array of scalar floats. Note: the GridPaintMask could be folded into MDisp, but this way should be easier to add mask layers in the future (if we do fold GridPaintMask into MDisp, the mask array should probably be an array of arrays with a 'totmask' field so that mask layers can be easily supported.) Includes blenload read/write support for CD_PAINT_MASK and CD_GRID_PAINT_MASK.
2012-05-11Replace hardcoded DMGridData structure with CCGElem/CCGKey.Nicholas Bishop
* Changes to DerivedMesh interface: DMGridData has been removed, getGridData() now returns an array of CCGElem pointers. Also added getGridKey() to initialize a CCGKey (implemented only by CCGDerivedMesh.) * PBVH: added BLI_pbvh_get_grid_key(). * A lot of code is affected, but mainly is just replacing DMGridData.co, DMGridData.no, and sizeof(DMGridData) with the CCG_*_elem functions, removing the reliance on grid elements of exactly six floats.
2012-05-11Add CCGKey/CCGElem for accessing CCGSubSurf elements.Nicholas Bishop
CCGKey caches information about the CCGSubSurf element layout. This data, along with the CCG_* inline functions, allows access to CCGSubSurf elements with an arbitrary number of layers (as opposed to the hardcoded DMGridData structure which assumes xyz coordinates followed by three normal components.) The CCGElem structure is declared but not defined anywhere, just used as a convenient type.
2012-05-11Modify CCGSubsurf to subdivide an arbitrary number of (float) layers.Nicholas Bishop
The layout of vert data in CCGSubSurf is almost the same; previously it was three floats (for xyz coordinate) optionally followed by three floats for the normal. The only change is that the first three floats can now be any number of floats. * _getSubSurf takes a numLayers parameter to set the number of layers, stored in CCGMeshIFC.numLayers. * All calls to _getSubSurf currently have numLayers set to 3, except for UV subsurf, where it is reduced to 2 (with a corresponding change when reading the results out to use float (*)[2] rather than float (*)[3].) * The various VertData* macros in CCGSubSurf.c are now functions that take a CCGSubSurf pointer, which provides access to CCGMeshIFC, which has numLayers. * Add ccgSubSurf_setNumLayers() to the API. Only changes the number of layers that get subdivided, doesn't change the amount of memory allocated. So if space for N layers is allocated, it's safe to set the number of layers to less than N, but not more. * The rest of the changes are just adding the 'ss' parameter.
2012-05-11Add new options to PAINT_OT_brush_select, toggle and create_missing.Nicholas Bishop
The toggle option, if enabled, will toggle back and forth between two brushes. (The first brush of the desired tool type will be toggled to, running the toggle again switches back to the previously selected brush.) If no brush of the desired type is found, and the create_missing option is enabled, a new brush of that type will be created and set.
2012-05-11Add an RNA access function to get an enum item name from its value.Nicholas Bishop
New function is RNA_enum_name_from_value.
2012-05-11Code cleanup for multires_dm_create_from_derived().Nicholas Bishop
Changed name to multires_make_derived_from_derived() and parameter order to be more similar to subsurf_make_derived_from_derived(). Added MultiresFlags enum with flag values to replace the local_mmd and useRenderParams parameters.
2012-05-11Code cleanup for parameters of subsurf_make_derived_from_derived.Nicholas Bishop
This is the first commit of the sculpt masking merge. Documentation: http://wiki.blender.org/index.php/User:Nicholasbishop/PaintMasks Thanks to Brecht for reviewing! Replaced four boolean parameters with a single flag and a new enum, SubsurfFlags.
2012-05-10Fix #31221: Multiple Monitors/Windows Double Click For FocusSergey Sharybin
Window might be focused by mouse click in configuration of window manager when focus is not following mouse. Click could have been done on a button and depending on window manager settings click would be passed to blender or not, but in any case button under cursor should be activated. Currently the easiest way to activate button is to generate mouse move event. Not sure about OSX, but on windows it worked fine because OS is generating WM_MOUSEMOVE event "automatically" so nothing special from blender side was needed.
2012-05-10minor changes to sequencer apiCampbell Barton
- rename seqelements.push(file) --> filename - rename SoundSequence.waveform --> show_waveform - dont pass context to sequencer functions. editing any scenes sequence can be done, irrespective of context.
2012-05-10Fix #31393: Shape Keys on curves with hooksSergey Sharybin
Own mistake when was fixing #30561 - handles ARE included in shape keys
2012-05-10style cleanup: sequencer and scene rnaCampbell Barton
2012-05-10patch [#30871] VSE py-api Campbell Barton
from Dan Eicher (dna) --- message from the tracker Classes for all effect types with proper input attributes Added new/delete functions for SequenceEditor.sequences. push/pop functions for ImageSequence.elements to add/remove images Moved waveform from the base class to SoundSequence (probably should be renamed use_waveform or show_waveform) Fixed user count for scene and movie clip types --- my own comments - dont have blending mode argument from sequencer.new_*() functions. Better edit this after. - dont change waveform attribute, seems unrelated change and should be kept for sound afaik. - dont apply scene, clip usercount changes - Sergey dealt with these separately.
2012-05-10Enable ffmpeg building with MinGW-w64. The libraries were compiled with gcc ↵Antony Riakiotakis
4.7, however is has been claimed there are issues with gcc > 4.4 so this is for testing purposes. Still it doesn't crash on startup anymore. Forgot to mention on ffmpeg lib commit that committed ffmpeg version is 0.10.2
2012-05-10fix [#31382] Loop Cut and Slide numpad (-)Campbell Barton
investigation lead to finding 3 bugs here... - transform key input handling didnt ignore minus key on an unsigned value as it should. - not being able to set numcuts to 0 made typing in numbers not very useful. - backspace would set the cuts to an unsigned value.
2012-05-10fix for fix, own fix for [#31368] didnt work right, now move shadeless & ↵Campbell Barton
wire paint drawing into draw_mesh_paint().
2012-05-10Apply [#30199] Fix COLLADA export of material namesNathan Letwory
Submitted by Daniel Balster
2012-05-09fix: #31374 Wrong/Missleading hint texts in material assignment. (as ↵Gaia Clary
clarified with Daniel Salazar & Campbell Barton)
2012-05-09fix: #31374 Wrong/Missleading hint texts in material assignment.Gaia Clary
2012-05-09some speedups for face angle drawingCampbell Barton
- avoid calculating face center when the face isnt used at all. - avoid copying vectors when its not needed.
2012-05-09Camera tracking: exr frames used to be displayed in linear spaceSergey Sharybin
It was a regression since texture buffer merge from tomato, now ensure all display happens in sRGB space as it used to be before.
2012-05-09Fix #31371: copy data path should be disabled in places where it doesn't work,Brecht Van Lommel
like the user preferences. Also renamed "View Docs" menu entry to "Python Documentation".
2012-05-09Fix crash doing alt+A playback in files saved in version <= 2.34, this code runsBrecht Van Lommel
before the version patch which it ideally shouldn't, but moving it to a different location is tricky.
2012-05-09fix [#31378] Face Angle Rounding To Agressive/Not done in 2.49x?Campbell Barton
2012-05-09style cleanup: pngCampbell Barton
2012-05-09patch [#31355] 16-bit pngs are only read with 8-bit precisionCampbell Barton
from David M (erwin94)
2012-05-09Refactor of modifiers' apply function: now use a single bit-flag parameter ↵Bastien Montagne
to pass options, instead of having one parameter per boolean flag (i.e. replaces current useRenderParams and isFinalCalc by a single ModifierApplyFlag flag. ModifierApplyFlag is an enum defined in BKE_modifier.h). This way we won't anymore have to edit all modifier files when e.g. adding a new control flag! Should have no effect over modifier behavior.
2012-05-09patch [#31359] Py Console: Empty current lineCampbell Barton
from Sebastian Nell (codemanx), with some edits - Changed key shortcut to Shift+Enter. - made into its own operator since it works differently to delete.
2012-05-09Fix #31366: check to enable opengl quadbuffer stereo was wrong, causing it toBrecht Van Lommel
not work and making other stereo modes not work when the graphics card did not support quadbuffer stereo.
2012-05-09code cleanup: color/bw conversion - use BLI color function.Campbell Barton
change modifier to use the average of the RGB since perceptual conversion isn't really needed for modifiers.
2012-05-09Fix for recent changes in glslSergey Sharybin
smooth seems to be a keyword in glsl and using it as a name for function property caused issues.
2012-05-09classic compile error: GLEW_STATIC needs to be define when we use opengl ↵Antony Riakiotakis
functions
2012-05-09style cleanup: whitespace/operatorsCampbell Barton
2012-05-09Fix #31349: Composite node is not found when part of a group.Sergey Sharybin
Made smarter check for composite output node which now checks if there are composite output nodes in group nodes.
2012-05-09Camera tracking: fixes for tracking of float imagesSergey Sharybin
- Fixed suddenly disappearing preview image from track widget - Also suddenly stopping tracking should be fixed now Both issues were caused by mixing working with floats and bytes and in some cases it was wrong or missed checks done for this.
2012-05-09copy constraints to object/bones had same name (made operator search confusing)Campbell Barton
2012-05-09Fix #31369. Needed some do_versions backward compatibility code to ensure ↵Lukas Toenne
the old file path was split correctly into base path + filename.
2012-05-09Apply [#31335] COLLADA: fix for odd names for materials in exported dae filesNathan Letwory
Patch by Gaia Clary This patch removes the index numbering from materials, which is not necessary.
2012-05-09fix [#31368] No masking drawn in Weightpaint-mode when displayed as wireframeCampbell Barton
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-09update stubs for blenderplayerAntony Riakiotakis
2012-05-09Cycles: fix issues with texture coordinates and object scale. Auto textureBrecht Van Lommel
space size and location were outdated often, and already computed on demand by blender internal, now do that through RNA as well.
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-09style cleanup: graph & armatureCampbell Barton
2012-05-08style cleanup: gpencil & metaballCampbell Barton
2012-05-08style cleanup: nlaCampbell Barton