Commit Graph

47594 Commits

Author SHA1 Message Date
Daniel Genrich
2a3e93444a Replaced all *f geometric functions like sinf etc. with sin etc. (were used in 2 functions from the gnu scientific library) 2008-01-31 12:29:57 +00:00
Daniel Genrich
4a1ca6ded5 Fix: Compiling should work on SOLARIS again. 2008-01-31 12:13:58 +00:00
Joshua Leung
538d93eb86 Bugfix for Join Armatures:
When Join Armatures was called from the menu (Object -> Join Objects) problems were being cause by the use of BASEACT, causing some armatures to disappear and not be joined.
2008-01-31 10:43:21 +00:00
Joshua Leung
abec067761 == Bone Groups - Outliner Support ==
Bone groups are now drawn in the Outliner. The active group can be set from there, and groups can be renamed. 

(Hah... that was easy)
2008-01-31 09:59:05 +00:00
Joshua Leung
e8fbaaf071 Forgot to commit changes in header for previous Action Editor commit 2008-01-31 09:36:59 +00:00
Joshua Leung
da05a8d127 Action Editor Bugfix:
Constraint Channels now have editable keyframes again. In the process, I've tweaked the Action Editor filtering logic a bit, so some regressions with other tools may have been caused.
2008-01-31 06:21:33 +00:00
Joshua Leung
5f5d9ede88 Bugfix #8070: blender crash when assigning driver to bone constraint
When there were no keyframes for a constraint on a bone, trying to add a driver to the influence curve would fail, as a new curve would be added the some mysterious place. The cause was a missing case, as the code assumed that no user would try to add from IPO-Editor in such a way.
2008-01-31 01:49:15 +00:00
Daniel Genrich
cac8215cad Cloth bugfix: enable stiffness scaling again even if cloth is not pinned 2008-01-30 22:00:12 +00:00
Ton Roosendaal
70c413d4ad Fixes in reading back rendered temp files ("Save buffers" and "FSA" options).
Press Rkey in compositor for reading back render results and invoke a compo.
This now correctly reads AO (skipped it sometimes) and it makes a correct
composite.

FSA todo:
- hotkey + button for reading all samples back + composite
- solve black border around image
2008-01-30 21:14:36 +00:00
Ton Roosendaal
b18499fdf6 Speedup of filereading: when using large libraries (referenced data from
other blend files) lookups of data slowed down tremendously.
Added another bsearch for speedup. Makes a difference here (200+ MB files)!
2008-01-30 18:18:33 +00:00
Roland Hess
a12602e51f Small outliner enhancement: With items selected in the outliner, pressing the V, S or R key will toggle, respectively, the Visibility, Selectability or Renderability locks. Note that this functions independently of what is selected in the SCENE -- this is based on the RMB selection in the outliner. The options are also available from the RMB popup menu.
There are enough items in that popup now that this space should probably have its own header with a menu.
2008-01-30 17:58:13 +00:00
Peter Schlaile
7acb6ed10c == Sequencer ==
Show input geometry also on MOVIE and SCENE-strips.
2008-01-30 15:53:13 +00:00
Peter Schlaile
19e37e4a35 == Sequencer / Imbuf ==
Added a faster linear interpolation scaler to IMB_scaleImBuf.
Only handles common cases when we either

enlarge both, width and height or
shrink  both, width and height

but that is pretty fast:
* does only blit once instead of two passes like the old code
  (fewer cache misses)
* uses fixed point integer arithmetic for byte buffers
* doesn't branch in tight loops
  Should be comparable in speed to the ImBuf ..._fast functions at least 
  for byte-buffers.

For the rather seldom situations that e.g. width is enlarged and height 
is shrunken, the old code is still in use.

-------
Also small fix in sequencer: free float buffers on read now.
2008-01-30 15:41:02 +00:00
Brecht Van Lommel
6601cef1d0 Further fix for bug #8124: now depsgraph relation was added correct,
but depsgraph didn't get updated immediately yet.
2008-01-30 15:28:31 +00:00
Brecht Van Lommel
b9309909fb Bugfix for recent commit in strands, accidentally included code that
wasn't working yet, this should fix it.
2008-01-30 14:25:36 +00:00
Ton Roosendaal
2227c32b7f Two small fixes for FSA render:
- better warning for exr tiles not being equally sized (compositor scenes)
- better check for which exr temp files should be read during merging
2008-01-30 14:10:37 +00:00
Daniel Genrich
fd877543d1 New: Collision Modifier and Cloth can be at any position on the modifier stack. BUT everytime the vertices count change, they will free themselves and internal build new (they rely on vertex count). Should be no problem anymore with e.g. subsurf modifier before collision modifier (tested). Fix: applied a patch from schlaile to get my bullet additions compiled with gcc 3.3 2008-01-30 14:01:05 +00:00
Brecht Van Lommel
e67422e863 Fix for bug #8191: FSA + SSS didn't work. 2008-01-30 13:44:25 +00:00
Brecht Van Lommel
33656dfa83 - Bugfix for ztransp not being filled into the z-pass after FSA changes.
- Bugfix for speedvectors being not properly set for some strands.
2008-01-30 13:35:28 +00:00
Joshua Leung
bace7e5788 * Bone Groups - changed some of the options in the Ctrl-G menu so that it is more useful
* Tweaked one of the colours in the colour sets so that it is less similar to a colour in another set representing another state.
2008-01-30 11:09:18 +00:00
Joshua Leung
e0a625937b Bugfix for Action Editor Optimisations:
Horizontal keyframe filtering is now optional per editor (off by default). This option may be removed in future, but currently it's there so that users can use it at their own risk. Apparently this has been causing people grief.
2008-01-30 10:43:44 +00:00
Peter Schlaile
5714c84c54 == Sequencer ==
Fix blend opacity of old files, so that strips do not silently disappear.
2008-01-30 10:27:16 +00:00
Joshua Leung
86cbb9f7cb PyConstraint Bugfix:
Uncommented armature weakrefs stuff for PyConstraints. This should fix some erratic error messages a user found with these a few months ago.
2008-01-30 09:29:40 +00:00
Joshua Leung
856b40af56 Made the line between the start and end of IK-chains for bones display regardless of whether 'Relationship Lines' has been enabled for the view, if the IK-chain was temporarily added for Auto-IK. This is so that it is possible to see the length of Auto-IK chains. 2008-01-30 08:31:07 +00:00
Joshua Leung
7d1bc94cad == Custom Bone Shape Drawing - 'Wireframe' Option ==
In production rigs, such as those for Peach and Plumiferos, custom bone shapes are often simple wireframe shapes (formed with a single line). These are only visible when the armature's drawtype is Wire, which means that this drawtype must be used for the display of those bones. On the other hand, 'normal' bones must also be drawn as wireframes.

I've added a small toggle beside the field for the name of the object to use. This is marked 'W' (this is not great, but it'll have to do for now). 
When activated, that bone's custom bone shape will always draw as a wireframe. As a result, the armature's drawtype doesn't have to be set to 'Wire' to see these bones.
2008-01-30 08:10:47 +00:00
Joshua Leung
e7f814b1a3 Added a few more bone colour sets 2008-01-30 05:38:55 +00:00
Nicholas Bishop
1dd0d17cf4 == Sculpt ==
Replace a 'magic number' used in several places with a proper constant
2008-01-30 03:40:28 +00:00
Daniel Genrich
4ed28a99a7 Cloth: Bugfix: 1. Kicking esc again, 2. Collision modifier needed to be updated when going backward in time, 3. GUI change when no bullet there 2008-01-30 02:05:37 +00:00
Daniel Genrich
7a7a52226f makes bullet independant from gameengine for cmake, introduces esc-key during sim, disables collisions when no bullet there 2008-01-29 23:13:31 +00:00
Joshua Leung
2e697f3b93 == Custom Bone Colours - Default Sets ==
Added 12 default color-sets for custom bone colours. There's a temporary button in the theme-buttons for generating the code for these, which should probably be removed once this is done. More colours to come soon...
2008-01-29 22:51:23 +00:00
Daniel Genrich
77685023ca Initial commit of cloth modifier from branch rev 13453 2008-01-29 21:01:12 +00:00
Brecht Van Lommel
3a3fe8a480 Bug #8178: in particle edit mode, select linked under the mouse should
only work with L-key, not ctrl+L, makes it seems as if ctrl+L type
selected linked is not working correct, while it is just not implemented.
2008-01-29 20:53:19 +00:00
Brecht Van Lommel
3d3023126a Fix for bug #7965:
Array modifier could generate edges with twice the same vertex, fix
provided by Ken, thanks.
2008-01-29 19:49:03 +00:00
Brecht Van Lommel
e75067e7af Fix for bug #8029: heat weighting clamps values below a threshold,
which could give discontinuities, now it does a blend instead.
2008-01-29 19:19:21 +00:00
Brecht Van Lommel
31ecc5cba0 Fix for bug #8124: dupli particles were not rendering in some cases,
now added dependencies so they are passed to the render engine in
the right order to detect the duplis.
2008-01-29 18:29:14 +00:00
Daniel Genrich
2f4ca518ea svn merge -r 13415:13452 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2008-01-29 16:42:57 +00:00
Daniel Genrich
5da7f4df47 -= Cloth cleanup =-
Fixes:
- Cloth event refactor to solve 2 unknown cache bugs
- Cloth vgroup refactor (faster + scalable stinnes now working)
- Cloth + Collision modifier on one object crash
- Editmode + faceextrude on baked cloth crash
- Stiffness groups would get pinned
- Correct scaled stiffness calculation
- Fixes freeing error under some circumstances
- Deactivating reset/cache freeing when in editmode
- Autobaking setting doesn't get screwed up anymore
- More than 1 collision object in a scene could explode
- Pinning + not protected cache didn't reset cloth
- Start simulation on first frame and not on 2nd
- Maximum structstiff now correct (copy-paste error)
- Loading file with baked cloth calculate the spring length correctly 
- Loading file behaviour improved with cache
- Collision object is evaluated first (untested)
- Debug output activated with rt>0

Be carefull: Files with some cloth cache or something should be 
regenerated.
2008-01-29 16:32:42 +00:00
Peter Schlaile
fd9db17021 == Sequencer ==
This fixes several crashes with the new tstripdata_start/endstill.
dupli_seq was cleaned up as well as add_scene_strip (moved to a 
seperate function)

New features: 
* opacity can be used in replace blend mode
* the scene within in a scene track can be changed now within the panel

Also:
* [#7842] Note: setCodec in FormatTab disappeared...
  should be fixed by this. (Not a big change, so I just commit and see :)
  http://peter.schlaile.de/blender/sequencer/codec_buttons.diff
2008-01-29 12:26:42 +00:00
Brecht Van Lommel
8e94028ed5 Bounding box clipping in the render engine.
Now bounding boxes are computed per object, and checked first before
zbuffering objects. For strands, bounding boxes are computed per
original face in the mesh. Overall the speed improvement from this 
is quite small (zbuffering is rarely the bottleneck), but it seems a
sensible thing to do anyway.
2008-01-29 12:20:42 +00:00
Joshua Leung
5bf5b030e5 == PoseLib - Tab Key in Pose-Preview ==
Now when previewing poses with Ctrl-L, pressing the Tab key toggles whether the 'original' (i.e. the pose before previewing started) pose gets shown temporarily. This allows the user to quickly compare the pose being previewed to the 'original'. No pose browsing is possible while the original pose is shown.
2008-01-29 09:51:29 +00:00
Brecht Van Lommel
31a1590db0 Bugfix: quaternion angle calculation in python used the acos function.
This gives nan if the input is e.g. 1.00000001 due to rounding errors,
better is to use saacos (safe acos) that checks for the range first.
2008-01-29 09:44:26 +00:00
Joshua Leung
24aa536f54 Bugfix for Action Editor keys clipping:
Keyframes in the NLA Editor could mysteriously disappear sometimes when manipulating the view in the NLA-editor, when an Action Editor was open beside it.
2008-01-29 08:57:41 +00:00
Martin Poirier
14d1c736b8 === Mirror Tool ===
Fix calls to new mirror in UV window (it would segfault with invalid arguments).

Reported by Matt in the tracker (#8176)
2008-01-29 02:38:26 +00:00
Daniel Genrich
9c1fa1ff4d WIP commit, many debug outputs, extensive log comes after bug is killed 2008-01-29 02:24:37 +00:00
Joshua Leung
8072d88c75 Added menu entries to 3d-view for the auto-bone-extension tools I added yesterday. 2008-01-29 00:12:34 +00:00
Brecht Van Lommel
c68f48d964 - Fix for adding rendering passes. It seems the result was multiplied
by alpha twice, which gave dark edges on an grass AO pass for example.
2008-01-28 22:43:16 +00:00
Brecht Van Lommel
db9f702db9 - Fix for approximate AO pixel cache crash.
- Fix in FSA pass sample adding (more fixes to come).
2008-01-28 22:34:14 +00:00
Brecht Van Lommel
9b0c2efeed Handle OpenEXR exception and print it, for writeTile. It's sometimes
crashing there now with FSA, if it crashes again this should give
more info.
2008-01-28 21:28:32 +00:00
Peter Schlaile
87eaa637c5 == Sequencer ==
Fixed two issues with the sequencer:
* using blend modes with startstill / endstill in combination with IPOs
  failed, since there was no room to store the composited result. 
  (It was stored into the same TStripElem thereby effectively disabling the
  effect of the IPO)
  If you have no idea, what this is all about:
  A common case was: use a single PNG as a title, extrude and try to fade 
  in / out using IPOs. 
* startstill / endstill are always displayed, so that one can change them
  also on movie-strips and scene-strips.
2008-01-28 21:24:08 +00:00
Campbell Barton
d4411e6769 object in dupli instances were not getting modifiers applied with render settings 2008-01-28 20:45:28 +00:00