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-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-02-12Sculpting on deformed meshSergey Sharybin
========================== Removed limitation of armatured-only objects for sculpting -- now all deformation modifiers are allowed in sculpt mode. Use crazyspace corrections like from transformation modules was used to support all deformation modifiers. Internal change: all crazyspace-related functions were noved to crazyspace.c P.S. Brush could make quite unexpected deformation for meshes which are deformed in specified way. Got patch for this and discussing with Brecht if it's really needed or maybe it could be done in better way.
2011-02-12Save one memory block allocation/disposing when propagating changes fromSergey Sharybin
deformed PBVH to the base mesh. It's not real bottleneck, but crazyspace corrections looks nicer now. Real bottleneck is normals re-calculation, which calls plenty of fsqrt's. We could avoid this for some modifiers (which don't use normals), but such checking would make code less controllable.
2011-02-09Update mesh normals when undoing sculpt stroke to prevent shadingSergey Sharybin
artifacts in some cases (enter edit mode/disabling modifiers after undo)
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-01Fix #25884: Crazy behaviour of the rotate brushSergey Sharybin
Rotation brush used to be crazy because it depends on normal of area under brush, which is used as axis to rotate vertexes around and this normal used to change during stroke. Calculate normal from original mesh state for rotation tool too.
2011-01-31Todo issue: sculpting on deformed meshSergey Sharybin
Used a crazyspace approach (like in edit mode), but only modifiers with deformMatricies are allowed atm (currently shapekeys and armature modifiers only). All the rest modifiers had an warning message that they aren't applied because of sculpt mode. Deformation of multires is also unsupported. With all this restictions users will always see the actual "layer" (or maybe mesh state would be more correct word) they are sculpting on. Internal changes: - All modifiers could have deformMatricies callback (the same as deformMatriciesEM but for non-edit mode usage) - Added function to build crazyspace for sculpting (sculpt_get_deform_matrices), but it could be generalized for usage in other painting modes (particle edit mode, i.e) Todo: - Implement crazyspace correction to support all kinds of deformation modifiers - Maybe deformation of multires isn't so difficult? - And maybe we could avoid extra bad-level-stub for ED_sculpt_modifiers_changed without code duplicating?
2011-01-30remove nan-makefilesCampbell Barton
2011-01-18bad spelling; 'indicies' --> 'indices'Campbell Barton
2011-01-17Bugfix #25657Ton Roosendaal
Three code fixes for 1 report. User experienced crashes while painting on float buffer + having preview renders on. - Texture Nodes: Image was re-allocated without using proper thread lock - Paint code: old convention to free the byte rect from a float image as signal to re-create now is a proper flag. This keeps image memory unchanged. Nice for render. - Imbuf: call to make a byte rect from float was freeing mipmaps unnecessary.
2011-01-15IRC bugreport fix: thumb brush works incorrect when using tablet by Dan ↵Sergey Sharybin
McGrath (troubled) Quite silly fix, not sure if it could be smarter with current events/brushes design. Use pressure_value from first brush step for brushes which don't support strokes -- thumb. brush, brushes with anchored stroke method. Should be fixed in nicer way after events redesigning. P.S. Tried to place pressure saving into invaliants update fuunction, but it seens that this function wouldn't know about pressure yet.
2011-01-13Sculpt:Nicholas Bishop
Small cleanup, de-duplicated the code for combining proxies
2011-01-12Bugfix #25570Ton Roosendaal
The tool-redo depends on a working undo system, so it can rewind a step and then redo operator with new settings. When a user disables undo, this won't work. Now the properties for redo operator (toolbar, F6) will grey out when a redo isn't possible.
2011-01-12remove redundant assignments & unused vars.Campbell Barton
also minor functional changes - OBJECT_OT_make_links_data() type property is now assigned to the operator property (so popup menu can find it) - removing BG image now returns cancelled if no image is removed.
2011-01-11Bugfix #25581Ton Roosendaal
Pressure sensitivity for Sculpt 'strength' got lost in code cleanup. Added warning in code, the function call is confusing.
2011-01-11Bugfix, own testingTon Roosendaal
When pressure was zero, a sculpt brush was still being executed with step amount divided by zero, and thus entering eternal loop. Maybe tablet-specific this but I wonder how this never got reported...
2011-01-09Bugfix #25557Ton Roosendaal
Using texture brush in Sculpt, was calling to use "osa tex" without giving it osa sample vectors. This crashed in using texture nodes.
2011-01-08Sculpt/Paint:Nicholas Bishop
More cleanups: moved a function declaration to the correct module, removed old/incorrect comments, marked more things with TODO where appropriate, refactored copy-pasted function, de-duplicated code.
2011-01-08Paint:Nicholas Bishop
More cleanups to the cursor drawing code; factored out another sculpt-related function, replaced float calculations with bitwise flags, removed unnecessary GL changes, de-duplicated some lines, removed unused parameters, and added more comments.
2011-01-08Paint cleanup:Nicholas Bishop
Pulled out the paint brush overlay drawing code into its own function, brush drawing function was before ~250 lines.
2011-01-08Paint/Sculpt:Nicholas Bishop
More minor cleanups: fixed names and factored out a function that was copy-pasted into paint stroke.
2011-01-08Paint/Sculpt:Nicholas Bishop
Some minor cleanups: removed `#if 0' code and moved a function into paint_util to avoid `extern' declaration.
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-06bugfix [#25498] Projection paint clone tool leaves seamsCampbell Barton
2011-01-04Crease tool brush missed brush color changing depends on brush appearance.Sergey Sharybin
2011-01-04Fix #25483: Brush appearance colorSergey Sharybin
Set special brush flag when inversion stroke was started, not wery nice, but we can't make better with current events system implementation.
2011-01-03DAG_id_tag_update was being called with non object ID's and OB_RECALC_* ↵Campbell Barton
flags which only apply to objects. harmless but misleading.
2010-12-24Bugfix #25371Ton Roosendaal
Sculpt: brush type "Grab" with option "Frontface only" was flipping back and forth when grabbing outside of original brush area. Reason: it was calling a function that used deformed coordinates for getting normal, clipped by brush area. Now it uses original coordinates, so it always finds normal. Nicholas can determine better if tag "cache->original" should be set as default for this brush type, this far I don't dare to go :)
2010-12-23remove View3D.customdata_mask, since its stored in the scene now there is no ↵Campbell Barton
need for each view to store every views combine data mask.
2010-12-23rename blenderlib to blender_add_libCampbell Barton
2010-12-17Bugfix #25261Ton Roosendaal
Adding weightgroup in weight-paint now sends notifier, so buttons update
2010-12-17Fixed bug reported by Reuben Martin:Nicholas Bishop
Undoing in sculpt mode with drawing mode not set to solid didn't redraw correctly. Problem was that the non-PBVH VBOs need to be remade in that case.
2010-12-15Fixed bug #23042, Sculpting + Multires + Noise texture tears meshNicholas Bishop
Noise texture moved the edges of multires grids different, causing tears in the mesh. Fixed with a call to re-stitch grids (but only done if the brush texture is set to noise)
2010-12-14Bugfix #22040Ton Roosendaal
Old bug report: Image Editor, Painting: crash when texture was visible in Material or Texture preview. Was caused by paint code freeing mipmaps. Now replaced with a mipmap tag (to be done again), and a new mipmap function that doesn't re-allocate.
2010-12-13bugfix [#23395] Mirror + Front Faces Only + Grab = Scaling oddityCampbell Barton
sculpt normal was used un-initialized, this also affected snake/hook brush.
2010-12-12isect_seg_seg_v2_point was modifying the value of line vectors passed.Campbell Barton
this could be confusing later on, now swap the pointers rather then changing their values.
2010-12-08use lowercase for cmake builtin names and macros, remove contents in else() ↵Campbell Barton
and endif() which is no longer needed.
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-04Maintenance, Campbell Barton
- remove some redundant declarations - changed VertexTangent and Path structs to avoid compiler alignment padding.
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-12-03- added GCC warning -Wstrict-prototypesCampbell Barton
- fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03fix for some pedantic warnings.Campbell Barton
2010-11-29include headers in cmake source, added a script to check for consistency, ↵Campbell Barton
reporting missing headers & C files. this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-28minor changes to the python api.Campbell Barton
- pep8 script was giving an error on non utf8 scons source files. - use PyList_SET_ITEM macro when list type is ensured. - all mathutils types use subtypes to create new types when available. - use defines MAT3_UNITY, MAT4_UNITY to initialize unit matrices.
2010-11-24fix [#24879] "Feather" symmetry option in sculpt mode crashes.Campbell Barton
rotate_m4() was being called with axis=0
2010-11-23use zero initializers instead of memset(), also change PointerRNA_NULL from ↵Campbell Barton
an extern into a define.
2010-11-21- include pthreads for win32 globally (as with opengl).Campbell Barton
- MSVC CFLAGS were being set by only checking WIN32, (breaking non-msvc win32 builds)
2010-11-17Fix #22645: Texture paint: soften tool does draw brushesSergey Sharybin
Disable projection painting for soften tools. Also it looks like smear tools support projection in the code, so enabled project paint menu for such tools
2010-11-16bugfix [#24747] Blender crash entering in Sculpt ModeCampbell Barton
rotate_m4 was being called with a zero axis.