Commit Graph

5469 Commits

Author SHA1 Message Date
Ken Hughes
95e94b4630 Make curnurb.flagU and curnurb.flagV range check their inputs, plus make
the documentation correctly describe how the attributes and methods work.
2005-12-01 04:50:04 +00:00
Ton Roosendaal
d369a44dde Orange bugreport; disabling (with small icon button) a deforming modifier
for EditMode, the CrazySpace correction still worked. Made it check for
the modifier mode flag.
2005-11-30 20:22:27 +00:00
Ken Hughes
22188fba21 -- previous commit was decrefing a borrowed reference; thanks Ascotan for
tracking this down!
2005-11-30 20:18:54 +00:00
Ton Roosendaal
ec2644fe5c Bugfix - own repertoire :)
- Curves without bevel or extrude didn't calculate the Z value for
  softbody when the "3d" option for curves was off.
- Typo in softbody.c, for switch of // comments to /* */
2005-11-30 18:58:10 +00:00
Marc Freixas
ce3164e259 Boolean op error handling has been added. When a no closed mesh is used the follow message is showed:
"Both meshes must be a closed mesh"
2005-11-30 17:38:41 +00:00
Marc Freixas
738d3e4ae3 Boolean op are undeffined when one of the two meshes are a no closed mesh (without holes).
I put a test to check the input meshes before do any thing. If one mesh have holes a error code is returned.
2005-11-30 17:35:54 +00:00
Ken Hughes
b7a4a6c837 -- Bugfix #3186: Fix memory leaks caused by multiple calls to
PyDict_SetItemString() with objects that were not properly decrefed
   afterwards.  Due to the number of places this was used, I added a
   wrapper EXPP_dict_set_item_str() to gen_utils.c to handle it.

   This started as a scriptlink bug, due to how many times scripts were
   being executed I think it just magnified how bad the memory leak in
   BPy was.  Animating the blend attached with this bug report would cause
   memory to grow by about 3MB for every 280 frames.  After the patch,
   memory did not appear to grow at all (or at least not noticably using
   Unix's ps and top utils).

   Since many of the PyDict_SetItemString() calls were in initialization
   modules I think my tests executed most of the changed code, but would
   appreciate script users really giving feedback.
2005-11-30 08:18:06 +00:00
Ken Hughes
00f4310970 -- Bugfix #2868: NMesh.update(0,0,1) with derived mesh data would cause a
crash.  Hopefully the NMesh module will die a silent death before we
   discovere this doesn't really fix the problem :-)
2005-11-29 23:38:40 +00:00
Ton Roosendaal
adb2d5d88a Bugfix #496
Noticed that static particle orcos (strands) actually were global
coordinates. This was code copied from dynamic particles...

Bugreporter (hi env!) tried to make nice zebra texture, which of course
very much failed.

Note; orco textures for strand give the same texture coordinate for the
entire hair. UV maps don't work here yet.
2005-11-29 23:31:26 +00:00
Ton Roosendaal
a381cb2fca Bugfix #3494
An image texture without picture returned a '0', causing the texture code
to generate a bump normal that warped the entire shading around.
In bugreport it was showing terminator issues with ray shadow.

Terminator problems can still occor with more extreme bumpmaps though,
something to look at further.
2005-11-29 23:09:36 +00:00
Ton Roosendaal
04387f403f Bugfix #3493
Replaced sqrt() with the safe version sasqrt() in anisotropic.
the formula (1 - n*n) should not give negative values for n = dotproduct
of normals, but float inaccuracy can make negative zeros, as we know!

This solves, hopefully, last annoying "blotches" in hair!
2005-11-29 21:44:47 +00:00
Ken Hughes
e2723d671a Fixed calls to BIF_draw_icon_blended() in draw_marker() to use TH_BACK,
also removed unused parameter from draw_markers_time().
2005-11-29 21:41:31 +00:00
Johnny Matthews
4798e3ac28 A small tweak on the Glow effect Alpha channel. 2005-11-29 21:14:42 +00:00
Johnny Matthews
36cc4a632f Possible fix for bug #3400 2005-11-29 21:07:17 +00:00
Ton Roosendaal
0864011d27 Disabled commit of three days ago to speedup and improve hairstrand
raytracing with a linedist (cylinder) check. It didn't behave OK on strands
set to be more than 1 pixel (not to mention 10 pixels), and I have no time
now to fully check and code it.

Which is not really important either... In general, all 3d papers talk about
using shadowbuffer shadows for hair, which gives much nicer results for
dense volumes of polygons.

This commit restores regular (flat polygon) raytrace shadow for strands.
Also fixes some nasty bugs as reported. :)
2005-11-29 20:18:31 +00:00
Ton Roosendaal
0140c36df9 Cleanup & preparation commit for getting Armatures/Poses/Actions working
in the game engine again.

All files in source/gameengine/ I've committed below have a comment like
/* XXX note .... */
where something needs to be done. This is pretty straightforward for Erwin,
who has been notified in person too about this. :)
2005-11-29 12:45:18 +00:00
Joseph Gilbert
65ce2c2cee * warnings fixes 2005-11-29 05:08:29 +00:00
Joseph Gilbert
9321e844bd .net projectfile update
* fixes file directory for elbeem (rebuild intern)
* adds the tiff stuff to imbuf and copies dll
2005-11-29 05:03:13 +00:00
Ken Hughes
0ae3fe59a3 -- Partial bugfix for #3186. curve.getControlPoint() wasn't DECREF-ing
values added to a list, causing a memory leak.
2005-11-29 01:35:45 +00:00
Ken Hughes
c0e94f3063 Fix incorrect documentation for Window.QTest(). 2005-11-28 22:49:59 +00:00
Ton Roosendaal
10517e5e87 I hesitate to call it a bugfix... but it's a removal of a very ancient
(2001) hack that enforced opening renderwindows smaller than screen size.

The notes I could find referred to testing old 3d cards, which failed to
give graphics memory for large windows. Another note was an issue on OSX,
where the topbar and windowbar gets hidden otherwise.
That latter case I corrected now.

Will organize good testing for this, if there's issues, will uncommit :)
2005-11-28 22:49:23 +00:00
Jens Ole Wund
37bf3c5f85 fixing msvc6 project debuggin 2005-11-28 22:22:25 +00:00
Simon Clitherow
8081b64ad8 added libtiff dll to 'release' target for scons (win32) 2005-11-28 20:01:14 +00:00
Ton Roosendaal
5595f3cf62 Bugfix; using vertex+edge select in Mesh editmode, didn't restore selection
correctly after re-entering editmode.
2005-11-28 18:16:37 +00:00
Ton Roosendaal
705497142d Bugfix #3469
3D Manipulator didn't snap to correct center in editmode Armature. Bug as
old as manipulators in blender. :)
2005-11-28 17:12:43 +00:00
Ton Roosendaal
413a86e5d9 As reported on bf-committers maillist: new object centers were drawing in
sets. To fix it, I got rid of a very ancient hack to enable set grey wire
drawing (setting a global to pretend it's picking select draw).
Now this setting is nicely passed on via functions as argument.
2005-11-28 16:59:12 +00:00
Jean-Luc Peurière
ea16a99f57 cosmetic change to reduce console output on Os X
when libtiif is searched.

this is to reduce complaints from frightened users crying
" THERE IS AN ERROR ! "
2005-11-28 16:11:27 +00:00
Jean-Luc Peurière
0c52fc76dd Nvidia workarounds
- partially working workaround for nvidia bug on Os X 10.4.3
- brought back the raster ops hack for GT6800 with proper driver version
  check so that text works both on Os X 10.4.3 and older systems.
  this last patch was given by Kent Miller from Apple
2005-11-28 13:50:44 +00:00
Erwin Coumans
e1c66eb145 applied the 64-bit pointer patch submitted by Ken Hughes 2005-11-28 06:51:54 +00:00
Ken Hughes
427cae9eeb -- Fix bugs caused (by me) by incorrect use of Py_RETURN_NONE macro in
"if" statements.  The macro defined in gen_utils.h expands to two
   statements; putting after an "if" statement without {} means the second
   statement should always be executed.  I'm not sure if just putting
   braces around both statements would cause other compilers to complain.
   But this explains an earlier bug in the Object module which only
   appeared on MacOS/X.
2005-11-28 05:21:25 +00:00
Ken Hughes
b2e32f5bd1 -- Bugfix #3458: keyblock.getData() was getting vertex data from keys
incorrectly, including wrapping curve data as BezTriples.  Needed to
   make a change to beztriple module so we could more easily create a
   "thick" BezTriple object similar to Blender.BezTriple.New().

   The change to BezTriple.h pointed out some dead code in the Ipocurve
   module that could be removed.
2005-11-28 05:03:26 +00:00
Ton Roosendaal
1745a077ad New object centers were not visible consistantly when using zbuffering.
Instead of disabling zbuffer while drawing it, it now still writes zvalues,
but not tests for it. That way the centers are visible independent of
drawing order.
2005-11-27 23:27:14 +00:00
Ken Hughes
ea1df5652d -- bugfix: me.subdivide() was declared NOARGS but was expecting an arg,
causing a segfault.  Thanks to Cam for catching it.
2005-11-27 23:15:39 +00:00
Ton Roosendaal
8fb9ef7a1d Bugfix #3467
Option "Paste flipped pose" didn't work proper for auto-key (inserted key in
own bone instead of flipped...)
2005-11-27 22:07:28 +00:00
Ton Roosendaal
90bc4c1f83 Prevented mirror or ray-transparency to use the new hair-cylinder code. 2005-11-27 21:15:45 +00:00
Ton Roosendaal
acd06aebc1 Depsgraph fix for editing linked Objects with the other instances being
in other layers (or hidden with local view).

In my search for the absolute minimum of recalculations, changes are only
flushed when they're visible. On changing layers, the tags then are just
set again (for everything that potentially moves) to ensure proper state.

However, it didn't work proper for linked Mesh objects that changed in
editmode, the Derivedmesh callback then accessed memory out of bounds.

The current dependency code was more designed for animation systems...
updating display data should work too, but might need some more tests!

(Thanks Andrea for clear error sample!)
2005-11-27 20:49:25 +00:00
Ton Roosendaal
ebb00c1ce5 Bug #3479
Cyclic paths (or curve guides) were not drawn in Solid View when not
selected.
2005-11-27 18:54:23 +00:00
Matt Ebb
29db5673c9 * Trying some tweaks to lamps/centers drawing based on IRC discussions 2005-11-27 18:19:00 +00:00
Ton Roosendaal
dff7bebab8 Bugfix #3478
Using a Curve object as a forcefield (not as Guide) crashed Blender.
Needed an additional check in code.
2005-11-27 18:17:02 +00:00
Ton Roosendaal
cb82936a98 Bugfix #3477
Bug in VortexField caused in some situations the particles or strands to
disappear completely. Non initialized variable...
2005-11-27 17:27:32 +00:00
Stephen Swaney
82956daab9 spellcheck scripts in response to IRC whining.
vertexes => vertices
2005-11-27 16:46:58 +00:00
Brecht Van Lommel
0e0cafcada "UV Test Grid" option in Image Window > Image menu > New, to generate
a colored grid instead of a blank image, for quickly spotting distortion
in UV maps.
2005-11-27 16:21:25 +00:00
Chris Burt
dfd22eb943 As discussed in meeting, fixed another missing Python symbol from
python.def and upped Python version to 2.4. This means that Cygwin/GCC will
now be building Python 2.4 binaries. Thanks all!
2005-11-27 15:36:21 +00:00
Ton Roosendaal
a494a76e9e Finishing touch for hair strand shadows;
- raytracing code now uses cylinder-line intersect for strands. It used
  to intersect with the screen-aligned strand quads, giving too many
  misses for tracing.
  Note; mirror for hair is still not well supported!

- added in Materials a choice for whether a material is Traceable for
  raytracing or whether it is part of Shadow buffers. This way you can
  exclude hair strands from raytracing, but still get shadowbuffers for it.
2005-11-27 12:19:12 +00:00
Ken Hughes
f08200baa9 -- Change to make blender with game engine disabled build without errors
on 64-bit machines.

   This code only seems to be used by the game engine anyway; maybe it's
   only linux which always compiles it regardless of whether game engine is
   enabled?
2005-11-27 03:47:17 +00:00
Stephen Swaney
bc293ba7e1 patch #3475 for bug #2867 Object.makeParent with noninverse doesn't clear parentinv matrix
Contributed by Stephane SOPPERA (soppera).  Thanks!
2005-11-27 01:42:46 +00:00
Ken Hughes
83557b14fb -- correct typo in "Fields and Deflection" panel name 2005-11-27 00:09:35 +00:00
Ton Roosendaal
57aac76f45 Bugfix #3471
- Editmode Mesh: after a split command, normals were not recalculated

ALso: in Particle buttons, made the "Tex" button go to the maximum of 10
channels.
2005-11-26 18:38:54 +00:00
Ton Roosendaal
85b2cd52f9 Increased maximum limit for Ztransp render to allow 1000 faces in a single
pixel (was 200), this to prevent occasional errors with extreme haircuts!
2005-11-26 18:07:57 +00:00
Ton Roosendaal
34fe7292de Bugfix #3463
Very ancient bug in boxfilter for image texture popped up with new code
for correct bumpmapping. Caused texture type "Extend" not to work when
using for bump.
2005-11-26 17:56:39 +00:00