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-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-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-07patch [#25440] Object.vertex_group fixin'Campbell Barton
from Dan Eicher (dna) From the tracker (with minor edits) ======================== cube = bpy.data.objects['Cube'] foo = cube.vertex_groups.new('foo') foo.add([1,3,5,7], 1.0, 'ADD') for i in range(len(cube.data.vertices)): try: weight = foo.weight(i) print('vert: %i weight: %f' % (i, weight)) except: pass foo.remove([1,3]) cube.vertex_groups.remove(foo)
2011-01-06Todo item:Ton Roosendaal
Auto-texture space now is more responsive and correct. - on transforming it, the buttons get redrawn to show option was reset - on enabling option, texture space is recalculated/reset
2011-01-06Improve reliability when setting property editor context via rnaMatt Ebb
2011-01-06fix for error in own recent commit, r34098.Campbell 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-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-05py api function to tag all ID blocks, was available in 2.4x as.Campbell Barton
bpy.data.meshes.tag = True But this was only useful for setting so make it a function for 2.5x. bpy.data.objects.tag(False) X3D: use tagging rather then a name dictionary, this fixes a bug where library name overlaps could mix up names.
2011-01-05Animation data for lattices is now shown in the Animaton EditorsJoshua Leung
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-04Grease Pencil: Redo for sketching sessions now worksJoshua Leung
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-03rename layout.red_alert to alert, may be themeable some day.Campbell Barton
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.
2011-01-032.4x <-> 2.5 Regression Fixes: Shapekey ProblemsJoshua Leung
This commit partially fixes the problems with Shapekeys from older files, as seen from the Regression suite (relative.blend and dolphin.blend in particular). In older files, keyblock->slidermax was never truly set to 1.0 even though the UI may have shown such a value (which was bizzarely being sourced from somewhere else). Hence, after loading the files in 2.5, the shapekeys wouldn't animate, as the value would get clamped between 0 and 0. To fix this, I've added a version patch which corrects these situations in old files, and I've adjusted the slider-RNA code so that it is not possible to set up such clamping anymore. TODO: The fixes detailed here only make it possible for these files to work again in 2.5. However, I haven't been able to find a way to get the files to actually work in 2.5 without manually changing the active shapekey (per object) after loading the files with these patches applied. Possibly it's just some depsgraph magic needed, unless there's still some other evil voodoo in the shapekey code
2011-01-03fix for [#25470] single property driver vars don't updateCampbell Barton
2011-01-03rna/apiCampbell Barton
move Object.update(...) to ID.update(). since depsgraph update function can now be called on ID types. also changed how update flags work. obj.update(scene, 1, 1, 1) ... is now obj.update({'OBJECT', 'DATA', 'TIME'}) Don't pass scene anymore. This was used for recalculating text but I think this is better dont in a different function.
2011-01-03remove rna func scene.collada_export(), export functions dont exist for any ↵Campbell Barton
other formats, calling operators should suffice.
2011-01-03"Red-Alert" flags can now be set on UI layouts via the RNA API tooJoshua Leung
2011-01-03Bugfix:Joshua Leung
Setting the group for F-Curves from the Py-API (i.e. to move F-Curves from one group to another) was failing. After debugging this, this functionality should now work correctly, while still prohibiting the setting of groups on "F-Curves that aren't in actions" (i.e. driver- fcurves)...
2011-01-02Spelling fix: itterator->iteratorSergey Sharybin
2011-01-02Bugfix 25451Ton Roosendaal
Tooltip for "default render output" was wrong.
2011-01-02Fix #25435: remove code that enabled EWA filter on mipmap toggle, should notBrecht Van Lommel
have been there, mistake in removing SAT filter.
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-02bugreport & fix [#25441] Copy Transforms Constraint head/tail fixin'Campbell Barton
from Dan Eicher (dna)
2011-01-02report & fix [#25447] SceneObjects null pointer dereference crashCampbell Barton
from Dan Eicher (dna) noticed sequence swap also wasn't checking for None.
2011-01-01For non-gnu compilers, the __func__ doesn't exist.Ton Roosendaal
Fix for commit of 2 hours ago.
2011-01-01Bugfix, IRC reportTon Roosendaal
Floor constraint didn't work: the defines for the enums were using the wrong ones, the right ones are not logical... but code and dna and old files assume these. Now it works :)
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-31fix [#25429] Armature modifier and inverted vertex groupCampbell Barton
- the invert flag was only being used for multi-modifier, but there is no reason not to use this in normal cases as well. - Armature modifier RNA name 'vertex_group' was incorrectly named 'vertex_group_multi_modifier' (own fault), confusion was caused by 'invert_vertex_group_multi_modifier' which was correct.
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-31Bugfix for [#25416] Precision in glare node doesn't match display.Thomas Dinges
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-30revert part of Tons commit r33884.Campbell Barton
- rather then use unlink="None", just don't pass unlink as a keyword. This is more pythonic. - added an RNA flag for properties which cant be unlinked by setting to None.
2010-12-29Bugfix #25404Ton Roosendaal
Frame Mapping (map old, map new) didn't set the the framelen variable. Note that this feature is half-working, and on the to. Might be removed/replaced with something better.
2010-12-29Bugfix [#24163] Unable to animate INSIDE a group node in theJoshua Leung
compositor This commit fixes the original bug reported here by adding some methods to move the relevant F-Curves (and drivers) over to the new Node-Tree's (i.e. group-node) AnimData. Animated nodes which subsequently get grouped will still be able to animate as a result of this commit. TODO's: - Ungrouping now will not yet merge the animation back (or at least copy it) - Buttons for nodes freshly grouped do not correctly show animated status indicators for some reason, yet normal animation does
2010-12-28- Typo fixesJoshua Leung
- Visual Location Keying Set was still using the old-style flag defines
2010-12-27Fix for own commit 24156:Thomas Dinges
Normal Map bool and the normal_space menu are only used for material based textures, not for textures used by lamp/world etc. Accidentally ported this over from 2.49, where these buttons are drawn even they don't work in that context.
2010-12-24Bugfix #25367Ton Roosendaal
Several Softbody int variables were accidentally RNA-ified as float values. Didn't cause harm, but UI worked weird then, cutting off the precision.
2010-12-24presets for operators, re-using same preset system as render, cloth etc use.Campbell Barton
- operators need to enable the option OPTYPE_PRESET or 'PRESET' in python. - hidden properties are not written. - currently this only works in the file selector (enabled for FBX/OBJ export) - currently the menu label doesnt change when presets are selected, this is a TODO, not so simple since the UI is defined in C and the label in python. - presets save in "scripts/presets/operators/*id*/*.py"
2010-12-24is_hidden property for rna introspectionCampbell Barton
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.