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-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-07Bug fix: unbaked particle cache was cleared from current frame onwards on ↵Janne Karhu
file load.
2011-01-07Revert bump mapping patch for now, backwards compatibility is not good enough,Brecht Van Lommel
we may need to preserve the previous method.
2011-01-07Improved bump mapping patch by M.G. Kishalmi (lmg) and M.S. Mikkelsen (sparky).Brecht Van Lommel
Many thanks to them! For comparison, see here: http://kishalmi.servus.at/3D/bumpcode/ Based on algorithm in: Mikkelsen M. S.: Simulation of Wrinkled Surfaces Revisited. http://jbit.net/~sparky/sfgrad_bump/mm_sfgrad_bump.pdf This fixes bugs: #24591: Artefacts/strange normal mapping when anti-aliasing is on #24735: Error at the Normal function. #24962: Normals are not calculated correctly if anti-aliasing is off #25103: Weird artefacts in Normal This will break render compatibility a bit, but fixing this bugs would have also done that, so in this case it should be acceptable. Patch committed with these modifications: * Bump method Old/3-Tap/5-Tap option in UI, 3-Tap is default * Only compute normal perturbation vectors when needed * Fix some middle of block variable definitions for MSVC
2011-01-07New hair child options:Janne Karhu
* Renamed children to "simple" and "interpolated" as this is easier to explain and more descriptive than "from particles" and "from faces". * Also shuffled the child ui around a bit to make it clearer. * Child seed parameter allows to change the seed for children independent of the main seed value. * Long hair mode for interpolated children: - Making even haircuts was impossible before as the child strand lengths were even, but their root coordinates were not similar in relation to the parent strands. - The "long hair" option uses the tips of the parent strands to calculate the child strand tips. * Hair parting options: - Hair parting can now be calculated dynamically on the fly when in 2.49 there was a cumbersome way of using emitter mesh seams to define parting lines. - For long hair parting can be created by a tip distance/root distance threshold. For example setting the minimum threshold to 2.0 creates partings between children belonging to parents with tip distance of three times the root distance ((1+2)*root distance). - For short hair the parting thresholds are used as angles between the root directions. * New kink parameters: - Kink flatness calculates kink into a shape that would have been achieved with an actual curling iron. - Kink amplitude clump determines how much the main clump value effects the kink amplitude. - The beginning of kink is now smoothed to make the hair look more natural close to the roots. * Some bugs fixed along the way too: - Child parent's were not determined correctly in some cases. - Children didn't always look correct in particle mode. - Changing child parameters caused actual particles to be recalculated. * Also cleaned up some deprecated code. All in all there should be no real changes to how old files look (except perhaps a bit better!), but the new options should make hair/fur creation a bit more enjoyable. I'll try to make a video demonstrating the new stuff shortly.
2011-01-07cmake: share the DNA_*.h list definition between makesrna and makesdnaCampbell Barton
2011-01-05Todo item:Ton Roosendaal
Object color option now is incorporated in preview render, and in display in 3D window. Note that Object-color is "modulating" the render result, it just multiplies... which is very limited for practical use. This was added for Apricot game project. The original meaning however was to replace diffuse only... so specular and light work still correct. ALso made header for properties editor start on top, to reflect default (report in tracker).
2011-01-05Fixing bugs in future: Ton Roosendaal
DNA reconstruct now terminates strings, when the new string in a file is longer than in current definition. This will enable a safer ID and other name lengthening, keeping at least some forward compitability.
2011-01-05Todo item: linked curve objects behaves incorrect with modifiersSergey Sharybin
Use object's displists for storing deformed tesselated curve. Was unable to totally get rid of curve's displist because of how texture space is calculating.
2011-01-05Animation data for lattices is now shown in the Animaton EditorsJoshua Leung
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-04Grease Pencil Todos: "Sketching Sessions"Joshua Leung
Due to popular request and usability considerations, this commit reintroduces functionality similar to 2.4's "Draw Mode" for Grease Pencil. In the toolbar under the Draw/Line/Eraser buttons, you can find the "Use Sketching Sessions" toggle, which enables this feature. This is a per-scene setting, and defaults to off, so that the current 2.5 behaviour is still the default (i.e. the Grease Pencil operator will only do a single stroke at a time). With this option enabled, drawing with Grease Pencil will enter a semi-modal state where you can draw multiple strokes without needing to keep holding the DKEY throughout (though you'll still need to do so to start the strokes, unless you use some toolbar buttons), while still being able to manipulate the viewport. Header help-text prints show the appropriate keybindings (i.e. press ESCKEY or ENTER to end the sketching session). Notes: - To aid maintainability of the 3D-View toolbar code, I've taken the liberty to factor out the groups of widgets which commonly occur in most of the toolbars into separate functions (namely "Repeat" and "Grease Pencil"). Perhaps it might make it slightly harder to newbies to the toolbar code to grasp, though the physics panels are far worse ;) - I've reshuffled some code in the Grease Pencil code to separate out the various states of operation again more clearly, though some more work is still needed there (TODO) - There can now be only one Grease Pencil operator running at a time - Redoing Grease Pencil operations where sketching sessions was enabled still needs work. Namely, a way of delimiting the set of points recorded into strokes is still needed (TODO) - Ultimately, it should be possible to switch tools midway through a session. Currently sessions are limited to only being able to be used with a single drawing mode (TODO) - After ending a drawing session, the titlebar contols may not work on Windows without manually making the main window lose focus and then regain (i.e. click on some other window in toolbar, then come back). This may be related to (bug #25480)
2011-01-03Todo itemTon Roosendaal
Drag/drop now has a User preset for dragging threshold. Noticed this was set to 3 pixels even, made it 5 as default. Tablet owners can put it larger too :) Note: the tweak-threshold (3d win) is 10 pixels now, I think this needs another preset too, leave this for now. Also: fixed crash in filewindow: drag .blend icon and drop it. You can't test anything in Blender or you get a bug :)
2011-01-02Small feature for debugging pleasure:Ton Roosendaal
The svn revision nr is saved in Blender file header now. Can only be retrieved with running blender -d now.
2011-01-02Pointcache code cleanup and disk cache compression options:Janne Karhu
* Massive reorganization of pointcache code, things are now cleaner than ever. * For all but smoke the cache is first written to memory when using disk cache and after that written to disk in one operation. This allows less disk operations and the possibility to compress the data before writing it to disk. * Previously only smoke cache could be compressed, now the same options exist for other physics types too (when using disk cache). For now the default compression option is still "no compression", but if there aren't any problems this can be set to "light compression" as it's actually faster than no compression in most cases since there's less data to write to the disk. Based on quick tests heavy compression can reduce the file size down to 1/3rd of the original size, but is really slow compared to other options, so it should be used only if file size is critical! * The pointcache code wasn't really 64bit compatible (for disk cache) until now, so this update should fix some crashes on 64bit builds too. Now all integer data that's saved to disk uses 32 bit unsigned integers, so simulations done on 64bit should load fine on 32bit machines and vice versa. (Important disk cache simulations made on 64bit builds should be converted to memory cache in a revision before this commit). * There are also the beginnings of extradata handling code in pointcache in anticipation of adding the dynamic springs for particle fluids (the springs need to be stored as extradata into point cache). * Particles were being read from the cache with a slightly wrong framerate. In most cases this probably wasn't noticeable, but none the less the code is now correct in every way. * Small other fixes here and there & some cosmetic changes to cache panel, but over all there should be no functional changes other than the new disk cache compression options. * This whole re-organization also seems to fix bug #25436 and hopefully shouldn't introduce any new ones!
2011-01-02Fix for [#25427] cloth or soft body crash un UndoJanne Karhu
* Argh my bad, sorry about this! * Now only the actual data array is saved to avoid constant re-allocations, but no relations to active data are kept. * Also reverted Ton's quick fix for the crash as it's not needed anymore.
2010-12-31CMake: use blender_include_dirs("${OPENGL_INCLUDE_DIR}") rather then ↵Campbell Barton
blender_include_dirs(${OPENGL_INCLUDE_DIR}) Apparently this is needed for MSVC in some cases, reported by Tamito Kajiyama r33895.
2010-12-28Drivers Code Cleanups and UI Tweaks:Joshua Leung
- Adding drivers from the UI (not from py-scripts though) will now automatically add a "Transform Channel" driver variable to the newly created drivers. This makes setting up drivers a bit more convenient for the most commonly used case. - Drivers now report their errors using the Reports system instead of writing these directly to the console. - Clarified some comments to be more insightful about the "why's" of some design decisions, and related formatting/cleanup tweaks - Reduced scope of "path" vars to just the scope they're required in - Removed some unused defines from a failed experiment in the original Keying Sets code ("templates" and "template flags") which was superseeded by the more flexible + nicer "Builtin KeyingSets"
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-23Fix for multiple modifier stack calculations per frame.Campbell Barton
Since 2.5x blender has been using CD_MASK_BAREMESH for updating objects since object_handle_update() no longer has access to G.curscreen to calculate the mask from viewports. The problem with this is after an initial calculation, CD_MASK_MTFACE may be required on draw, so it would recalculate the modifier stack multiple times per frame. One case which caused this is armature animated mesh with texface in a dupligroup. Fix this by having customdata_mask member in the scene, this isn't great design but at least fixes the bug and only changes a few files.
2010-12-23rename blenderlib to blender_add_libCampbell Barton
2010-12-23Compact -I paths in makefiles for more readble files/output.Guillermo S. Romero
Also some white space cleaning and removal of redundant parameter.
2010-12-22bugfix [#25335] crash with file, console told me to report! svn 33836Campbell Barton
view rotate precision was lost over time, make view3d rotate normalize rv3d->viewquat. note, this no longer crashes blender, just prints. also commented some RegionView3D struct members.
2010-12-21Fix for [#25325] Timeline doesn't show status of baked psys until frame is ↵Janne Karhu
advanced * Timeline didn't listen to file read notifier, so the pointcache frames indicator didn't get updated. * Also added listens to particle & modifier (cloth, sb & smoke) notifiers as changes that cleared a pointcache weren't shown directly in the timeline either. * The timeline display was also always one frame behind the actual state, since the notifiers are handled before the actual dynamics are calculated. ** This is now fixed too, by creating the actual drawn data always at drawtime.
2010-12-21Bugfix #25330Ton Roosendaal
3D Window: Snap to cursor or grid, didn't respect the 'restrict location' options for objects or bones.
2010-12-20Fix #25315: Curve points keyframe changes made in edit mode get lostSergey Sharybin
ED_curve_updateAnimPaths now updates fcurves from animation data rather than from local copy of curves: nurb and point index from keyIndex data gets updated in this function and for correct handling undo stuff copy of fcurves is stored in UndoCurve. Additional changes: - Revert of rev33640 and more proper fix: do not copy remained spline-related rna fcurves after renaming pathes but all the rest fcurves woulddbe copied back to animation data - Refresh graph and dopesheet editor after updating animation data
2010-12-20fix [#25313] Outliner View Active only works once icon has been shown in view.Campbell Barton
also disable UNDO and REGISTER flags for OUTLINER_OT_show_active() since its just scrolling the view.
2010-12-20fix [#25283] Edge length display difficult to readCampbell Barton
- made theme colors for mesh edge len & face angle/area display. - use %g rather then %f for float display, trims unneeded zeros. - store cached 2d and 3d text color as bytes rather then floats, compare when drawing to avoid setting the context. - use unsigned char for more color functions, avoids casting to glColorubv().
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-16last commit to fix warnings didnt set them at all, not it works as it should.Campbell Barton
also made cmakes output a lot quieter, messages can be uncommented for debugging or added back if other devs need this for some reason.
2010-12-14Fixed bug #23826, Other kind of brushes appear in sculpt modeNicholas Bishop
Was another problem caused by each brush being allowed in more than one paint mode. Added a new field to the brush struct to indicate what mode the icon was last set for; if it's changed then reset it. Not sure if it's really worth it to cache this, could remove it for simplicity.
2010-12-13"Fix" for [#25184] Forces for growing hair - update inconsistency - as ↵Janne Karhu
discussed with Jahka on Saturday on IRC * New option to "Regrow hair" for each frame. * This was perhaps more a feature request, but there was a similar useful feature called "animated hair" in particles at some point. * The previous behavior for hair growing was inconsistent to say the least, so this is a nice option to have.
2010-12-13Lattices now have AnimDataJoshua Leung
This allows manual (point by point) animation of their control verts, although many other settings cannot really be animated with any visible effects yet. Interestingly, lattices also had IPO block pointers, though they were never really used (AFAIK). Todo: - Animation Editor support has yet to be added. I've got a few other things to add to, so will group those changes together.
2010-12-12Bugfix #25179Ton Roosendaal
Armature properties: layer buttons now show which ones are in use, like object layers.
2010-12-12- fix for rna show_brush variable shadowing its parent classes with a flag ↵Campbell Barton
which is now unused. - getting clipboard RNA variable would crash blender in background mode.
2010-12-12avoid possible errors, surround bit shifted defines with brackets.Campbell Barton
2010-12-11Added some explanation to pointcache->step value as suggested by troubled on ↵Janne Karhu
irc.
2010-12-08metaball rotations must be kept normalized, normalize values after setting ↵Campbell Barton
from rna/python.
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-08bug [#25081] changes to pose bone selection state via python have no effect.Campbell Barton
Remove pose channel select, this is for internal use on read/write only. Its possible to have a convenience attribute but rather not fake bone data being in the pose channel. just access pose_bone.bone.select
2010-12-08Changed armature active bone so it is separate from selection this is ↵Campbell Barton
consistent with active object, mesh editmode, curves & metaballs. - active is no longer assumed to be selected. this fixes a simple bug - eg: Adding a new armature, entering pose mode and toggling selection failed. - outliner editbone selection now works like object and pose mode. - mouse selection sets the bone active even when the tip is selected. - active, unselected bones draw as wire color with a 15% tint of the selected color.
2010-12-07"Particle" texture coordinates for halo materials:Janne Karhu
* Particle age can now be used as the texture x-coordinate, and location in a particle trail as the y-coordinate. * This finally enables particles in 2.5 to change their color (or any other texturable material property) by their age. * In 2.4x this was accomplished with the "100 frames == particle age", but this was both non-intuitive and slow as the animation system had to be recalculated for every particle. * Currently these are 2d coordinates (age/lifetime == x-coordinate, trail particle index/number of trail particles == y-coordinate), but other particle properties or possibly even a user definable property can be added as coordinates in the future. * On the code side this uses the same coordinate definition number (for halo materials) as strand coordinates (for surface materials). This is also nice as they intuitively mean nearly the same thing, i.e. along strand or during particle life.
2010-12-06Curves CV animationSergey Sharybin
=================== Update fcurves RNA pathes after making changes to curve topology, so animation will no longer lost after edit and wouldn't lead to crash. Will be very useful for RotoBezier addon. Also NodeKeyIndex renamed to CVNodeIndex due to node is an entity from another module and better not used in others.
2010-12-06bugfix [#24995] Object rotation seems to be applied incorrectlyCampbell Barton
- Object actuator rotation was being scaled by: (1/0.02)*2*PI/360 == 0.872, since revision 2. - Remove scaling and use do_versions to adjust existing files.
2010-12-06[#25047] Deletion of any custom key map item remove always first oneMartin Poirier
keymap item id for user defined keymaps wasn't defined properly. This is really old, I'm surprised with didn't catch this before.
2010-12-06bpath iterator updatesCampbell Barton
- loop over sequencer plugin and texture voxel paths. - fix leak in python bpy.utils.blend_path() and use PyUnicode_DecodeFSDefault() to ensure correct paths with different encodings. - operators to make paths absolute & relative now redraw the view.
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.