Commit Graph

1936 Commits

Author SHA1 Message Date
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
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
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
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
Campbell Barton
d560b17088 fix for [#8408] Indentation error in text editor when typing a colon anywhere 2008-03-01 12:31:00 +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
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
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
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
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
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
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
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
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
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
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
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
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
Daniel Genrich
e9ce2a9f3f Cloth: Little (bug)fix to let springs appear as an upper tridiagonal matrix 2008-02-26 09:55:07 +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
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
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
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
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
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
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
Geoffrey Bantle
eb21b2b16e -> Bevel Crash Fix (again redux)
More fixes for 2 edged faces
2008-02-24 12:57:11 +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
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
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
Joseph Eagar
f312611a92 =ID Property Bugfix=
There was an extraneous line causing ID property groups
to have the wrong length, causing crashes in code that
relied on it.

This commit both fixes that and adds a version check to
fix group lengths for older .blends.  The subversion
was incremented to 15 for this change.
2008-02-23 02:12:50 +00:00
Joseph Eagar
0e233b3213 =Reversion of premul bugfix=
Reversion of premul bugfix, as it was apparently not
working all that well.

Note that this brings back the bug where the erase alpha
paint tool won't display correctly, since the UV image
editor just draws images in key alpha now.
2008-02-22 22:23:58 +00:00
Brecht Van Lommel
46f27200e1 Bugfix: effectors in dupligroups didn't work, if the particle didn't
specify a group of effectors. Now it goes into groups recursively to
find effectors.
2008-02-22 16:31:10 +00:00
Campbell Barton
859a613a4c fix for [#7899] Quit doesn't report failure to save quit.blend 2008-02-22 00:03:03 +00:00
Campbell Barton
ae464adffd Fix for [#8303] stamp gives wrong file name when using unsaved files
Also made alpha color work with OpenGL render caused by buf_rectfill_area not working on char rect's.
2008-02-21 23:19:06 +00:00
Campbell Barton
52b644a30d Particles using Object or Group visualization would render with Disp value. - rather then using 100% of the objects. 2008-02-21 20:13:33 +00:00
Brecht Van Lommel
9be47ba25c Fix for bug #8321: crash with fluidsim in shaded draw mode. 2008-02-21 13:15:21 +00:00
Campbell Barton
4c0b33ef80 Python Bugfix
A new file could have its Blender.Get("filename") return "<memory>" after undo'ing on an open file.
Fix for own error with python sys.path, messed up game engine.
2008-02-20 18:56:07 +00:00
Daniel Genrich
e3e268253d Cloth: Bugfix for wrong number of bending springs, could result in visual artifacts 2008-02-20 15:54:34 +00:00
Campbell Barton
97d40faee9 Added an option for texture forcefields to use the root location of a particle for its texture coords.
Without this, animating grass would either look like seaweed (with low freq texture)
Or the grass would wrinkle up and get kinks (high freq texture)
This lets you use a high frequency texture while having straight grass.
2008-02-19 18:36:50 +00:00