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-13bugfix [#25588] Not work fcurve.keyframe_points.addCampbell Barton
The problem was flag-enums were being treated as regular enums, a default value of 0 was using the first enum item, whereas with flag enums we want to be able to use 0 as a default value to specify all flags are off.
2011-01-13fix for NULL missing pointer check, reported on IRC by admix.Campbell Barton
also rename BVH class for consistency.
2011-01-13remove/comment unused varsCampbell Barton
also removed unnecessary NULL checks (where the pointer was used later without checking).
2011-01-12fix [#25590] Export to X3D of Text object does not assign material to object ↵Campbell Barton
in X3D file.
2011-01-12modification to Joshua's commit r34270,Campbell Barton
replace NlaTrack.active() function with a property, since this is used everywhere else.
2011-01-12comment array/collection skip(), since there was some confusion in this area ↵Campbell Barton
which caused bugs on index lookups.
2011-01-12Patch [#24808] B-Bone display sizeJoshua Leung
Submitted by Dan Eicher (dna) Adds the ability to resize b-bones (ctrl+alt+S) using the python api Bone.bbone_x Bone.bbone_z
2011-01-12Patch [#24763] NLA Track & Strip methodsJoshua Leung
Submitted by: Dan Eicher (dna) <quote> Adds: AnimData.nla_tracks.new(prev) * (optional) prev -- add new track after this track AnimData.nla_tracks.remove(track) AnimData.nla_tracks.active(track) * (optional) track -- track to set active * returns active track NlaTrack.strips.new(name, start, action) NOTE: fails if the strip can't fit in the track as opposed to the operator which will create a new track and add the strip to that. * name -- name for new strip * start -- start frame of new strip * action -- action to assign to strip NlaTrack.strips.remove(strip) </quote> --- I've resolved the issue (noted in the original patch) regarding the validation of the created strip by creating and using a "dummy AnimData" block to solve the missing dependencies.
2011-01-12"Pointer" properties can now be reset to some kind of "default" valueJoshua Leung
when using the Numpad0 feature to reset properties to their default values. While this implementation here is not a full/proper implementation, as you cannot truly specify a default value for some pointers that may require something other than NULL (i.e. nothing), this should be good enough for the vast majority of (editable) cases which are fine if set to NULL. This is most noticeable with the Active Keying Set field in the TimeLine header, where it's now possible to simply use Numpad0 to clear it instead of using a confusing click+backspace+enter dance to do the same thing.
2011-01-11bugfix - collection index lookups was not working correctly when some items ↵Campbell Barton
were skipped.
2011-01-11revert own recent fix for collection length, this is incorrect, the bug ↵Campbell Barton
needs to be fixed elsewhere.
2011-01-11remove misc unused vars and correct theme name for face angles.Campbell Barton
2011-01-11change rna function action.fcurves.add() so options an enum flag rather then ↵Campbell Barton
booleans. (rna flags were not available when this was originally written) action.fcurves.add(frame, val, 1,1,1) --> .add(frame, val, {'REPLACE', 'NEEDED', 'FAST'})
2011-01-11- bpy.data.lamps.new() now takes a type argument since lamp type also sets ↵Campbell Barton
class type this avoids needing to use ugly lamp.type_recast() after changing type. - default vertex color layer name was UTTex when added from python.
2011-01-11Todo #22395: Restoring Grease Pencil Editing Mode in DopeSheet EditorJoshua Leung
This commit restores some basic functionality for retiming Grease Pencil sketches. Some of the functionality that existed before still hasn't been restored (namely snap/mirror tools as well as copy+paste), though it should be possible to use this for basic retiming and sketch-frame management again. - There's still a lot of work required to get this up to the standard of the rest of the animation editor code, as some of this code was originally just hacked in based on the old-style code. - Work is already required to not have to directly access the main db global to get the list of Grease Pencil datablocks to show, but that can come along with pending cleanups of the filtering code.
2011-01-10rna collection sizes for face data layers were invalid.Campbell Barton
This meant python could do... mesh.uv_textures[0] ...on a mesh with 1 vertex color layer instead.
2011-01-10comment/remove various unused vars,Campbell Barton
also make rna function for new images require width and hight args.
2011-01-10comment dead code from RNA_pointer_create(), was finding the id pointer type ↵Campbell Barton
when 'id' was set, but not using it. also comment a few unused vars.
2011-01-10Restoring "Pose Markers"Joshua Leung
These were markers which belonged to an action instead of the scene, and are used by PoseLib to keep track of where poses are. To restore this, I've made this only available in Action/Shapekey Editor modes, and only when an action is being shown and the "Show Pose Markers" option in the Markers menu has been enabled. Other than that, all the standard marker operators apply now (instead of using a separate set of special operators).
2011-01-09Viscoelastic springs for sph particle fluids, original patch by Stephen ↵Janne Karhu
Whitehorn (chickencoop) * Viscoelastic springs between the fluid particles can simulate all kinds of viscous and elastic substances, such as jelly and honey. This is achieved by creating springs dynamically between neighboring particles and adjusting their rest length based on stretching/compression. * This nearly completes the currently intended functionality for particle fluids. The last missing thing is a surfacing extraction algorithm, which is needed for a proper representation of a sph fluid. * I also cleaned up and renamed some of the fluid parameters to make the ui a bit easier to understand. * One addition to the patch is an option to use "initial rest length" for the springs, which uses the lengths between the particles at the time of spring creation as the spring rest lengths instead of interaction radius/2. This makes the fluid keep it's original shape better (good for very viscoelastic materials), but can create large density differences inside the fluid (not really physically correct for a fluid). * Viscoelastic springs are stored in point cache as extra data.
2011-01-09rename BKE_assert() --> BLI_assert().Campbell Barton
2011-01-09Fix typo in particle rnaMatt Ebb
2011-01-09remove unused vars, comment some which look like they could be useful still. ↵Campbell Barton
have makesrna.c omit unused _data definitions for rna funcs with no args.
2011-01-08Proportional editing:Ton Roosendaal
- Proportional circle size is printed in header Allows you to find out if you make it smaller when it's large - Proportional size is clipped with view3d clip-end now - Added the size to rna, so you can inspect values via UI and py.
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