Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
d5da8ea1c7 bugfix #5865
IpoWindow: panel properties didn't show the "Visible curves" box values
unless you clicked curve once.
2007-01-28 13:43:22 +00:00
Campbell Barton
5943ad8f65 update to the md2 importer.
* moved from NMesh to Mesh
* made newstyle classes (use less memory)
* optimized mesh creation
* Animation now imports and plays (Bugfix for 5834)
+ other small tweaks

Added mesh.key - was missing from docs
2007-01-28 12:33:04 +00:00
Ton Roosendaal
c7718d2bcd - bugfix in Sculpt (irc reported): using a Texture Brush, and then unlink
the texture (in texture buttons) crashed painting. Reason was reading
  a NULL pointer.

- fix for bufix: commit by Ken Hughes accidentally deleted a bugfix
  (yafray render doesn't support bake, and should return)

- tooltip fix
2007-01-28 12:20:07 +00:00
Ton Roosendaal
c45e057062 Plumiferos reported bug:
When weights in Meshes are extremely small (< 0.01) normalizing them
can give overflows, thanks to float precision limit.
This is still unsolved, but for now the limit had to be set smaller...
(reason is that Plumiferos uses mixed lattice and vertex-group deform)

Also: running Blender in debug (-d) will print subversion now.
2007-01-28 11:44:32 +00:00
Robert Holcomb
1aa0077ae0 reverting creator.c to previous version since my earlier commit updated it unintentially 2007-01-28 05:45:58 +00:00
Robert Holcomb
f306efab08 Added type checking to color space splitting nodes and hsv node. Will uncommit pipeline.c and creator.c since committed in error. 2007-01-28 05:34:17 +00:00
Campbell Barton
907d19b93d made Mesh.Get('foo') raise an error when foo dosnt exist rather then returning None (to work like other modules)
also update Metaball.Get() to be less messy - still functions the same.
2007-01-28 04:58:22 +00:00
Chris Burt
8b157988a0 ==Tooltip Adjustment==
Minor tweaks to a few of the material buttons tooltips.
2007-01-27 18:47:46 +00:00
Nicholas Bishop
5d4b81b688 == Retopo ==
Fixed bug #5829, Exiting editmode with TAB key toggles RETOPO

* Moved the retopo_mode setting to ToolSettings.
* Renamed the other retopo_mode to the (more accurate) retopo_paint_tool
2007-01-27 18:11:07 +00:00
Ben Batt
901313be99 Removed an unneeded struct declaration committed by mistake in joeedh's
Displace modifier fix.
2007-01-27 17:58:21 +00:00
Nicholas Bishop
3a60699429 == Multires ==
Fixed bug #5820, changing multires in edit mode turns the mesh black

* Added a call to recalc_editnormals when building an editmesh from a multires mesh.
2007-01-27 17:45:23 +00:00
Ben Batt
893e93bb5f Fix for a segfault in the new Displace modifier UV layer selection code:
If the "UV" texture coordinate option is selected while no UV layers exist,
the UV layer name in the modifier is blank. This is not a problem while no UV
layers exist, but if a UV layer is added the modifier code attempts to use
UV coordinates without handling the missing layer name correctly, leading to a
segfault. This only occurs when the modifier stack is recalculated before a
modifier UI redraw, as the UI redraw updates the layer name.

This fix handles a missing UV layer name by setting it to the active UV layer.
2007-01-27 13:33:56 +00:00
Ton Roosendaal
735b426344 Two fixes:
- when rendering a scene, all composite trees of other trees should get
  signalled the render output changed. This only happened with a composite
  active in render.

- the Mix node "A" option only works in Composite, as accidentally visible
  for shader trees.
2007-01-27 10:08:16 +00:00
Campbell Barton
8f075f9518 minor tweaks from testing scripts. correction in my last commit. 2007-01-27 04:58:09 +00:00
Campbell Barton
853785782e Updated docs not to use Object.New() in examples, use scn.objects.*
Bugfix from ZanQdo, MOT files wouldent load in lightwave. also made some minor improvements.
2007-01-27 02:15:14 +00:00
Nicholas Bishop
c7b50435da == Multires ==
* Switching levels in editmode should flush selection changes so that face selection is drawn correctly.
2007-01-26 23:35:37 +00:00
Joseph Eagar
4494b829b0 =Displace modifier fix=
This commit fixes displace modifier to propery support arbitrary uv
layers.  This seemed like a fairly big usability bug,
as displace modifiers would use the active UV layer (and thus could change when
you changed the active layer).  The modifier UI code now uses a menu for browsing
the uv layers, however only the uv layer name is actually stored, so that 
adding/deleting layers won't mess up displace modifiers.  

Whenever a displace modifier has an invalid UV name (for whatever reason) the 
UV name is set to the active layer.  This is checked both in the UI code and 
in the modifier exec code, so all bases are covered. For deleting a layer, this 
required upgrading the layer delete code in the UI to properly preserve the 
active layer, to prevent unwanted behaviour. I hope this is an ok solution.

Brecht, Ben you might want to look over and make sure I didn't break anything.  I don't
think I did, I tested as thouroughly as I could.
2007-01-26 21:06:49 +00:00
Ken Hughes
40d49dec02 Bugfix for render baking: preserve AO and Ray trace settings when doing
Ambient Occlusion, and check that world is enabled.
2007-01-26 20:35:57 +00:00
Ton Roosendaal
d1e40bc6be Bugfix (own collection)
Composite: some cases gave memory errors (not freed mem).
The code that tried to be smart in finding nodes to skip, caused that
stack buffers were not freed propertly.
2007-01-26 19:17:20 +00:00
Nicholas Bishop
1dbbbe4077 == Interface ==
* Cleaned up the sculpt and multires palettes a bit to make them work correctly with the Rounded theme.
* Moved the DelLower/DelHigher buttons above the Level slider; necessary for some reason to render the rounded corners correctly.

One error is still visible, the Size slider in the Sculpt palette has an incorrectly-rounded corner below the Airbrush button, no idea why.
2007-01-26 18:52:34 +00:00
Campbell Barton
d79669ad9e added edge split access to modifiers API
Also renamed Type to Types to match with the rest of the API. Type is still there but removed from docs.
2007-01-26 15:43:11 +00:00
Ton Roosendaal
064bcdbb31 Bugfix #5827
Preview render in buttons was not refreshed when changes in a material
happened, without preview visible. (like editbuttons, active mat index).

Now on re-entering material buttons, a re-render happens in these cases.
2007-01-26 15:34:32 +00:00
Joseph Eagar
ff78aacec8 =FSAA fix=
This commit gets rid of the #ifdef WIN32 I did for the FSAA code.
However it still manually defines the constant (if it's not already defined)
for FSAA, as I'm not sure which platforms have glext.h and I don't want to risk
breaking platforms before release.

Joe
2007-01-26 14:30:43 +00:00
Chris Burt
b8586ff39d Second part of blur-node fix to accept x and y offsets in images passed
from translate node. Once again courtesy of joeedh (Joe Eagar). Should be
noted that there are other nodes which seem not to respect these offsets
as well. Will investigate further.
2007-01-26 12:39:55 +00:00
Chris Burt
c1bf780dd7 joeedh (Joe Eagar) found a problem with blur node where image offsets
from translate node (and others I assume) were not preserved. I commit
because his node_composite.c is tainted with pynode stuff. Thanks Joe!
2007-01-26 00:24:49 +00:00
Joseph Eagar
61c8471ebd =FSAA fix=
This commit fixes problems with FSAA (full-screen video card antialiasing) with selection.
It turns off FSAA for the backbuffered select drawing function.

Since opengl's extension system is incomphrehensible to me (at least not without committing glew), I've
basically done a little hack that detects if the value we need for glDisable (MULTISAMPLE_ARB) is defined,
and if not defines it.  Also, this commit only works on windows, because glx sadly seems to not support
arb_multisample at all, and in all likelihood neither does osx.

Joe
2007-01-25 22:47:47 +00:00
Ton Roosendaal
497b028a33 Two fixes:
- Previous fix (commit today) for outliner-selecting and mode disabling
  forgot to do this for texture paint.

- outliner: theme color drawing for background was using char with overflow
  possibility.
2007-01-25 21:43:49 +00:00
Ton Roosendaal
8de165ff56 Bugfix #5832
Bake-render crashed when renderer was not "Intern".
2007-01-25 20:48:06 +00:00
Ken Hughes
148a74988e Python API
----------
Replacing locally-declared function prototype with included one.
2007-01-25 19:31:39 +00:00
Ton Roosendaal
13ac854e62 Bugfix #5796
Selecting objects using Outliner should also end modes, especially when not
provided (like sculpt mode on lamps).
2007-01-25 16:54:59 +00:00
Kent Mein
6446c23447 Needed an extra header to find offsetof
Kent
2007-01-25 16:21:11 +00:00
Joseph Gilbert
ea8189389c Bug fix for:
[ #5000 ] Changin EditMode in Script wrecks memory

Armatures create weakreferences in __main__.__dict__.  When Window.Editmode is called, the weaklist it iterated over and armatures are updated.
2007-01-25 15:19:28 +00:00
Ton Roosendaal
8c2af0a5d0 Fix for patch provided bt Diego, one NULL check too many! 2007-01-25 14:49:28 +00:00
Kent Mein
d7de954b1e A couple of null checkes needed, patch provided by Diego Borghetti of
Plumiferos

patch tracker:
https://projects.blender.org/tracker/index.php?func=detail&aid=5825&group_id=9&atid=127

Kent
2007-01-25 14:02:51 +00:00
Ton Roosendaal
d473b4b17d Plumiferos-reported Proxy bug:
Appending a scene (i.e. "make local") didn't set the correct library
tag in linked proxy. That caused file saving to ignore the proxy object.
2007-01-25 11:59:29 +00:00
Ton Roosendaal
84b8e5b97b IRC reported bug: sometimes menu entries showed a name like "%l", caused
by imporper handling of separators in menus.
2007-01-24 20:51:33 +00:00
Ton Roosendaal
18fc6ca762 Small tweak in clipping code for irregular shadow buffers 2007-01-24 16:10:37 +00:00
Ton Roosendaal
06826d27d4 Bugfix #5818
OpenEXR MultiLayer: line order DECREASING_Y (openexr spec) crashes newer
openexr libs in windows... ???
Removed it, since tests reveiled the line order is still bottom-top
2007-01-24 15:03:20 +00:00
Ton Roosendaal
4175460d85 Bugfix #5816
Render pipeline: setting option "Single layer render" and having the active
layer disabled, crashed blender. It's a non-option anyway, so on a single
layer render, that layer is enabled by default now.
2007-01-24 09:13:40 +00:00
Nathan Letwory
bb0dc4ffc9 * remove HAVE_CONFIG_H stuffy. Like... what? 2007-01-24 05:06:32 +00:00
Nathan Letwory
1d2a1da763 * add proper header for chdir(). 2007-01-24 05:04:48 +00:00
Nathan Letwory
35bb9dff1d * remove warning about add_only_object 2007-01-24 04:44:49 +00:00
Matt Ebb
6b179bc2e0 Simple fix for [ #5808 ] Z Combine node accepts only one Z output 2007-01-24 02:37:35 +00:00
Nicholas Bishop
28e049cb3e == Multires ==
Fixed bug #5799, Multires mesh modifications get reset by rendering

This bug can cause some nasty data loss (was introduces with my commit for using orco with multires.) Fixed by making sure to do multires_update_levels before applying modifiers.
2007-01-24 01:34:05 +00:00
Andrea Weikert
20940c562d === BUGFIX ===
[ #5802 ] Blender crash when trying "Append or Link" with long directory names
- was copying bytes past the end of allocated string
2007-01-23 20:41:43 +00:00
Chris Want
2cd4fca2ef I need to use the 64-bit Linux blender, but I don't want to accidentally
commit creator.c, so if this file is compiled and the macro YESIAMSTUPID
is defined, the executable will run, with a mean warning printed to stdout.
Enable in cmake by setting YESIAMSTUPID to On, or with make by putting
"export NAN_YESIAMSTUPID=true" in user-def.mk.
2007-01-23 20:08:23 +00:00
Campbell Barton
702defaa81 use add_only_object to add a new object with defailts. 2007-01-23 16:51:14 +00:00
Martin Poirier
5ab2f9f51d === Transform ===
Make manipulator compatible with snapping. At first, I thought this would have been a bad idea, but after talking to some people, it seem more confusing than not to have it act differently, so I'm bringing it in line.
2007-01-23 15:39:35 +00:00
Jiri Hnidek
46d7b91be0 == Verse Bug Fix ==
- several checks for NULL pointer
2007-01-23 14:19:28 +00:00
Charlie Carley
56a4f529fd Two errors caused by previous commit;
One related to extension handling on Linux, the other is a fix for compiling with Irix and STL
2007-01-23 13:25:20 +00:00