Commit Graph

10065 Commits

Author SHA1 Message Date
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
Campbell Barton
5665d9333e * Fix for own big, Adding group objects from the outliner didnt check they were externally linked.
* ping "~" in the fileselectors dir will take you to $HOME (non win32)
* Added a file selector for Node output image
2008-02-28 23:14:55 +00:00
Daniel Genrich
6169b29b3a Cloth: Bugfix for wrong calculated bending springs, Bugfix for selfcollisions (faster + bugfix for explode), Changed: Collision response also put vertices back to surface now 2008-02-28 23:12:50 +00:00
Daniel Genrich
8c5a22daec Possible bugfix for weird FFMPEG files, I have no idea if that cases can even occur - Please take a look Peter. 2008-02-28 21:57:24 +00:00
Campbell Barton
a2ce30a908 changing default SDL audio driver for linux to alsa since its default in 2.6 kernel's and many users report problems if they dont specifically set it to alsa. 2008-02-28 21:27:48 +00:00
Diego Borghetti
274543627a Fix segfault with bad setting in the Image node.
The limit in the UI tooltips to set the amount of
images used in animation allow the zero value,
that cause a segfault.

This commit fix the UI, add a init value of 1 to
the node and also check in case that
node_composit_get_image return NULL.
2008-02-28 20:26:00 +00:00
Daniel Genrich
5f3e8c3fb6 Cloth: Bugfix for goals, rotations could let them go wrong (reported by nudelZ, #blendercoders) 2008-02-28 18:57:14 +00:00
Brecht Van Lommel
34fbc56c1c Fix for bug #8357: metaball rendering + radiosity was broken. 2008-02-28 18:54:25 +00:00
Brecht Van Lommel
6f78c1371d Bugfix: compositor Blur node Bokeh option gave wrong results at the
bottom pixels of the image.
2008-02-28 15:23:44 +00:00
Brecht Van Lommel
6af5a98c7e Bugfix: jitterd particle distribution was really slow for a large
number of particles/face. Now for > 25 particles/face it switches
to using a QMC hammersley distribution, much faster, for less
jitter still looks a bit better.
2008-02-28 13:31:25 +00:00
Brecht Van Lommel
97517528d4 Bugfix: texture effectors didn't link in their textures. 2008-02-28 11:39:13 +00:00
Joshua Leung
c8d281e8ed Bugfix:
Outliner drawing crashed after "Merge Bones" operation (Alt-M) if the end-bone of the merge had a child.
2008-02-28 02:25:23 +00:00
Daniel Genrich
905a2d374a Cloth: 1. Bugfix for possible memory leak reported by Kenneth Styrberg (via mailing list), 2. Bugfix for friction again, 3. Preset menu on GUI (thanks to help from nudelZ (#blendercoders), 4. Possibility to disable autoprotect cache, 5. Some cache bugs fixed, 6. Some speedup in generating cloth 2008-02-28 00:01:19 +00:00
Daniel Genrich
08d15d6cb9 Bugfix: NewBooleanMesh() would return 'internal error' no matter what happened - real return values must have been lost on the way. I put the proper return in it's place. (reported by cptf on IRC) 2008-02-27 20:17:03 +00:00
Brecht Van Lommel
7a83e67a46 Fix for bug #8373: using SSS the rendertime could be reported wrong. 2008-02-27 20:10:05 +00:00
Brecht Van Lommel
35f094f209 Fix for bug #8380: snapping in the uv editor didn't work with
non-square images.

Fix for uv limit stitch, was broken since editmode integration.
2008-02-27 19:35:27 +00:00
Brecht Van Lommel
780ea713d5 Fix for making vectoquat threadsafe, missed a warning. 2008-02-27 17:43:23 +00:00
Brecht Van Lommel
fc9a664227 Bugfix: Copy Modifiers with particle systems crashed, it didn't copy
the particle systems.
2008-02-27 17:04:58 +00:00
Brecht Van Lommel
9620bccf5b Fix for part of bug #8376: shift+MMB dragging the view didn't work in
the node editor like other windows. Is already used for backdrop, but
if that isn't enabled it can still do it.
2008-02-27 14:26:47 +00:00
Brecht Van Lommel
cbf278246f Fix for bug: cross platform strand render differences with kink/branch.
This time is was due to different accuracy of floating point computation,
now it uses does a comparison a bit different to avoid this.

Also changed the vectoquat function to be threadsafe.
2008-02-27 14:17:32 +00:00
Campbell Barton
39b5d41fa6 added missing call to reset teh toolbox - Only effected Python treemenu's 2008-02-27 14:15:14 +00:00
Brecht Van Lommel
8da0b6937d Fix for dupli rendering bug, with a duplicating particle system using
groups that were not in the scene. Also commented the code better.
2008-02-27 11:50:20 +00:00
Jean-Luc Peurière
bdaef809d3 adding stubs for player 2008-02-27 11:47:07 +00:00
Campbell Barton
086e8b9b8f Bugfix [#8328] Python scripts from user defined location doesn't load
http://projects.blender.org/tracker/index.php?func=detail&aid=8328&group_id=9&atid=125

last commit had mistakes but tested this to fix the bug.
- Cam
2008-02-27 10:02:40 +00:00
Campbell Barton
b226eb925b should fix bug on win32 with user python menu's not loading because stat() didnt like the trailing slash and returned the dir as missing. 2008-02-27 09:48:43 +00:00
Daniel Genrich
7d310f4e5c Cloth: fixed completely useless/wrong friction force; changed some initial settings 2008-02-27 03:23:17 +00:00
Brecht Van Lommel
21299f2325 Going into vertex paint mode without vertex colors, now it doesn't
create vertex colors from shaded mode anymore. Instead there is
function in vertex paint mode to create them.

Also some fixes for previous commits.
2008-02-26 18:30:41 +00:00
Brecht Van Lommel
a88627d56e Weight, vertex and texture paint modes now don't draw the active
object on top of everything anymore. It can be useful to see objects
that are in front too, and if you don't want to see them you can
just go into local viewmode. It's also more consistent with editmode
which doesn't draw on top either.
2008-02-26 17:46:22 +00:00
Willian Padovani Germano
2089ac3091 == BPython ==
Another experiment to support threading properly. By default the Python Interpreter releases its lock every 100 instructions so that other threads get a chance to run Python code and API calls. But that is not enough to prevent race conditions causing artifacts (and maybe crashes) during threaded rendering, since all threads will access the same pynodes data.

So I'm disabling this automatic releasing of the lock (the GIL) by the interpreter, which seems to be a better option for how Blender uses Python.
2008-02-26 17:23:56 +00:00
Brecht Van Lommel
995262728f Fix for bug #6854: meta object crash with preview render. Meta objects
were using an ugly trick to store render orco's, but there's really no
reason for it, now it works like other primitives.
2008-02-26 16:20:36 +00:00
Daniel Genrich
f9fb9965aa Cloth: make cloth more crash resistant if memory allocation failed 2008-02-26 14:25:29 +00:00
Daniel Genrich
c65f98890e Bugfix [#8365] cresh by RMB selecting object in 3D_View from set of overlapping objects 2008-02-26 14:00:13 +00:00
Brecht Van Lommel
2719e8ca33 Tweak bugfix #8347 a bit, the self intersection problem with raytraced
shadows and jittering.
2008-02-26 13:05:18 +00:00
Brecht Van Lommel
5380bd48d7 Hair particles with object or group visualisation didn't take the
rotation settings into account. Now if rotation is not set to None,
instead of automatically deriving it from the particle path (which
is useful for feathers), it uses the rotation settings (useful for
distributing twigs randomly).
2008-02-26 11:48:12 +00:00
Brecht Van Lommel
931ac1cebd Bugfix: recent rollback of premul changes gave issues. The premul
flag bit was changed and not changed back, and the flag was moved
back from image user to image. This meant that files saved both
before and during the premul changes did not read premul settings
correct anymore.

Now it uses the old premul flag bit again, which also keeps forward
compatibility.
2008-02-26 11:38:32 +00:00
Daniel Genrich
e9ce2a9f3f Cloth: Little (bug)fix to let springs appear as an upper tridiagonal matrix 2008-02-26 09:55:07 +00:00
Joshua Leung
e368af29f0 Popup menus for displaying names of groups available for selection now draw with multiple columns when the number of entries cannot fit in a single column (and be editable). 2008-02-26 06:33:06 +00:00
Campbell Barton
3dd622b2b4 Added PyGILState_Ensure and PyGILState_Release funcs around module reloading.
Without them blender would crash when reloading scripts.
2008-02-25 18:35:35 +00:00
Brecht Van Lommel
6f1b9eb9ac Bugfix: dupliparticles didn't respect the enabled button for the
particle system, could crash.
2008-02-25 17:20:35 +00:00
Brecht Van Lommel
d058a525db Bugfix for some particle system vertex group memory leaks. 2008-02-25 16:46:58 +00:00
Brecht Van Lommel
7f0b9abb7d Fix for bug #7914: when rendering ray transparency with premul or key,
the alpha channel was set wrong.
2008-02-25 15:08:46 +00:00
Brecht Van Lommel
3dc8342945 Fix for #6686: crash with array modifier fit to curve option, could
create a too large amount of duplicates.
2008-02-25 13:05:08 +00:00
Brecht Van Lommel
d4fface140 Fix for bug #8081: python script crash writing MFace.uv. 2008-02-25 11:55:51 +00:00