Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
dcbcc12582 NULL check needed for RE_vertren_get_rad() when going over radio results...
Thanks Auralis for finding it!
2006-06-18 19:11:52 +00:00
Willian Padovani Germano
2ca99a5e09 Scripts:
- Jean-Michel Soler updated the svg to obj module used by Paths
Importer (thanks!)
- user request: added option to control whether user prefers per face
(uv face select "TwoSided" toggle) or per mesh ("Double Sided") single /
double face info in ac3d exporter.

BPY:
- Blender_ShowHelp() was now crashing Blender when called for the
second time, due to EXPP_dict_set_item_str decrementing the reference
count of an object passed as argument to Blender_ShowHelp() (so not
owned by that function).
2006-06-18 19:05:51 +00:00
Ton Roosendaal
29b78eba6f Fix #4352
Sequencer render bug: if you use the same Scene as current Scene as a strip
(yes yes!) then ANIM didn't work. Render single frame worked.
2006-06-18 13:36:24 +00:00
Ton Roosendaal
2a67e98359 Bugfix #4352
More Sequence render fixes:

- on load of .blend file, with Sequencer invoking a sequence render, the
  header window matrix was not set, giving "Insane icon" prints
- option "Do Sequence" had no re-display call in end
2006-06-18 12:27:06 +00:00
Ton Roosendaal
94e23fe939 Bugfix #4351
ESC wasn't supported for sequence-based rendering yet.
Solved it with correctly initializing the sequence render with all
render callbacks, including render updates (which it didn't do yet).

Cleanup:

- Bug in ghostwinlay code: the get_mbut() function reads from the window
  struct if a mouse is pressed. However, when you press the mouse in the
  sequencer, which causes a render, this value was hanging because then
  the active window was a render window.

- The new render display options (image window) didn't work for sequence
  render OK. There was a recursion even, because a sequence draw command
  calls a render, which in turn now calls redraws.
2006-06-18 11:38:34 +00:00
Ton Roosendaal
7784ea53bf Also for new 'to image window' rendering, drawing of float buffers while
rendering now is full 32 bits. This gives drawing issues in some cards,
like ATIs.

Copied the function used for renderwindow to glutil.c, and used now in the
image window.
2006-06-17 17:07:49 +00:00
Ton Roosendaal
e7af9c4839 Bug #4348
Animated groups, being linked and dupli-grouped in other file, didn't
correctly calculate particles inside the group.
2006-06-17 15:14:43 +00:00
Ken Hughes
f478c9eca3 ===Python API===
Bugfix #4347: deleting vertex 0 incorrectly deleted all triangle face, since
check for v4==0 wasn't being done.
2006-06-17 14:08:15 +00:00
Erwin Coumans
9b79c57f38 fixed Bullet bug: constraints didn't merge simulation islands. 2006-06-17 13:55:59 +00:00
Ton Roosendaal
19832a0639 Solved bad design decision in Node Editor:
The buttons uiBlock was stored in a Node, for retrieval of node buttons,
however that won't work when multiple windows show same Nodes.
Now implemented more correct unique Block names (as all over in UI), and
use that name to retrieve buttons with API call uiGetBlock().
2006-06-17 13:04:09 +00:00
Ton Roosendaal
b159b27329 Bugfix 4346
Node Shaders: the code checking for all required texture coordinates did
not test Groups inside a tree, so textures didn't render properly always.
2006-06-17 12:26:28 +00:00
Ton Roosendaal
16bce562d0 Fix for Compositor, Image node: reads now from Movie files as well.
(support was there already halfway, needed to add button and an anim check)
2006-06-17 11:40:50 +00:00
Ton Roosendaal
4e078c1a73 Bugfix in the patching for Stucci texture: the version code assumed that
the MTex (mapping for texture) always had a texture... which should be
tested of course. My bad!

(Thanks Plumi studio for report!)
2006-06-17 10:34:05 +00:00
Ton Roosendaal
5a4dc67281 Cleanup of UI for new renderpipeline
- removed "Unified" button, replaced with "HD" preset for 1920x1080 output
- removed the unused "Pass" options
- removed the unused "Strands" render-layer option

Because the internal render pipe supports this already; added two more
render-layer options:

- "Sky", to enable/disable sky render in a layer (this was part of "Solid"
  before, not so correct... to ensure previously saved files work, the
  "Sky" option is set by default when "Solid" was set. The version patching
  will do this temporally always, until we've bumped up version to 2.42
- "Edge", to enable/disable edge render in a layer. Nice for compositing.

Also in this commit: fixed warnings for exported functions for the new
Node Editor pull-down menus.
2006-06-17 10:25:07 +00:00
Kent Mein
8918232465 This is a modified version of patch #4200
http://projects.blender.org/tracker/index.php?func=detail&aid=4200&group_id=9&atid=127

It adds platform depenant prefix to function calls
(extern on non windows platforms more complicated on windows)
So that windows plugins can reference functions inside of blender.

there is a small TODO still...
Make release should build the helper library required under windows and modify
how they build the plugins:
dlltool --input-def plugin.DEF --output-lib libblenerplugin.a --dllname blender.exe
and the pulgins should be made with:
gcc -c (pluginname).c
gcc -shared -o (pluginname).dll (pluginname).o libblenderplugin.a

Kent
2006-06-16 20:00:00 +00:00
Ton Roosendaal
3593d0684a Plumiferos fix-fix :)
Code to allow "Env" material to mask out ztransp gave bad AA on edges of
solid faces, when transparant was behind it.

Recoded "Env" to use index -1 in the polygon index buffer, and restored
code that caused the bad AA.
2006-06-16 19:16:27 +00:00
Chris Want
f642d54c18 When ffmpeg format is selected, make 'Video' and 'Audio' panels
as tabs of the format panel (was annoying how the format panel
would jump far to the right after selecting format' Thanks ao2
for noticing.

Note: as self-appointed code weenie, I should point out that the
ffmpeg code has a lot of tab/space indenting mixed in nasty
ways -- this should be fixed.
2006-06-16 15:43:50 +00:00
Ton Roosendaal
7aeba4fd0f Preview Texture for Stucci works again.
NOTE: stucci didn't return 'intensity' since blender 1.0, something that
alsways caused headaches all over (all other textures do per definition).
But, allowing stucci to return 'intensity' would break old files.

To make it work for preview, I had to solve this once. Done with a version
patch, so old files (including current 2.41!) won't read with color channel
active for Stucci textures.

(Preview.blend I saved as a 2.42 file btw!)
2006-06-16 15:31:32 +00:00
Ken Hughes
8400859f64 ===Python API===
Change to displayMode attribute to support the new render window options, and
correct description in the documentation.
2006-06-16 14:40:26 +00:00
Ton Roosendaal
f29e554214 This prevents to assign the built-in Images "Render Result" or "Compositor"
as texture to UV Face. Crashes in render, because memory then is undefined.
2006-06-16 13:58:45 +00:00
Ton Roosendaal
3356c4ba2f The new "transmissivity" option for ray-transparent now can be controlled.
By default it is disabled (depth 0.0), so rendering is as usual.

The meaning of "depth" and "falloff" will be extensively shown in the
release log pages. Coming soon!

(Patch provided by Ed Halley)
2006-06-16 13:11:21 +00:00
Ton Roosendaal
a33798d697 Bugfix #4341
The code added to ensure Image textures in nodes use the correct mapping
settings (UV, repeat, etc) crashed when editing non-osa cases.
2006-06-16 12:33:35 +00:00
Ton Roosendaal
333eae5b03 Bugfix #4343
The (SHIFT+F4) databrowser showed the library file (added some months
ago) which didn't work for extremely long directory names well.
I've recoded it, so it now only shows the .blend name, not entire path.
2006-06-16 12:17:35 +00:00
Ton Roosendaal
21c90425c0 Silly screens code in Blender... trying to cleanup stuff only breaks other
things! :)

Anyhoo, commits yesterday for preview panel fixes in Compositor broke the
new fullscreen render output feature. The damn curarea again yes!
2006-06-16 10:17:56 +00:00
Ton Roosendaal
e7b0f1f071 Bugfix #4332
Pressing ALT+W (save videoscape) in editmode gave error menu, but then the
Specials menu. Had to add a 'return 0'. Year zero bug...
2006-06-16 09:28:51 +00:00
Matt Ebb
cf9e420ad3 * Added header pulldown menus for the Node Editor. Also tweaked colours and some
of the menu organisation, consolidating the redundant 'Generators' with 'Input'.
2006-06-16 04:32:39 +00:00
Andrea Weikert
f4b4a2bb50 bugfix for overwriting memory when copying library name into too short char[] 2006-06-15 19:29:25 +00:00
Ton Roosendaal
0b8cfd4042 Undo pushes for buttons could get cancelled out with a call to read the
queue 'external'. Happened for example in Node editor.
2006-06-15 17:25:10 +00:00
Matt Ebb
d5b3e75652 * Added a better mouse pointer for the eyedropper tool (thanks Bart) and also
some 2d scroll pointers
2006-06-15 14:22:59 +00:00
Ton Roosendaal
006800cd09 Halos rendered with 'line' option could deliver overflow alpha values,
needs to be clipped.
2006-06-15 13:00:28 +00:00
Andrea Weikert
ba5880aa73 === preview icons ===
- changed preview type of halo materials
- halo materials are also shown with alpha=255 like in preview window
2006-06-15 11:23:51 +00:00
Ton Roosendaal
680eed3758 Background rendering didn't work anymore!
- STUPID mistake from me in setting the waitcursor...
- icons for UI got freed, without checking if it existed (crash in end)
- call to close mainwindow didn't check if window existed

note:
I usually test the "blender -b" case, which should start blender,
initialize all, free all, and print "blender quit" to signal all is fine.
2006-06-15 11:15:25 +00:00
Ton Roosendaal
ecb204fa7c Bugfix #4338
When Edge render was choosen, the zbuffer values were altered, causing a
halo render to go wrong.
2006-06-15 10:10:27 +00:00
Ton Roosendaal
6deb0cf41a Small fixes in 3d window preview render, discovered while making regression
files for it :)

- on load, the rendering was done twice
- changing area size didn't correct the render
2006-06-15 09:44:52 +00:00
Jiri Hnidek
d3a5f98823 Bug fix, reported by lukep at mailing list. Blender doesn't craash, when
metaball is selected. Wrong recreating of existing Bounding box was reason
 of crashes.
2006-06-15 09:35:09 +00:00
Chris Want
ed00ef33c4 Changed some references to 'size' to now refer to 'scale'. If anybody
sees a reference to size, as it pertains to a 3D object, please let
me know.
2006-06-15 04:13:26 +00:00
Campbell Barton
d0fb19bbe5 Fixed a bug where the start of the wave was not drawn, also added verbose commenting and cleaned up the wave allignment. 2006-06-15 01:19:10 +00:00
Willian Padovani Germano
0604c3a4ec BUG #4323:
Help->System->Benchmark (the Tkey benchmark) returned timings  even if
user cancelled the pupmenu. Was just missing a check
for -1 in toets.c -- wonder how old this one was... Reported by Wim Van
Hoydonck.

Scripts:
- Updated Jean-Michel's hotkeys script for Blender 2.42.
- Followed Pieter Visser's suggestion and added version info to the menu
names of the older collada scripts (v1.3.1).

Thanks guys!

Note for builders: nevermind if you already compiled 2.42RC1, these
updates are not critical at all and can be left for the release or RC2.
2006-06-14 21:04:53 +00:00
Erwin Coumans
1d44ad8b4c renamed 'Size' to Radius in the logic buttons (This naming was confusing, as the 'size' was only used as 'radius' for a rigid body with 'sphere' shapel. It has no effect on box, convex, cylinder and other shapes.
Don't worry, this is unrelated to recent Size -> Scale renaming.
2006-06-14 21:02:03 +00:00
Jean-Luc Peurière
b535b671b3 interim fix for the low end integrated intel graphic cards
until a better solution is found
2006-06-14 18:04:57 +00:00
Ton Roosendaal
c0c7c4ba14 Fixes for preview render in buttons:
- restored type choice compatiblity (plane, sphere, cube)  with 2.41   release (sorry, will break saved files with CVS... my fault, should
  have known.)

- removed lamp choices (lights now are different per preview, no fixed
  choices).

- added checkered plane behind the plane preview. nicer for halos.
2006-06-14 18:04:26 +00:00
Ton Roosendaal
6388715b43 Endian fix for drawing alpha in images. 2006-06-14 16:02:11 +00:00
Ton Roosendaal
acd56a193b Bug fix:
Files saved with new cloth modifier patch crash in cvs blender. (#define
for cloth is 13 even!). This was caused by lack of upward compatibility
for non existing modifiers.

Also added giant warning in code for the ENUM for modifier types.
2006-06-14 13:25:01 +00:00
Ton Roosendaal
b81e5bac74 Bugfix #4135
Mixdown option (blending sequence audio strips) didn't write proper WAV.
- file length in header chunk was too short (potential crasher)
- endian switch code used swab(), which wasn't defined to work when src and
  target is identical
- cleaned up some code too... like removing timecursor() for core loop.
2006-06-14 12:42:23 +00:00
Ton Roosendaal
8988a0de38 Bugfix #4329
New "Dimension" button: when using TAB to cycle over buttons, the dimension
event was sent multiple times, accumulating scaling. The code was also not
prepared to handle multiple changes at one event.

Also: added object_get_boundbox(Object *ob) in BKE_object.h, so the code
now really supports most primitives in Blender.
2006-06-14 08:50:41 +00:00
Ken Hughes
4ed583ea8a ===Python API===
Moved .up() and .down() methods from Constraint API to Constraint sequence
API (also renamed them to moveUp() and moveDown() ).  Again, methods which
modify the "parent" structure didn't seem consistent.
2006-06-14 05:16:39 +00:00
Ken Hughes
da33f51b76 ===Python API===
Moved .up() and .down() methods from Modifier API to Modifier sequence
API (also renamed them to moveUp() and moveDown() ).  Locating methods
which modify the "parent" structure in objects didn't seem consistent.
2006-06-14 04:41:31 +00:00
Ton Roosendaal
090678de66 Bug 4313
Particles: option "even" failed when faces where all exactly same sized,
then it sometimes skipped entire faces.

Just the regular <1.0 that had to be <=1.0
2006-06-13 20:33:45 +00:00
Ton Roosendaal
bbc6468b34 Restored the pretty lousy but still popular stars render in blender.
Hope our sky guru can come with something cooler for next release!
2006-06-13 20:00:14 +00:00
Ton Roosendaal
adff7aacad bugfix 4324
Old issue... Blender saves jpg RGBA files. That's unsupported in all
programs except Blender, always a source of problems with that feature.

Now it just falls back to saving 24 bits when the "RGBA" option is set.
2006-06-13 18:51:52 +00:00