Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
6f1c45ced4 Plumiferos bugreport:
Appending a Scene, which had group-objects, accidentally linked these
objects to the active scene too. This was a mixup with the case of just
appending a group.
2006-06-02 20:48:22 +00:00
Ken Hughes
d631abe4fe ===Python API===
Define macros for Py_RETURN_TRUE and Py_RETURN_FALSE (for Python 2.3).  Also
make Py_RETURN_NONE macro a little safer.  Current macro will not work as
expected in situations like below since it expands to two C statements:

	if( !attr )
		Py_RETURN_NONE;
2006-06-02 19:42:09 +00:00
Ton Roosendaal
d40c1fc203 Bugfix:
- OpenGL render didn't display the render buffer
- OpenGL anim render always exported to movie, now it supports formats like
  normal renders.
2006-06-02 17:45:49 +00:00
Ton Roosendaal
db0f3846a5 Disabled the combination of "Border render" and "Save buffers" for now.
The latter uses OpenEXR tile-based files, but the EXR spec doesn't allow
tiles to differ in size... limiting the amount of OK resolutions for
images.
2006-06-02 16:01:25 +00:00
Ton Roosendaal
aecb5b468a Bugfix #4257
The "Laplace" filter in Compositor didn't do what it should... which is
a mild edge detection, similar to Sobel etc.
2006-06-02 13:19:48 +00:00
Ton Roosendaal
69546bcf08 Bugfix #4259
Static particles, drawmode Shaded or Texture, colors for strands were wrong
2006-06-02 12:34:09 +00:00
Ton Roosendaal
703d4baadb Wrong return and else combo... gave gcc warning. 2006-06-02 10:55:21 +00:00
Alfredo de Greef
7df985be0a I'm not sure if I'm allowed to do this, but I'm hoping this is ok...
I have been able to compile blender on linux 64 without problems up to a
month ago, but a recent change is giving me problems, and probably others
as well (on linux 64 at least). But if not, this commit shouldn't change
anything.
The problem was an added pad variable to RenderData in DNA_scene_types.h,
in a somewhat problematic place, since it causes the compiler to pad the
struct at the 'ListBase layers' variable, a struct of two pointers,
which caused me all sorts of trouble, variables declared after this having
incorrect or incorrectly assigned values.
This commit fixes this.

In makesdna.c is a useful section which will write a c program called
'padding.c' which compares the actual size to the expected size, which
for the RenderData and Scene struct in this case had a difference of 8.
Also useful was the gcc -Wpadded warning flag.

Hopefully I don't get 'fired' for this... ;)
Now back to fixing the yafray bugs...
2006-06-02 03:39:03 +00:00
Ken Hughes
1d6e626073 ===Python API===
addProperty() and removeProperty() were each defined twice, because each
could be called with different inputs.  Hence only the second definition
was showing up in the documentation.  Both descriptions are merged now.
2006-06-01 18:27:57 +00:00
Matt Ebb
46927c0a57 * Whoops, committed something I shouldn't have in the last one. Reverting.
* Added 'Make Local' to the menus. Also a minor capitalisation tweak.
2006-06-01 09:03:43 +00:00
Matt Ebb
fd79bd2608 * Theeth must be busy so I removed the 'Steps' from the timeline and changed it
to a number field in scene buttons.
2006-06-01 08:54:45 +00:00
Tom Musgrove
bc263b1e84 ==render by parts==
made xparts and yparts consistent in the different places it can be set now python and the buttons are max 64 (was 512 in some python locations) and xparts is max 512 (was max 64 in some python locations), also made the minimum xparts and yparts 1 again.  Ed Halley suggests that we should up the max xparts to 1024 (instead of the current 512) for 'smoother panoramas'
2006-05-31 22:56:22 +00:00
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
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
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
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
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
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