Commit Graph

6975 Commits

Author SHA1 Message Date
Erwin Coumans
76d2d388f2 added rbRadius and rbHalfExtents members for python / rigid body access. rbRadius is read/write. rbHalfExtents is read-only (it is derived from the mesh) 2006-05-31 20:48:44 +00:00
Jiri Hnidek
41855c60cf Bugfix:
list of recent opened file is written to .Blog file, when it is necessary,
 list shouldn't hide now, ... I don't want to rewrite code after intrr
 anymore ;-)
2006-05-31 09:54:26 +00:00
Matt Ebb
90453ef98a * Added Mac OS X text editing shortcuts Command LeftArrow and Command RightArrow as equivalents for Home and End in Blender's text editor. 2006-05-31 04:24:03 +00:00
Campbell Barton
68ca6eac61 Bit the bullet and put a py2.3 blender on my system :/ ro fix http://projects.blender.org/tracker/index.php?func=detail&aid=3959&group_id=9&atid=125
py2.4 set issue with bevel_center.py (use dicts for now) - set's commented.
2006-05-31 04:03:50 +00:00
Geoffrey Bantle
94480594ab -> Fix for bug #4247
The mouse handling code for selecting/deselecting face/edge loops and edge
rings was causing single edges to be selected in face mode when face loop
select failed.
2006-05-31 02:21:08 +00:00
Geoffrey Bantle
a9ac112be6 -> Fix for bug #4162
Bug in buttons_editing.c meant that edge subdivide code was getting called
with wrong arguments when accessed via the edit buttons, but was called
correctly from wkey menu.

Also added Alexander's small fix so that beauty subdivide behaves correctly
when used on non-proportionally scaled objects.
2006-05-31 01:49:05 +00:00
Ton Roosendaal
1418cc4483 Compositor: Group nodes could free buffers internally while still in use
external. For example Blur and Translate nodes suffered it.

Makes Group Nodes a tinsy bit more stable now. :)
2006-05-30 17:47:34 +00:00
Jiri Hnidek
19c6ad7116 Bugfix:
Open recent should work correctly now, it uses ListBase to store list of
 recent opened (saved) blend files
2006-05-30 13:38:22 +00:00
Ken Hughes
263771fc1c ===Python API===
Removed "#if 0" conditionals of future code which were causing compiler
problems on some platforms.
2006-05-30 13:09:51 +00:00
Ton Roosendaal
7130ab3fe6 Bugfixes 4082 4112 4172 4232
Each report was about a different failure with Particles, all related to
weak handling of animation systems and the depsgraph.

Fix has 2 parts; depsgraph now signals "object recalc" to be for time
changes; this then is used to bypass particle-building (since that's baked).

Other part is better object caching while makig particles.
2006-05-30 12:43:06 +00:00
Campbell Barton
a7c61f96f6 Braught back saveRenderedImage now I have a clue about what it does.
Cleaned up functions and optimized loops, extra checks and better defaults.
2006-05-30 10:15:01 +00:00
Campbell Barton
4a0d703964 saveRenderedImage docs were a bit vague on the output path, took a look at teh source and docs updated. 2006-05-30 08:04:46 +00:00
Ton Roosendaal
5e96159677 bugfix #4251
Hotkey CTRL+ALT+G (manipulater translate) was overridden by group menu.
2006-05-30 07:55:33 +00:00
Ken Hughes
6747501cfe Bugfix #4224 fix:
If G.recent[0] was empty last wasn't initialized, resulting in a segfault.
While I was there, changed strcat() to strcpy() for Alexander :-)
2006-05-30 00:09:55 +00:00
Ton Roosendaal
9c4eaf326f Buffix #4124
Changing render settings with python while Anim render now updates display
for each frame. So you can animate render borders, or even save different
sized images.
2006-05-29 17:22:05 +00:00
Ken Hughes
a74472014d ===Python API===
Second pass at sceneRender.c / Scene.Render API clean-up.  Most of the remaining clean-up needs to wait for the API refactor, since the "good" attribute names are already used by methods.
2006-05-29 17:14:05 +00:00
Jiri Hnidek
a21f6abc47 Bugfix #4224:
Blender has Open recent submenu in main File menu, Open recent should
 work correctly now, I remove Reopen last item (I hope, that I didn't
 break anything), because it seems obsolete now
2006-05-29 15:30:43 +00:00
Ton Roosendaal
aa9589c925 Fix #4243
Code that checked if mesh has armature modifier was reading NULL pointer
(when modifier added without target, and facepaint started)
2006-05-29 13:59:18 +00:00
Ton Roosendaal
1495e7711b fix #4248
Render:
The "error no camera" was too strict, also popping up when only Composite
or Sequencer was meant to use.
2006-05-29 13:40:15 +00:00
Ton Roosendaal
2c7712dd84 Fix #4245
Old annoyance in Blender; zooming in very far makes scaling/rotate
around invisible pivot going bezerk. The easy fix was just enforcing
floats in integer math.
2006-05-29 13:01:51 +00:00
Ton Roosendaal
a416ec8978 Render window: Jkey (swap display buffers) works as 2.41 again. Meaning,
it keeps storing a previous buffer for as long you don't render showing
this previous buffer.
If you render showing the previous buffer, it stores the current render.

To make this more clear, the window title shows "previous" when it shows
the stored copy.
2006-05-29 08:40:01 +00:00
Geoffrey Bantle
6387c85557 -> UV Edge collapse
Added code to make 'Collapse Edges' handle UV's intelligently. This seems to work in just about every case that I can test, so it's turned on by default.

Also completely removed the 'collapse faces' command and code. I'm not sure what I was thinking with this in the first place since edge collapse does the same job while in in face mode. Because of this there is now just one single command that covers both situations called 'Collapse' which uses the edge collapse code.
2006-05-29 05:17:38 +00:00
Ken Hughes
d7a21ed220 ===Python API===
First pass at sceneRender.c / Scene.Render API clean-up.  Mainly implementing
attribute via tp_getset, but a few new features too.
2006-05-29 05:01:07 +00:00
Alfredo de Greef
649dcd94bb Yafray 'should' now work again. A bit more testing needed.
But seems to work sofar anyway, composit nodes should work as well.
2006-05-29 03:59:12 +00:00
Ken Hughes
7b1d6021a4 ===Python API===
Fix typo in Mesh.py epydoc.
2006-05-29 03:52:38 +00:00
Chris Burt
b3c1a72c34 Fixed height of two buttons.
(Test commit for my ssh keys and what-not)
2006-05-28 17:45:57 +00:00
Chris Burt
db8db2ee0c Additions to stubs.c to make blenderplayer compile.
I would appreciate if someone who knows more about this could check it.

Thanks!
2006-05-28 17:29:50 +00:00
Joilnen Leite
c4abb5e7ca a little clean of no used line
.
2006-05-28 17:17:18 +00:00
Peter Schlaile
82ffa15c28 ==Sequencer==
Bugfix: The "Convert to Premul"-Button was drawn twice for Images...
2006-05-28 12:33:41 +00:00
Ton Roosendaal
eda218ecb4 Step one in bringing back Yafray Render in Blender. Need someone else
to take over now, but I'm available for help. Main notes for completing:

- Yafray module uses old global R all over... is now a pointer handle.
  It can be temporally bypassed by straight copying, which I do now.

- I am not sure in what pixel format Yafray renders... Blender now only
  uses float buffers. In the code, marked with XXX I've added the
  rudimentary code for retrieving buffers.

- This integration will skip compositing when Yafray render is used.
2006-05-28 12:30:09 +00:00
Ton Roosendaal
2e901061d9 More render pipeline finishing up;
- Shaded drawmode is back (shift+z).
  Note it still only uses orco texture; but lighting/shading is using
  the internal render module entirely.

- "Make Sticky" option back.
  (Also fix in sticky texture render, was wrong scaled)
2006-05-28 11:49:22 +00:00
Campbell Barton
e7767e39bb saveRenderedImage is broken? - isnt working anymore for some resion. switched back to renderAnim.
More efficient texture usage, packer now rotates the convex hull of the UV's for each image to fit the most image into the smallest rectangle.
2006-05-28 10:48:50 +00:00
Campbell Barton
98b2e98c79 Added a 2d convex hull function to BPyMathutils
Added a 2D Line intersection function
Added a function to BPyMesh that gets the mesh space vertex location of a Faces UV Pixel.
2006-05-28 10:44:29 +00:00
Campbell Barton
e47719d253 comments on how edge weighting for collapsing works.
uv_auto_layout_tex now uses the recently fixed saveRenderedImage - I needed to make clean and make to get it working.
2006-05-28 02:12:49 +00:00
Campbell Barton
83105911bf Use Kens hide/sel mesh props to save some python looping. 2006-05-28 01:52:16 +00:00
Ken Hughes
8a8400ff28 ===Python API===
Added to Mesh API me.sel and me.hide, which set/clear the selection and
hidden values for all verts/edges/faces in a mesh.
2006-05-28 00:39:13 +00:00
Ken Hughes
6ebdfbfc85 ===Python API===
Fixed epydoc summaries for mesh.vert.index and mesh.vert.uvco so they say
something useful other than "(MVert Only)".
2006-05-27 23:31:13 +00:00
Ton Roosendaal
638bae4db4 Bugfix in last commit; preview renders didn't work render properly, parts
of tiles were black sometimes.
2006-05-27 17:05:03 +00:00
Ken Hughes
0fab573205 ===Python API===
Bugfix: epydocs for World API incorrectly described settings for getMode(),
setMode() methods.
2006-05-27 16:40:00 +00:00
Ken Hughes
755f5ce070 Fix spelling error in tooltop. 2006-05-27 15:54:17 +00:00
Campbell Barton
8baa88da9b Poly reduction fixes
Added remove doubles as a keyword option,
Fixed Triangulate (need to select the faces first)
Fixed boundry weighting (defaults reduced boundries first more then
non boundry verts!)
Made face area weighting give better results.
2006-05-27 14:27:52 +00:00
Ton Roosendaal
e5b39b69d1 So! Finally time to work on finishing render pipeline project.
This commit brings back:

- Field Render
- MBlur Render (old style)
- Border render with or without cropping

Note: Field Render is not supported in Compositor yet. Blurring or filter
will destroy field information.
Both MotionBlur as Field render are done before Compositing happens.

Fixes:

- The "Save Buffers" option only worked on single frame renders, not for
  Anim render.
- Found an un-initalized variable in Render initialize... this might have
  caused the unknown random crashes with render.

Code restructure:

Cleaned up names and calls throughout the pipeline, more clearly telling
what goes on in functions.
This is visible in the updated first image of the Wiki doc:
http://mediawiki.blender.org/index.php/BlenderDev/RenderPipeline
2006-05-27 13:35:03 +00:00
Joseph Gilbert
dee16b9e3d * bug fix
[ #4228 ] Blender.Image.Load(filename) loads only on the first loading
- Image.Load() will now reload the image buffer when a image of the same name is loaded again
- small textual change in render code
2006-05-26 15:28:04 +00:00
Tom Musgrove
222844b87c ==md2 export update==
[ #4237 ] MD2 export Light Normal is rotated incorrectly fixed by Bob Holcomb
2006-05-26 00:21:02 +00:00
Alexander Ewering
b4861110da Slight simplification of windowtype_pup()... 2006-05-25 22:00:12 +00:00
Joseph Gilbert
2132bbb621 *python fix
- save_rendered_image_cb_real has a popup window embedded in it that prevents automation through python as a result python scripts would get a popup which is ignorned by the script
- modified so python scripts overwrite the image by default
2006-05-25 21:34:00 +00:00
Joseph Gilbert
2a6952f386 - bug fix
* C uses braces unlike python :/
2006-05-25 21:13:13 +00:00
Joseph Gilbert
1b577b7f0d *python documention & bug fix
- added documentation to Render - saveRenderedImage has an option to save the zbuffer along with the image
(off by default)
- fixed a really annoying runtime error of uninitialized data being passed to a method in pipeline.c during a render
2006-05-25 21:10:28 +00:00
Joseph Gilbert
af87c651a5 *python fix
- fixed Render.saveRenderedImage() so now it works once again
(it was broken since render refactor)
2006-05-25 20:47:17 +00:00
Joseph Gilbert
d8d720ed3a * update for projectfiles vc7
- added python files
- fixed a small C coding error in vpaint preventing windows builds
2006-05-25 19:18:04 +00:00