Commit Graph

4264 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Ton Roosendaal
39d1d30350 Bugfix #5786
Shaded drawmode, objects with negative scale, did not draw correct.
Error already since 2.37 (commit of may 2005)
2007-01-23 10:03:45 +00:00
Matt Ebb
5dd1a39288 == Interface ==
Added new icons by 'jendrzych' for sculpt mode and transform snapping. I'll be
doing a lot more on this in the next release cycle, but I'm bringing these icons
over now since they're new features and we don't really have any icons for them
at the present.
2007-01-22 22:26:03 +00:00
Ton Roosendaal
a0cd868f14 Bugfix #5784
Buttons: Missing linked-library lock reset in code could invoke error menu

Bugfix #5770

Renamed option "Clear Pose" to "Clear User Transform" to indicate that this
differs from rest-pose. This option clears all Pose channel transforms, but
leaves Action values in pose unchanged. Means that when you do this, an
'insert key' won't change the animation.

Own fix:

Missing test for NULL pointer could crash Image Properties panel for linked
Image data.
2007-01-22 12:21:41 +00:00
Nicholas Bishop
d58cc7b9e6 == Multires ==
Partial fix for bug #5771, Multires tool deletes crease flags on edges

* Modified the edge flags code to support all of the edge flags (not just seams.)
* Added a new array to the Multires struct to store creases.
* For Mark Sharp, Clear Sharp, and Crease, displays an error if applied to a multires mesh not on level 1.
2007-01-22 08:34:53 +00:00
Brecht Van Lommel
da84ec90ae Fix for bug #5770:
"Clear Pose" in the Pose menu acted as "Clear Position", had wrong
event number.
2007-01-22 04:30:22 +00:00
Brecht Van Lommel
9ba6bd556f Fix for bug #5778:
Crash entering faceselect mode in shaded mode.

The cause here is the new system that only preserves data through the
modifier stack as needed. The DerivedMesh and shaded colors could get
freed while still being used elsewhere.
2007-01-22 03:57:41 +00:00
Nicholas Bishop
9692614bd8 == Multires ==
Fixed part 2 of bug #5749, Modifier redraw problems?

* Added an object flush after changing the Edge level on a multires mesh so the edges update when a Subsurf modifier is active.
  Note that "Optimal Draw" must be turned on in the Subsurf options, otherwise it draws all edges.
2007-01-22 01:33:18 +00:00
Nicholas Bishop
c82c2419e2 == Retopo ==
Fixed bug #5774, retopo - when using retopoall should give visual hint of what viewport is used for retopo

* Added a call to select_area so that clicking Retopo All will offer the user a choice of what viewport to use.
2007-01-22 01:17:17 +00:00
Nicholas Bishop
26e787dc9f == Retopo ==
Fixed bug #5773, retopo - if in wireframe mode should give an error/warning

* Show error message for Retopo All button if view is in wireframe mode
* When toggling view shading, update view depth data if shading isn't set to wireframe
2007-01-22 00:48:53 +00:00
Nicholas Bishop
fef73f2b92 == Retopo ==
Fixed bug #5776, retopo - Retopo doesn't work with bezier curves

* Added check for 2D curves, since those obviously can't be wrapped onto a 3D surface
* Added check for bezier curves, those get processed in the same way as other curves now
* Added an object flush so that curves get redrawn properly after "Retopo All" is used
* Added retopo paint tooltip from ideasman
2007-01-22 00:30:00 +00:00
Nicholas Bishop
a9cd5b808c = Multires =
Fixed bug #5756, Rendering artifacts when MRM is not set to maximum

Several changes were made:
* Added function multires_level_n to get the nth level from a multires mesh
* Removed the changes I made some time ago to init_render_mesh for multires meshes. Previously it was making a full copy of the mesh object in order to be able to apply deformations to the Pin level and propagate them to the Render level.
* Added two functions to DerivedMesh.c, multires_render_pin and multires_render_final. These two functions work together in the mesh_create_derived_*_render functions to apply all modifiers to the Pin level, then create the DerivedMesh from the Render level, and lastly restore the mesh to its original (undeformed) state.
* Added a check in multires_del_lower and multires_del_higher to ensure that level indices are properly clipped to the actual range of available levels.
2007-01-21 23:46:00 +00:00
Joseph Eagar
a38c82c614 =Fesh FKEY fix=
FKEY wasn't calling recalc_editnormals(); this could result in
bad vert normals when adding new faces.
2007-01-21 16:44:49 +00:00
Ton Roosendaal
abdc138acc Bugfix #5734
Inserting keys (using Ikey in 3d window) could crash if you have objects
selected, but no active.
2007-01-21 13:03:46 +00:00
Joshua Leung
1e4bec7a33 == Action Editor Bugfix ==
DeltaX value now displays correctly when grabbing and snap-to-framestep
is on.
2007-01-21 05:11:46 +00:00
Brecht Van Lommel
c0b4d42a53 Attempted fix for bug #5584:
Image painting: in Windows the first pressure value can be too high for
some tablets. Now it ignores that first value if it is >= 0.99. I'm not
sure if this is always the case here, so needs further testing.
2007-01-20 15:13:35 +00:00
Andrea Weikert
38375784df [ #4786 ] if space in the Application path name, system() doesn't work on some platforms
commited temporary fix: executable name is quoted for all platforms except Windows now,
nicely wrapped in #ifdefs. Will be doing nice wrapper function BLI_system for system calls in blenlib
after release.
Please test on all platforms!
2007-01-20 08:01:56 +00:00
Ton Roosendaal
4e03e83a53 Bugfix #5664
Report had a very strange crash, which in the end appeared to be using
a filename of 165 chars long. This gave two bugs;

- the readBlog() function failed on that
- even worse: the struct Global still stored it in G.sce with 160 chars!

This is definitely an important issue... and (for the devs reading the
64 bits discussion) really not something allmighty coders are needed for!
:)
2007-01-19 20:33:00 +00:00
Ken Hughes
727ef00b6b Bugfix for #5487 again:
glDrawArrays() also crashing for some line strips, so replaced with
regular glBegin() and glEnd().
2007-01-19 16:20:58 +00:00
Ton Roosendaal
2022c41d6a Bugfix #5750
<sob>the 'time cursor' for bake-render has to go... it is being called
inside of a thread (even whilst thread is mutex locked), but that's not
supported in X11. It might be even instable in OSX/Windows even...

Only way to bring it back is to have the main loop (not in thread) update
the time cursor like each second. Would still mean to add a counter var...
will think it over. First want to have confirmed this is stable.
2007-01-19 13:32:43 +00:00
Ton Roosendaal
d2fd630e0a Bugfix #5748
Composite: when using multiple scene render-nodes, and one of these
scenes got re-rendered (by making scene active temporary), the composite
cache should free the used buffers.

Now, on each render, all scenes in a Blender project are being checked.
2007-01-19 12:43:02 +00:00
Joseph Eagar
048c7879fa =Forward cycling fix=
Commit of patch #5385, to make forward cycling more
user-controllable.  Previously it only worked on one axis,
which was auto-detected from movement.  This allows forward
cycling to work in more situations, such as stair
stepping.
2007-01-19 10:05:17 +00:00
Joshua Leung
6dd01e80c9 This commit fixes the compiler warning from a previous commit (to move visual
keyframing backend stuff to a better place in code).
2007-01-19 07:32:40 +00:00
Nicholas Bishop
a78683f08e Partial fix for bug #5749, Modifier redraw problems. The mesh wasn't being flushed properly to show updates when auto creating faces; also added missing undo push and view refresh. 2007-01-19 01:32:47 +00:00
Ton Roosendaal
719964ea8e Bugfix, irc reported
Node shaders, Texture Node, without input connected it did not default to
use "orco" anymore. Was caused by commits that cleaned up render code.
2007-01-18 20:06:48 +00:00
Peter Schlaile
a1cb195343 == Sequencer ==
Fixes bug #5494 reported by Wiebe (halfgaar):
After duplicate, last_seq wasn't correctly updated.
2007-01-18 18:47:06 +00:00
Ton Roosendaal
1ff93c41f9 Bugfix #5394
Option "Apply Modifier" did not work for meshes with shape keys. Even made
a very bad mess of the Mesh. Added warning in code and prevented apply.
2007-01-18 16:14:37 +00:00
Ton Roosendaal
425bada3a1 Bugfix #5741
Displace modifier now increases user count for Texture it links with.

Note: user counters for objects should not be increased. This is handled
differently (delete object = clear modifiers)
2007-01-18 10:33:47 +00:00
Nicholas Bishop
21f431047f Fixed bug #5742, Crash on sculpt mode. This bug was triggered when adding a new object while already in sculpt mode. Sculpt mode wasn't being deactived on cameras, lamps, etc. Fixed in add_object_draw() by turning off G_SCULPTMODE, also by adding a check in sculpt_init_session() to be sure any previous session is free'd before making a new one. 2007-01-18 07:04:08 +00:00
Nicholas Bishop
33e4391136 Bugfix for retopo paint: deleting a line didn't do an undo push. 2007-01-18 04:08:01 +00:00
Kent Mein
fc633e46c5 in seqeffects.c I removed and extra ; and then did a lot of formatting
fixes.

gamma.c made it return B_PLUGIN_VERSION instead of a hard coded 4.
I haven't had time to look at the other plugins but I'm guessing
the deal was B_PLUGIN_VERSION was still 3 and gamma.c was float aware
so it was bummped to 4.  Now that B_PLUGIN_VERSION is 5 I'm guessing
the other plugins need to be updated so they are at level 5 as well.
(float aware)  I'm going to work on it later today.  At home with a
sick kid.  This is all in reference to bug #5692

Kent
2007-01-17 14:10:02 +00:00
Campbell Barton
f7522a5d77 button alignment for logic buttons 2007-01-17 12:40:40 +00:00