Commit Graph

4681 Commits

Author SHA1 Message Date
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
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
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
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
Ton Roosendaal
5b04f23777 Buttonswindow: Fkey cycling bug, accessing OBACT without checking it OK.
Caused crash on pressing F6,F5 after deleting object (thanks DJC!)
2005-11-26 15:13:10 +00:00
Ton Roosendaal
800c12f4a1 Hairstrand render bug; using Orco could give errors... the orco pointers
for some hair vertices were not initialized OK.
2005-11-26 15:12:05 +00:00
Ton Roosendaal
296b2bf1d9 Added three more cases for allowing to create a new quad (Fkey), based on
inverting the checked triangle diagonal.
Noticed issues while modeling subsurfs yesterday, in that case you can
really be less strict.
2005-11-26 13:09:25 +00:00
Ton Roosendaal
63ca05b7b3 Four mirrored Weight Paint improvement/fixes:
- If the mirrored group doesn't exist yet, it creates that group now.
- Painting on any non-mirror group (not a name complying mirror rules), it
  will now paint mirrored on the group itself.
- The Mesh octree for mirror painting was not created on loading a file
  in WeightPaint mode, or on exiting Editmode for Mesh. This caused mirror
  painting to not work always.
- Tweaked the threshold calculation for vertices, so it gives fewer misses.
2005-11-26 12:23:33 +00:00
Stephen Swaney
51e70835cc patch #2869 MTex module additions
contributed by Yehoshua Sapir (sapir)

adds attributes to MTex module.  adds module constants.
Uses new style tp_getset.
2005-11-26 02:10:42 +00:00
Ton Roosendaal
8128835ada Small fix: after rendering particles, the "disp" amount was not correctly
put back to not 100% (if set).
2005-11-24 21:53:51 +00:00
Matt Ebb
9c66d202fe * Tweaked the logic of the Fkey button cycling to make it a bit smarter 2005-11-24 17:55:46 +00:00
Matt Ebb
db31007e32 * Removed the OK? popups from extruding curve CPs. 2005-11-24 17:54:49 +00:00
Ton Roosendaal
986745abcc Bugfix (tracker #3456, elysiun forum).
The new colorband code still had floating point issue... how much a
< or <= can differ eh!
2005-11-24 16:54:55 +00:00
Ton Roosendaal
9b8e7f55ed Using the "Lock" option in IpoWindow didn't update for Materials or Camera
Ipos.
2005-11-24 14:27:27 +00:00
Chris Want
fde3718843 While looking at the python Lattice code for a bug, I instead found
what must clearly be a typo ... an 's_z' where an 's_y' should be
-- python Lattice module owner please check!
2005-11-23 23:43:02 +00:00
Ton Roosendaal
899fe6ee9d Bugfix (own discovery!), using sequencer to render a scene updated the
depsgraph 2 times to often, also confusing particle drawing when disp %
is set.

And: little cleanup in render code (move includes in order)
2005-11-23 21:25:20 +00:00
Ton Roosendaal
bb0445c722 Bugfix #3437 #3438
- Mirror modifier showed particles on wrong half.
  Note: particles don't do modifiers yet (apart from using subsurf coords)
- Boolean modifier copy didn't copy the 'operation' type.
2005-11-23 19:19:44 +00:00
Ton Roosendaal
53d426c49a I hoped we could skip a floor() in the new zbuffer code, but no...
rounding negative values goes to zero, caused left pixel to not
render in images.
2005-11-23 17:38:05 +00:00
Ton Roosendaal
e506c9ea52 Forgot to remove code that draws the jitter samples in camera view! 2005-11-23 15:39:25 +00:00
Ton Roosendaal
b9e7bf05f0 Forgot to note in previous commit: also cleaned up warnings in code,
like using exported functions without adding it in the .h.
2005-11-23 15:22:51 +00:00
Ton Roosendaal
622f914776 New stuff & fixes in Blender OSA filtering.
While investigating alternative filters (Mitchell), I found two small
errors in the Gauss code, it clipped wrong and multiplied wrong, causing
settings other than filter size 1.0 to not work properly.

Took the last-minute liberty to add more filter types in Blender too.
Also wrote an extensive log about how sampling & filtering in Blender
works.

http://www.blender3d.org/cms/Samples_and_Filtering.723.0.html
2005-11-23 15:20:45 +00:00
Nils Thuerey
65a824879c - temporary fix for MSVC (accessing a var from the elbeem lib
caused trouble)
2005-11-23 15:18:45 +00:00
Jean-Luc Peurière
16ec668047 added bad level call stub for sluidsim 2005-11-23 14:42:17 +00:00