Commit Graph

11863 Commits

Author SHA1 Message Date
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
Joseph Eagar
31b04490d1 removed mingw from the list of platforms to use the
debug python lib, as it was causing link errors.

if someone wishes to figure out why this is messing up,
go ahead.
2008-02-26 00:04:54 +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
Brecht Van Lommel
15688168df Fix for bug #8347: bug in raytraced shadow with edgesplit. Problem
was the new jittering of the start position gave self intersections,
especially noticable with for example edgesplit because in that case
it can't detect them as well. 'Solution' now is to bias the start
position away from the surface a bit according to how much the start
position was jittered.
2008-02-25 10:58:12 +00:00
Geoffrey Bantle
d566fe665a -> Bevel
Fixed the following problems with Bevel code

  -meshes with 2 edged faces left over at the end would cause buffer
   overrun whens converting from a Bmesh to a Derived Mesh. The
   conversion process now checks for both double edges and faces
   and removes them when present.

  -BME_reverse_loop euler had a bug that was causing the corruption of
   radial cycle. This would lead to the bevel tool hanging for a long time
   and possibly crashing.

  -Added optimization of BME_reverse loop so that it no longer does tiny
   allocations but instead uses an area of 'scratch' memory. The same thing
   will be done to the Make Face euler soon

  -Added proper call to selection flushing for editmode.

  -Some miscellaneous cleanups and removal of unneeded debug printfs.
2008-02-25 04:53:37 +00:00
Joshua Leung
3023458aa7 Purge of compiler warnings (number 2):
* initial values I added in radialcontrol.c might need to be reviewed if they cause problems(I used 200, as it seems many tools were setting that)
* #pragma warnings are the only warnings I still get, so that means we have a clean slate again
2008-02-25 04:38:48 +00:00
Brecht Van Lommel
eaf111a34c Fix for bug #8351: clicking to select a tabbed panel went
wrong if there were more, hidden panels tabbed also.
2008-02-25 02:34:09 +00:00
Willian Padovani Germano
18df3388a4 == BPython ==
[#8354] Blender or Python25.dll crash on... quit, reported by David B. (myvain)

The BPy_FreeButtonsList() function is also called after we call Py_Finalize(). Calling PyGILState_Ensure()/Release() there crashes Blender. Added a test to prevent this, but note that function still runs Python API code to free a buttons list. Doesn't seem to give problems, though. Thanks, David.
2008-02-25 01:35:50 +00:00
Brecht Van Lommel
ed7156a258 Fix for bug #6747: make single button for node groups didn't work,
functionality was not implemented.
2008-02-24 22:27:40 +00:00
Daniel Genrich
93034dc3f6 CMakeList fix for fluids 2008-02-24 22:19:17 +00:00
Brecht Van Lommel
6e4683fc52 Fix for bug #8353: switching particle hair with softbody to emit crashed.
Fix for bug #8355: crash zooming in render window.
2008-02-24 21:29:20 +00:00
Daniel Genrich
19be91823b Bugfix [#8352]: My OpenMP additions seem to cause errors on MSVC, so I kick them leaving 'only' the original OpenMP additions from N_T 2008-02-24 21:24:39 +00:00
Brecht Van Lommel
f31dd8075c Fix for bug in settings particle reactor recalc.
Patch by Thomas Knight, thanks!
2008-02-24 19:50:21 +00:00
Brecht Van Lommel
e601994b15 Fix for bug #8324: J-key render buffer switching had various issues.
One problem was that the previous render buffer was stored in the
render window or image window itself, which means that when closing
it, or switching from one to the other, things didn't work as expected.
Also in the image editor, color sampling the previous render buffer or
saving it didn't work correct.
2008-02-24 19:23:58 +00:00
Martin Poirier
c7f1ab15b7 == Transform Orientations ==
When doing normal orientations from three vertices, if there's a full edge selected, use that to define the tangent (more logical).
2008-02-24 17:13:52 +00:00
Willian Padovani Germano
87dd4809ed == PyNodes ==
Small update to where a PyGILState_Ensure() call is made.

--

Let me use this commit to mention a couple things related to this change to make Python thread-safe in Blender:

1) This page explains the changes: http://wiki.blender.org/index.php/BlenderDev/BPythonAPI/Threads

2) If you experience hangs (deadlocks) when running anything related to Python in Blender, the related part in the code may need a proper Ensure/Release block, as explained in the above link.

From Joshua (aligorith)'s previous commit to this file:

"* various problems related to gilstate calls being added in strange places (could someone familiar with python double check that they're in the right places now)?"

I checked the two places you fixed, second one is ok, the first one needed to be before the call to create a py dict -- done. Thanks for catching them!
2008-02-24 16:19:39 +00:00
Brecht Van Lommel
7098c1b93c Fix for a recent bugfix, could crash automatic vertex weighting,
forgot to do NULL pointer check.
2008-02-24 16:08:33 +00:00
Brecht Van Lommel
1159bc9189 Fix for bug #8304: child distribution gave different results across
platforms. Cause was a function(rng_getFloat(), rng_getFloat()),
apparently the order in which rng_getFloat() is evaluated is not
compatible between operating systems.
2008-02-24 14:53:44 +00:00
Peter Schlaile
9b4bc15c2a == Sequencer ==
Fixes 

[#5211] Sound scrubbing does not work after blend file load

also fixes:

if you hit the timeline playbutton, you can reseek by clicking on the timeline.
Now audio doesn't stop anymore and keeps on playing from the new position
instead.
2008-02-24 13:49:31 +00:00
Peter Schlaile
775f845146 == Sequencer ==
* Fix button drawing in header finally, sigh.
* Fixes: 
  [#8262] Hide Meta Strip does not hide contained Audio
2008-02-24 13:26:27 +00:00
Geoffrey Bantle
eb21b2b16e -> Bevel Crash Fix (again redux)
More fixes for 2 edged faces
2008-02-24 12:57:11 +00:00
Brecht Van Lommel
a9568cc932 Fix for bug #8346: compiling with verse enabled was broken.
Fix provided by Fabian Boehlke, thanks!
2008-02-24 12:23:47 +00:00
Brecht Van Lommel
52a31e1e85 Fix for bug #8331: compositor nodes backdrop displays in material nodes.
Fix for bug #8083: backdrop not displaying centered in the window.

Fixes for both provided by Fabian Boehlke, thanks!
2008-02-24 12:16:27 +00:00
Peter Schlaile
f59bbef4b3 == Sequencer ==
Fixes a lot of small things:
* zoom in/out in preview is more fine grained (use SHIFT)
* zebra scopes don't try to draw the border and fail
* lock/unlock now locks/unlocks all selected strips
* fix redraw problems of panel on lock/unlock
* buttons-panel is redrawn on translate, so that position information is shown
* added lock / hide to Strip-Menu
* fixed small drawing problems in header

TODO: find a good key for lock / unlock (Shift-L | Alt-Shift-L isn't that nice
      to press...)
2008-02-24 12:12:05 +00:00
Geoffrey Bantle
d66e9cfdf0 -> Bevel Crash Fix (again)
Last crash fix would leave 2 edged faces laying around, which would cause ANOTHER
crash when converting back to a derived mesh. Fixed now.
2008-02-24 12:02:58 +00:00
Joshua Leung
824a714b47 Purge of compiler warnings... (hopefully everything still compiles, there are still more to remove) 2008-02-24 11:16:37 +00:00
Joshua Leung
54f83a423a Purge of warnings from BPY_interface.c
* missing include for depsgraph from previous commit
* various problems related to gilstate calls being added in strange places (could someone familiar with python double check that they're in the right places now)?
2008-02-24 10:36:19 +00:00
Joshua Leung
d16daa2c13 Removing duplicate PyConstraints version-patch. I guess it was a result of some merge gone wrong or so. 2008-02-24 09:51:07 +00:00
Joshua Leung
cd934aa1a8 Patch #8344:
Submitted by: Thomas Knight (epat)

Parts committed:
1) Fixed a few misspellings in some error strings.
2) Fixed a (theoretical) bug with pyconstraints where a text object could be deleted from python but would remain linked
to the constraint it was assigned to - causing slight UI usage discontinuities!

Not committed yet:
3) Particle system bugfix in this patch has not been committed. Could jahka or brecht check this.
2008-02-24 06:38:42 +00:00
Geoffrey Bantle
c8569c934a -> Bevel Crash Fix
Bevel code was making incorrect usage of the BME_loop_reverse euler.
Restructured the code in order to correct the problem.
2008-02-24 06:23:20 +00:00
Jean-Luc Peurière
cac62dfc1c adding the null body of the stubs 2008-02-23 23:14:41 +00:00
Geoffrey Bantle
14024e8f7e -> Bevel tools and Bmesh kernel
missing stubs
2008-02-23 23:02:24 +00:00
Geoffrey Bantle
0fb922ba94 -> Bevel tools and Bmesh kernel
more missed files!
2008-02-23 22:46:55 +00:00
Geoffrey Bantle
e03ab146ae -> Bevel tools and Bmesh kernel
The following is a commit of Levi Schooley's bevel code and 
the bmesh library it depends on. The current editmode bevel has 
been replaced with a new per edge bevel function. Vertex beveling is 
also availible.

To set weights for the modifier to use, use the ctrl-shift-e shortcut on either edges 
or vertices.

Recursive beveling is turned of for the time being.
2008-02-23 22:11:16 +00:00
Tom Musgrove
40934ef6df This is an update of the french translation, patch from
Erwan Jacq (eon) - .mo to follow

This is also a partial fix of bug 8272 X3D export issues
the rest of the bug might be already fixed in CVS
2008-02-23 20:08:18 +00:00