Commit Graph

16327 Commits

Author SHA1 Message Date
Martin Poirier
91439e7604 === Custom Transform Orientation ===
Switch away from using selected list in editmesh, since it isn't always up to date.

This fixes the bug where CTO where not created correctly with box/lasso selecting elements and many others.
2008-02-03 18:24:13 +00:00
Martin Poirier
7ad378e0b3 Use proper projection for contrained scale snapping. 2008-02-03 17:08:54 +00:00
Joshua Leung
8bcd905439 2 Tweaks:
* Action Editor now doesn't draw channels which are out of view at all, which should help to provide (some minimal) improvements in some situations
* Typo in comment in constraints code
2008-02-03 07:43:00 +00:00
Ken Hughes
0a27a31970 Clean-up for various gcc warnings under linux. 2008-02-03 01:33:35 +00:00
Ken Hughes
87fbe307a1 Python API
----------
renderData.removeRenderLayer() was not returning a Python object; make it
return None;
2008-02-03 01:30:15 +00:00
Ken Hughes
ae2619407b Remove in-line variable declaration in color_balance_byte_float(), not ISO
C90 compliant.  Also fix warning about pointer parameter mismatch.
2008-02-03 01:28:23 +00:00
Ken Hughes
28401db37b Remove old debugging printf from node_make_addmenu(). 2008-02-03 00:55:39 +00:00
Nicholas Bishop
601488154d == Sculpt ==
Fixed crasher in my previous commit; wasn't checking for NULL pointer.
2008-02-03 00:51:25 +00:00
Martin Poirier
4069449918 == Transform Snap ==
Snapping for Resize
First draft, there might be some things to iron out.

Minor terminology fixes in CTO (custom transform orientation).
2008-02-03 00:42:00 +00:00
Tom Musgrove
07ccea0ac2 == Python API - Mesh ==
This patch by Domino Maram adds the function addMultiresLevel
2008-02-02 23:58:05 +00:00
Peter Schlaile
3a6a3d0389 == Sequencer ==
New feature: color balance aka 3-way-color-correction aka lift/gamma/gain 
on input (folded into byte -> float conversion, so _very_ fast in that case).
Interface is inspired from Rebel CC (but not as complete yet, you can't
choose white and black points right now).

Bugfix: clamp color seperated wave form display correctly.
2008-02-02 23:28:50 +00:00
Campbell Barton
eb9375fb56 Fix for indirectly linked libs being converted into direct linked libs. (tried to fix this before but didn't work).
fix_relpaths_library() needs to be called after loading libraries but not during recursive library load.
2008-02-02 11:19:34 +00:00
Nicholas Bishop
35ee34ea67 == Sculpt ==
Fix bug with layer brush + anchored.
2008-02-02 04:38:40 +00:00
Campbell Barton
fdab7b08f1 remoed testing line 2008-02-02 04:10:31 +00:00
Campbell Barton
655ca9d9ae makefile was not adding openexr, so py api never enabled setting openexr image type when using make. 2008-02-02 03:23:36 +00:00
Jens Ole Wund
d09fe9d228 users feature request
-- material memory
2008-02-01 23:20:29 +00:00
Nicholas Bishop
9d9ba57038 == Sculpt ==
Added a new brush option, "Anchored". When enabled, the brush doesn't move with the mouse, but rather stays in it's initial location and grows larger or smaller to follow the mouse. Good for brushing alphas on to the mesh. (Note that this option isn't available for the grab brush, and ignores the smooth stroke option.)
2008-02-01 19:45:11 +00:00
Brecht Van Lommel
3e98fb0f38 - For particle path visualization, set the default number of steps
lower to save memory.
2008-02-01 12:47:20 +00:00
Brecht Van Lommel
1879af7d5c - Small approximate AO optimization for falloff, saves some percentages
render time.
2008-02-01 12:18:45 +00:00
Brecht Van Lommel
baf7be9e46 Memory usage debugging: now with the -d debug option enabled, at the end
of rendering it prints memory usage for images and all memory blocks.
2008-02-01 12:14:15 +00:00
Joshua Leung
f971304158 Patch #8177: Timeline Performance Patch
Patch by: Adriano Macchietto (macchiea)

This patch optimises the way keyframes are drawn in the Timeline, so that it is more responsive when working with heaps of keyframes (i.e. motion-capture data).

Detailed Description of Patch (from author):
* No longer uses a list to store the keys before drawing. Uses
less memory.
* Culls the drawing of keyframes outside of the visible window.
Good for dealing with long mocap tracks.
* Performs a check to avoid redrawing a line over a line which
has already been drawn to the same pixels. This speeds up the
scenario when you have many keyframes and are zoomed out.
* Batches the draws into one glBegin/glEnd block.

This is all done on a per IpoCurve basis.
2008-02-01 10:23:40 +00:00
Nicholas Bishop
2aa1857020 == Sculpt ==
Added bilinear filtering to sculpt brushes when accessing textures.
2008-01-31 23:22:57 +00:00
Jens Ole Wund
2fc05a1f38 --bug fix (own collection)
face collision did overreact on dagger edges
2008-01-31 23:00:08 +00:00
Campbell Barton
c931ceeaf7 last commit worked in test case but not in real world :/ - revert and will look further into it. 2008-01-31 22:53:31 +00:00
Joshua Leung
240148f363 Action Editor Bugs/Regressions:
* Insert Key and Column Select should be working again
* Last channel in group's keyframes now appear in summary too
2008-01-31 22:47:03 +00:00
Campbell Barton
37f7826ee1 Fix for indirectly linked libraries.
When a.blend -> //../c.blend -> //d.blend
Blender would see d.blend as //d.blend which is wrong since that is relative to c.blend
This works, except when you make an indirectly linked group into a directly linked group. and then the incorrect path was saved into the blend file and the data not load up again (without copying it there or hex editing the path)

This loop makes all lib files relative to the blend you have open.
2008-01-31 21:19:40 +00:00
Nicholas Bishop
4eeb7bd183 == Sculpt ==
Switched point projection used in brush texturing to floating point rather than integer; fixes some ugly artifacts in texture application.
2008-01-31 18:32:33 +00:00
Ton Roosendaal
16ae726f8c More logging prints while preparing scenes in background render.
Uses a timer, so nothing gets printed more than once a second.
2008-01-31 18:03:46 +00:00
Brecht Van Lommel
30b0e926a2 - Bugfix in non-osa pass adding, for example AO got too high values.
Now made it work more like the osa case, easier to verify it works
  correct then.
2008-01-31 16:32:15 +00:00
Ton Roosendaal
90f8fb733b Fix: render could crash when you enable 'do composite' without having
nodes in scene.

Feature: SHIFT+R in compositor reloads all full sample buffers, composites
and merges with filter. (ALso in Node menu).
2008-01-31 15:35:24 +00:00
Peter Schlaile
134fdd6d5a == Sequencer ==
Updated image preview a lot:
* Added a histogram-scope
* Added optional title-safe margins
* Re-arranged header, so that only usefull buttons are shown in image
  preview mode
* Added zebra-mode for visual feedback of over-exposure regions
  (helps in before and especially after color correction :)
* Added color-seperation-mode for waveform-display
* Show 10%, 70% and 90% hints in waveform-display
2008-01-31 15:28:16 +00:00
Kent Mein
b7e6ef04f8 Added missing header for offsetof function.
Kent
2008-01-31 14:25:52 +00:00
Ton Roosendaal
e2ee9b57d3 Stupid error in commit of last weekend for zmasking:
You could not mask out anymore using the 'ctrl-click layer' without
having zmask on.
2008-01-31 14:14:03 +00:00
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