Commit Graph

9488 Commits

Author SHA1 Message Date
Brecht Van Lommel
94f8db96d9 Bugfix: shaded mode or baking could crash, didn't always create
memarena but it's being used now in more places so needs to be
created always.
2008-03-05 17:19:57 +00:00
Brecht Van Lommel
8b5933af4e Bugfix: crash inserting keyframes with missing pose channel. Also
changed some memcpy calls to memmove since memcpy doesn't allow
the buffers to overlap, but it's probably harmless.
2008-03-05 17:12:09 +00:00
Brecht Van Lommel
4f764637e6 Undo optimization: now big chunks of memory are not written as single
memory blocks anymore, but smaller fixed size blocks, so that diffing
can be more effective. For example helps in sculpt mode when making
only local changes to the mesh, previously it would copy the whole
MVert array for each undo step.
2008-03-05 15:13:41 +00:00
Ton Roosendaal
f975d29704 Restored code from over a year ago, tests to allow anti-aliased
shadowbuffers. At the time the results were not satisfying enough,
but we now suffer a shadow problem that might well be solved with
this feature.

Problem:
Temporal aliasing of shadowbuffers when small details move (like strands).

In this case it doesn't work to simply increase the shadowbuffer size,
because strands are pixel-sized. Huge shadowbuffers make strand shadows
almost disappear. So... the shadowbuffer resolution has to be not too high.

Instead of increasing the buffer size, we then create multiple buffers,
each on different subpixel positions (a bit like "FSA" :).

So! Shadowbuffer sampling then works as follows;

1) You take multiple samples in the shadowbuffer, on different locations
   inside (or around) the rendered pixel. 
   That option was aready available as "Samp" button in Lamps

2) Set amount of sample buffers. It is default 1, but can be 4 or 9.

The results of setting it to '4' or '9' buffers you can see here:
http://www.blender.org/bf/filters/index3.html

Actually, deep shadowbuffers could solve it probably too! Anyhoo...
2008-03-05 10:03:31 +00:00
Joshua Leung
522dcf5b04 Enabled auto-snap (frame) for all newly created Action Editor instances 2008-03-05 06:11:00 +00:00
Joshua Leung
db85f0f39a * Patch by Leandro Inocencio (cesio) to redraw Action Editor after hiding/unhiding bones
* Fixes for compiler warnings
2008-03-05 03:59:44 +00:00
Ricki Myers
f588900909 Fixed warning in drawtext.c 2008-03-05 03:04:55 +00:00
Brecht Van Lommel
4ba2162e63 Bugfix: the shadow samplenr increment to reuse shadow results in
the renderer could lead to results being reused for unrelated
points, result was one wrong pixel or strand per part. Now instead
of setting the sample counter to 0 multiple times, it keeps a global
counter per thread for the whole render.
2008-03-04 19:58:22 +00:00
Ricki Myers
8b5a5b71d5 Fix bug where if you selected something then left clicked you would lose the selection buffer.
now when you left click it checks to see if there is text selected
2008-03-04 18:50:02 +00:00
Brecht Van Lommel
fe3e521e44 Bugfix: auto IK + autokeyframe didn't work correct with the don't
inherit scale option yet, scale of the bone would slowly change.
Now it's still not 100% accurate, but that's unavoidable, at least
the effect is much reduced.
2008-03-04 13:33:19 +00:00
Joshua Leung
b2e6520d6e Action Editor - malefico feature request:
Show Selected Action-Channels hidden in groups. Use the hotkey Shift ~  to do so. The name of this feature needs reviewing...
2008-03-04 11:29:32 +00:00
Ricki Myers
ffcbff62dd Added Copy and Paste functions to GHOST.
- Moved WIN32 code to ghost and added code for other systems.
- Added functions getClipboard(flag), and putClipboard(buffer, flag)
    -Flag is used on X11 to request selection buffer or clipboard.
    -If any other system uses flag = 1 the function returns doing nothing.
- Changed ctrl +c/v and shift+ctrl + c/v to do the same thing (use the clipboard).
- Changed the menu items (copy, paste) to use the clipboard.
2008-03-04 00:41:30 +00:00
Campbell Barton
c7d0a2a92a PyAPI: create scene sequence data if its not there when getting scene.sequence 2008-03-03 21:43:31 +00:00
Martin Poirier
1e5f4144b9 [#8434] Normal manipultor does not align with normals (like in 2.45)
Bring back multivert normal average for the normal manipulator/orientation.

When selecting more than three vertice, the averaged normal of all selected is used to get orientation Z-axis.

NOTE: This is only applicable when NO faces are selected, otherwise it uses the averaged normal of the faces (excluding vertice that aren't part of a face). This is not new behavior

CHANGES FROM 2.45: Selecting 2 or 3 vertice doesn't use normal averaging but uses virtual edge and face orientations instead.
2008-03-03 19:57:48 +00:00
Daniel Genrich
156d246462 Cloth bugfix for linked deflector groups (reported by alchibal on #blendercoders incl. source) - please verify 2008-03-03 19:02:01 +00:00
Brecht Van Lommel
b26a767923 Bugfix: displacement with object texture mapping could crash. 2008-03-03 18:53:06 +00:00
Brecht Van Lommel
27c9fb7c6b Fix for bug #8410: dupliframes didn't render. 2008-03-03 17:16:29 +00:00
Brecht Van Lommel
13f70b8077 Fix for bug #8366, render color sampling bugs and inconsistencies:
- renderwindow didn't show values of previous buffer correct.
- renderwindow only showed floats and no char values like image editor.
- renderwindow didn't show x,y values.
- image editor didn't show z values.

Patch to fix these problems provided by Rob Hausauer, thanks!
2008-03-03 16:38:27 +00:00
Brecht Van Lommel
3aeaccb0d8 Bugfix: crash loading texture plugin, instance_init callback added some
time ago wasn't initialized to NULL correctly, in case the plugin was
not available.
2008-03-03 15:56:05 +00:00
Brecht Van Lommel
3f0cb42682 Fix for bug #8412: clicking to active tabbed panels could still
go wrong with tabbed panels being hidden.
2008-03-03 14:19:58 +00:00
Joshua Leung
6b677bcfab Action Editor - Group Selection (Harkyman Suggestion):
Now, when selecting Action Channel Groups while holding the Ctrl-Shift keys, all of the group's channels are selected. Any other channels/groups are deselected. Likewise, the related bones will also get selected.
2008-03-03 11:03:18 +00:00
Joshua Leung
e96c1aa507 Bugfix:
Constraint Channel keyframes are now transformed when they appear in Action Channel Group summaries.
2008-03-03 10:43:46 +00:00
Brecht Van Lommel
81b9036fbf Bugfix: uv pack islands didn't work on islands without a boundary. 2008-03-03 10:01:36 +00:00
Joshua Leung
7af9e824bf * Bugfix #8426: certain hooks options segfaulted
This was caused by my previous commit for add_hook.

* Also, removed a compiler warning in the Python code
2008-03-03 03:21:25 +00:00
Campbell Barton
5b54b519c0 Added a feature to the UV editor- Average UV islands, this averages selected UV islands, in proportion to the faces area in 3d space.
Renamed 'Pack Charts' to 'Pack Islands' (according to google, uv islands is a more common term)
2008-03-03 01:44:35 +00:00
Daniel Genrich
8dbd6e2b03 Cloth bugfix - stupid typo resulted in missing diagonal springs (reported by nudelZ on #blendercoders) 2008-03-02 23:20:20 +00:00
Daniel Genrich
373f142530 Cloth: Bugfix for IRIX compile (hopefully), bugfix for multiple springs (appeared on triangles), _test_ for inlining on msvc 2008-03-02 22:01:43 +00:00
Campbell Barton
62584d78eb Py API - rename UndoPush to SaveUndoState 2008-03-02 15:57:19 +00:00
Peter Schlaile
4165ae42cc == Sequencer ==
Fixed a bug with ibuf caching on startstill / endstill.

The new blend modes happened to force start and endstill to be rendered
over and over again. This could get very annoying especially on scene
strips.

We therefore now cache the original start or endstill ibuf seperately
and copy on demand.
2008-03-02 14:54:45 +00:00
Nathan Letwory
3ee29c00ed * temproary -> temporary topy fxi 2008-03-02 08:49:39 +00:00
Joshua Leung
ed1affb2ca Bugfix:
Disabled fully OpenGl-based drawing of keyframes in the Action Editor. This was apparently causing problems on some Intel cards...
2008-03-02 01:17:17 +00:00
Campbell Barton
2b7e99da69 made it possible to type in ~ at the start of the filename, ~/Desktop for instance.
Enabled for win32 and in the image browser.
2008-03-02 00:26:13 +00:00
Geoffrey Bantle
5aed02aafe -> Bevel modifier cleanup
Bevel modifier had several problems. These should be fixed now. The bevel
modifier in editmode cannot have 'apply to cage' checked as the modifier
cannot possibly support mapping. Further, custom data preservation has been
turned off temporarily, but will be added back in soon.
2008-03-01 16:32:23 +00:00
Ton Roosendaal
ea05fef650 Bugfix:
New option "move texture channel up/down" lacked redraw calls.

Featurette:
There's still no manipulator handles for lamps to set cone size, dist, 
clipping. To save our poor Peach artists hours of work I've added a
quick method to at least be able to do it interactive.
Option is hidden behind Wkey, and uses a similar function like Scaling.
(Put mouse cursor close to start value, move mouse to center of lamp)

Ultimately this should move to custom manipulator handles...
2008-03-01 14:54:18 +00:00
Campbell Barton
d560b17088 fix for [#8408] Indentation error in text editor when typing a colon anywhere 2008-03-01 12:31:00 +00:00
Campbell Barton
d1af95f4bb Fix for bug [#8405] makeParentDeform segfaults Blender
linking armatures to objects didnt make pose data.
2008-03-01 10:59:38 +00:00
Joshua Leung
08f9a98bf9 'Bug'-fix #8404:
Action Editor now displays shapekey channels for curves/surfaces too now. This commit may be reverted if there are some corner cases which work really bad with this.
2008-03-01 04:03:06 +00:00
Tom Musgrove
f8f6a049bd This commit contains the addition of a greek translation thanks to
Κωστής Καρβουνιάρης
Kostas Gerontis

Also a patch from Markus Schulz that 

adds buttons to the material, light, and world texture panels to make it 
easy to rearrange the textures in the list without having to 
use copy and paste.
2008-03-01 03:56:16 +00:00
Joshua Leung
416f918fb8 Split the add_hook function into two parts (user interaction + actual operations) 2008-03-01 03:45:04 +00:00
Joshua Leung
a30b582300 Removed warning from py-api code 2008-03-01 03:42:09 +00:00
Campbell Barton
a577bb9fc8 Wrap UndoPush with python, needed for apricot, so changes made be scripts can have undo's as well, otherwise users undo and loose changes the script made. 2008-02-29 20:45:57 +00:00
Geoffrey Bantle
9d05090a86 -> Bevel cleanup
Bevel and bmesh code is in need of some cleanup and fixing.

-Fixed potential crasher in BME_JEKV
-Sped up memory usage of BME_MF
-Removed unused structure members


More to come soon....
2008-02-29 20:26:35 +00:00
Diego Borghetti
0b1ed4c0cd Fix segmentation fault in Image node when change the Layer in EXR files.
The argument in the uiButSetFunc is a Image struct, but
BKE_image_multilayer_index expect a RenderResult struct, so when
you load a exr file and try change the Layer, Blender crash.
(image_layer_cb call BKE_image_multilayer_index)
2008-02-29 19:19:31 +00:00
Brecht Van Lommel
cffb9551db Fix for bug #8403: a radiosity render crash. 2008-02-29 16:52:46 +00:00
Campbell Barton
96247ce19c * Made BLI_join_dirfile() check before adding a slash between dir and file so as not to get /foo///bar.blend
* Pointcache now uses the process id to construct the path for unsaved files. (so 2 or more blender's open wont try to read/write the same pointcache)
* Temp pointcache is cleared when existing blender, added BIF_clear_tempfiles() for this. Should also be usedto clear EXR's in the temp dir (TODO), BIF_clear_tempfiles also needs to be added in more places. (On file load for instace)
2008-02-29 15:50:28 +00:00
Diego Borghetti
95b0176fde Fix segfault when save the render with Multilayer format.
The RE_WriteResult function don't call BLI_make_existing_file
like BKE_write_ibuf, so if you append a directory to the output
path and it don't exist, the exr_begin_write fail to create
the file and blender crash.

Note that this is only 1 line of code and don't touch
anything in the render code.
2008-02-29 15:36:24 +00:00
Brecht Van Lommel
781d13c6d7 Fix for bug rendering scene layers from the compositor and scene sets,
two functions were both using the same LIB_DOIT flag, gave conflicts.
2008-02-29 13:29:15 +00:00
Brecht Van Lommel
8baec10d75 Bugfix: DPX menu entry for saving renders was missing, caused by
DDS saving not being uncommented consistently.
2008-02-29 12:23:26 +00:00
Campbell Barton
e7d58a3a50 Didnt set the image output node active before browsing the files. 2008-02-29 10:13:34 +00:00
Janne Karhu
8f3b48457a Particle weights weren't drawn properly in particle mode. There also was some lag in updating the colors when changing particle edit brushes. 2008-02-29 08:31:11 +00:00