Commit Graph

6391 Commits

Author SHA1 Message Date
00a6a79899 added the texmesh to Mesh property to mesh. 2006-07-31 12:57:46 +00:00
7bd41a99e0 BIF_GetStringWidth() returned garbage when given a 0 length string, which was causing 2006-07-31 10:49:35 +00:00
1de0248f6f fixed a typo that must have slipped in ;)
Kent
2006-07-31 04:54:10 +00:00
4f7a5fd641 * Made the proportional edit circle draw inverted against
the background - it was very difficult to see with a muted
grid theme colour.
2006-07-31 02:48:45 +00:00
3650abf328 A couple of compositing nodes:
* Combine RGBA
Basically the opposite of separate RGBA, brings 4 value channels into a single
RGBA image). Has interesting possibilities for reordering channels, when used
with separate RGBA!

* Dilate/Erode
Originally written by Brecht van Lommel, with some minor modifications and
tweaking by myself. Positive distances dilate, negative distances erode.

* I also added the 'value' field to the hue/saturation node. Minimal extra cost,
and can be handy.
2006-07-31 02:24:35 +00:00
cac265f7b6 faces faces added had vertex colors set to black.
use default_tface(tface) on all extended faces when tfaces exist.
2006-07-28 07:08:27 +00:00
eced755afe added a slot in the uv/image's "Image" menu for pyscripts. 2006-07-28 02:51:44 +00:00
f893d950a1 Image Paint:
- Code for brush spacing and timing was rewritten, making spacing more even.
  Example: http://users.pandora.be/blendix/brush_spacing.jpg
- Instead of Stepsize for regular brushes and Flow for airbrushes, there is
  now Spacing for both, and Rate for airbrushes.
- Airbrush now works more like it does in the Gimp now, by maintaining the
  spacing even if the brush moves faster than the painting rate.

- Some preparations to make brushes work in texture paint mode.
2006-07-28 00:56:35 +00:00
e360cbf62b Updated epydocs to reflect changes in the API
Also made links to wikipedia pages explaining what a these functions do mathamaticaly
2006-07-27 12:23:08 +00:00
403b62fbcf matrix .inverted() and .transposed() didnt work because the matrix was wrongly copied.
2 more memory leaks in matrix multiplication fixed.
2006-07-27 02:33:54 +00:00
b227c98c44 Addition to Mathutils
vec.normalized()
 mat.inverted()
 mat.transposed()
 made vec/float possible

 normalize/invert/transpose now return None because they modify the data in place.
 use the ...(ed) versions to return a modified copy.


Fixed Memory leaks from not decreffing PyFloat_AS_DOUBLE from these python functions...
(found when testing above functions)
  ob.rbMass
  ob.rbRadius
  matrix.determinant()
  quat*float
  vec*float
  matrix.transpose()
  EXPP_setModuleConstant

Checked all instances of PyFloat_AS_DOUBLE so I dont think there are any mroe leaks there.
2006-07-27 01:18:21 +00:00
4ee3515bf1 Brush Datablock:
- Added a new Brush datablock, only used by image paint, but intended
  to be used in texture paint, vertex paint, weight paint and sculpt
  mode also.
- Being a datablock, these brushes can be saved, appended and linked.
  They have a fake user by default, to make sure they are saved even if
  not selected.

Image Painting:

- Replaced the img module with C code in imagepaint.c
- Airbrush is no longer a separate tool, but rather an option that can
  be used for soften, smear and clone also.
- Blend modes mix, add, subtract, multiply, darken and lighten have been
  added, code taken directly from vertex paint.

Note to project files maintainers:

- The img module was removed from SCons and Makefiles, and this should
  be done in other build systems also. I'll wait to remove the module
  from cvs, to not break compilation.
2006-07-26 22:29:23 +00:00
Ken Hughes
1df2871f2f ===Python API===
Multiplication of 3D vectors by 4x4 matrices converts the vector to 4D but
did not make the vector homogenous.  Fixing that so the translation part of
the matrix will also be applied.
2006-07-26 12:34:56 +00:00
8c8acb793c * Added armature bone subdivide to 3d View menu 2006-07-26 10:40:14 +00:00
b111027d5d * Added armature bone subdivide to 3d View menu 2006-07-26 10:33:41 +00:00
Ken Hughes
118125cff8 ===Rendering===
Bugfix #4797: when rendered image could not be saved, do_write_image_or_movie() returned without calling IMB_freeImBuf(ibuf).
2006-07-26 05:03:53 +00:00
Ken Hughes
5618de6e1e ===Python API===
Fix typos in Object epydocs.
2006-07-26 03:06:33 +00:00
c4429fb796 Added a note in the object docs about object data and editmode
removed mirror_bone_weights, as it was a double another script, contacted the author and hes ok with it.
2006-07-26 00:41:52 +00:00
ad67ad845f Printing the BezTriple was only printing it in 2D, since all curves have a 3d vector, even of its a 2d curve we may as well print 3d all the time. 2006-07-25 15:43:15 +00:00
ae1160bd4d Updated splash with an 'a'. Also kept it a png this time, after complaints
about blockyness of previous one. :)

(note, file name has .jpg still, this is needed for the splash code to
work, not going to change blender code for it now).
2006-07-23 15:20:03 +00:00
fa5ead9ea5 Fixed bullet formatting and explained where some constants were stored (had to look at source to see, so may as well doc) 2006-07-23 15:16:15 +00:00
662d49f076 Bugfix #4773
The VectorBlur node crashed when it didn't get a RGBA type image as
input (like using Alpha as input). Added typeconversion for it.

Note: the Z input and Vector input are not converted, but checked for.
When an improper type gets connected to these inputs, an error is
printed in console.
2006-07-23 09:54:22 +00:00
a6b0c136bb Bugfix #4770
When adding a new node in a group, the call to refresh input/output
sockets was called after a compositing update was executed.
Just moved this call 2 lines up.

This also uncommits the fix from Joilnen, the stack pointers in the node
system are *per definition* set. If NULL, it's an indication something
else is wrong.
2006-07-23 09:10:05 +00:00
a01e81cf7d Bugfix #4699
Missing dependency graph update on establishing a new relationship between
a static particle system and a curve guide, with the pulldown button in the
"Fields and Deflection" panel.
2006-07-23 08:49:19 +00:00
9868544a41 fix for bug #4770
.
2006-07-23 02:56:45 +00:00
9254c07f6e IRC bugfix (thanks samo!):
The Material buttons copy/paste options (icons) didn't work for node trees.
Code was forgetting to free memory properly.
2006-07-22 17:11:36 +00:00
bd8cd6a38c noticed my BVH test import blender was 30meg+ turns out to be
python new action function (M_NLA_NewAction) was making actions with 2 users, so that acrions would never de-allocated,

alloc_libblock alredy assigns a user, so just dont assign another from M_NLA_NewAction.
2006-07-22 14:22:03 +00:00
bfd9f8e196 Bugfix #4747
Using "Deselect all" pulldown in Node Editor crashed when no nodetree is
visible.

Bugfix #4753

Hotkey SHIFT+P in buttons window started game engine, which it should not.
2006-07-21 11:52:41 +00:00
12a1fc374e - fixed manual viscosity bug (#4733)
- added some more free/copy checks for bug 4094, but
  still not enough
2006-07-20 15:27:55 +00:00
cebb1f9465 Bugfix #4734
code provided by Stephane Soppera: ImageWindow and Node previews now draw
in correct premul-alpha, eliminating bad black lines in alpha areas.
2006-07-20 11:01:49 +00:00
0128c401b9 Bugfix #4741
Ancient issue; when you press keypad-0, it should assign the active camera
object to a scene, but this did not happen when that camera was already
assigned to the active 3d view. A rare case, causing 'error no camera' on
a render.
2006-07-20 10:36:55 +00:00
60f3a33855 Added a note explaining the poseMatrix space and how to get the worldspace location. 2006-07-20 06:50:23 +00:00
49bbb326b1 Bugfix #4736
Composite: the Translate Node only worked in some cases (pixel processor
call), and not for:

- filter
- seperate rgba
- conversion of buffer types (value to rgba etc)

Blur still doesn't either, but that code is too optimized to add quick.
Will put on todo for checking on better unification of translations.
2006-07-19 19:46:42 +00:00
d2f8f51556 Removed leftover SDL include from render module. 2006-07-19 15:39:36 +00:00
Ken Hughes
b85c3fb1de ===Python API===
Bugfix #4728: passing an interator sequence to me.faces.delete() caused a
crash; check explicitly for lists or tuples.
2006-07-19 14:35:22 +00:00
f4737af504 Bugfix #4724
Actually a bug since dark ages... the code that tries to find the view
correction (zoom) factor for grabbing stored result in a global. With
multiple 3d windows open, with different views, that could result in
wrong correction. Just made the factor a local property in View3D.
2006-07-19 11:28:48 +00:00
fe43c5e6f0 use 'fixedtime/enable all frames' from the blend file 2006-07-19 06:39:11 +00:00
e61189b3c8 accidently replaced initGamePlayerPythonScripting with initGamePythonScripting, causing the gameplayer to crash on all platforms (lack of PyInitialize()... 2006-07-19 05:12:59 +00:00
Ken Hughes
e194ccce5e ===Python API===
Bugfix: using Image.GetCurrent() and image.save() on the "Render Result"
image could result in a segfault since image->ibuf was NULL.  This change
forces ibuf to be created if necessary.

NOTE: the Image API needs additional methods/attributes for image.save() to
really do anything useful.  The image type, quality, etc., don't seem to be
gettable/settable so the resulting image file may not be in the format the
user would like.
2006-07-18 21:02:15 +00:00
5e58b2762c Second part of bugfix #4715
Re-replaced glFinish back to glFlush, should fix display updates?
2006-07-18 16:49:33 +00:00
31870bf9a8 Bugfix #4715
After inserting border in entire image, the display update was missing.
2006-07-18 16:42:39 +00:00
afbe9a7e78 Silly crasher fix:
- set material to "use nodes"
- don't add a material-node yet, but set "Halo" on. Crash!

Added a missing NULL pointer check.
2006-07-18 09:56:14 +00:00
Ken Hughes
a33bd50108 ===Python API===
Bugfix #4690: BonesDict_repr() had a string overflow for really complicated
armatures.  Added a string length check and terminate before overflowing.
2006-07-14 14:48:45 +00:00
a7b3203e31 New Particle option for Fluids did not work on rendering animation yet.
N_T: the implementation of this feature isn't 100% nice, it currently does
a full recalc on each redraw, and it doesn't work properly unless it is
recalculated for each frame.
2006-07-14 13:44:23 +00:00
cb09f5cda8 == Frameserver ==
Serious bugfix: Make it work on windows (including ESC-Handling)
closes Bug #4477.
2006-07-14 13:32:29 +00:00
224987b0fc == Frameserver ==
(serious) bugfix: make escape handling work in frameserver.
2006-07-13 19:36:38 +00:00
11f70391d2 - fix for [ #4678 ] ALL Blender versions crashes when pasting empty windows clipboard!
quickly sneaked in last minute before release ;)
2006-07-13 17:13:31 +00:00
5ee3d1da10 The mother of all commits! Bumping version up to 2.42, and new splash. 2006-07-13 16:53:52 +00:00
7692b9f21f Bugfix #4687
Repeat Image texture was broken... the repeat value for Y was accidentally
multiplied twice, typo... had to change a 1 into 2 :)

Error introduced in 2.41 btw, 2.40 and older were OK.
2006-07-13 15:41:36 +00:00
ec9b952582 Bugfix #4683
Render non-osa, with mblur, did not jitter the zbuffering, so it did not
result in basic AA for non moving parts.

Note to self: this now works on < 2.42 level again: it doesn't use
the correct subsampling, which can cause slight errors in rendering image
textures.
2006-07-13 14:02:27 +00:00