Commit Graph

1446 Commits

Author SHA1 Message Date
Brecht Van Lommel
25f7d6693f Fix for a potential crasher bug in the textured brush code, as found
by Andrea (thanks!). This code is known to run OK in the release builds
though, so not that big a deal.
2007-02-19 16:25:44 +00:00
Matt Ebb
7d40bc5ed6 Simple Fix: Compo AlphaOver Fac socket and Texture node sockets
accepted more than 1 input.
2007-02-15 12:01:41 +00:00
Ton Roosendaal
59548a7a74 Bugfix #6042
Shadeless material did not show correct in Shade View3D (Shift+z).
2007-02-14 14:42:48 +00:00
Ed Halley
5f3348f0ec Incorrect default value for new materials' transmissivity. Default value
should match "classic" non-transmissivity materials.
2007-02-11 14:59:01 +00:00
Brecht Van Lommel
8e837d6f86 Fix for bug #5980:
Baked textures not updating in the 3D view. This bug was a side
effect of the image not being marked as loaded after changing
parameters (uv test grid, size) of a generated type image.
2007-02-10 16:59:20 +00:00
Ton Roosendaal
a6cbfb617f Bugfix:
Sculpt Multires render: the Orco table should be made based on 'render'
level, not on '3d view' level. Now, how this could have worked even...

Nick, could you check?
2007-02-09 15:09:55 +00:00
Brecht Van Lommel
ac6e958e8e Bugfix: texture paint brushes didn't work correct with multiple
texture channels.
2007-02-09 15:08:53 +00:00
Robert Holcomb
daf867ca6d chagned tanf to tan because of guidance received on IRC. 2007-02-07 23:43:08 +00:00
Robert Holcomb
9e83e0edd2 Fixed chroma key to use tanf instead of tan (float vs double). Fixed input/output checking to prevent running the node if nothing is connected. Drawnode.c in error. will fix in a second. 2007-02-07 18:24:51 +00:00
Brecht Van Lommel
cc93c03cbb Bugfix for reading DXF files, custom data layer wasn't always
added properly.
2007-02-07 10:56:44 +00:00
Robert Holcomb
00cdff156f When converting a VAL buffer to RGBA the alpha is also set to the value in the VAL buffer. This should be set to 1.0f as in the other conversions or it results in an unevenly transparent buffer. Corrected to result in an opaque buffer.
BKE_node.h commit is in error, but harmless (oops).
2007-02-07 03:40:59 +00:00
Alfredo de Greef
75b32a6f54 fixed bug #5921, artifacts when image input used instead of zbuffer. 2007-02-06 05:34:00 +00:00
Joshua Leung
4d5bd6872b Bugfix #5833:
When rotating bones around the 3d-cursor in posemode with a rotated
armature, rotation was around strange points other than the cursor.

This bug has been around for quite a few releases now. Somehow, the
maths used to convert the world/global space locations to local locations
only worked on things in editmode, but not bones.
2007-02-05 01:28:14 +00:00
Brecht Van Lommel
38d71bded6 Bugfix for a memory leak in the modifier stack. 2007-02-03 14:46:30 +00:00
Kent Mein
b966a7024c Bug fix for #5903
provied by paprmh.

Kent
2007-02-01 20:38:37 +00:00
Ton Roosendaal
7e9f86bbf0 Bugfix #5894
Composite, Time Node did not clamp output between 0-1.
2007-02-01 10:04:10 +00:00
Robert Holcomb
5b94899df8 Forgot to typcheck the copied buffer in the seperate nodes. Now (not that it
makes sense to me) you can seperate in a value buffer in all the different color
spaces.
2007-02-01 00:42:59 +00:00
Robert Holcomb
2014462af0 seperate HSV, YUV, and YCC all converted colorspace on the original image
buffer if it was an RGBA type.  This caused buffer corruption in the original buffer
which would be colorspace converted again (for each render).  Corrected by duplicating
buffer.
2007-02-01 00:09:21 +00:00
Ton Roosendaal
9eb240282b Bugfix, report from studio Manos;
This tweaks the dependency rules for Scenes/Objects a bit. Here is the
rule:

- Each Scene has own dependency graph, and only solves dependencies for
  objects in the scene

- However, when using multiple linked Scene-sets, the *current* scene is
  allowed to have dependencies to objects in a 'set'.
  This works by first calculating the sets, then the current scene.

Example: the current scene can have lights with a track/location
constraint to a character in a set.
2007-01-31 10:59:39 +00:00
Ton Roosendaal
478f229541 Patch / Bugfix #5876
Composite: Defocus node crashed when scene has no camera.
2007-01-29 20:43:42 +00:00
Kent Mein
ca2bb396a3 Should have read it closer when I made the inital change.
was doing if PLUGIN_VERSION ==2 || PLUGIN_VERSION == 5
when what we want is in the range of 2 - 5

Kent
2007-01-29 20:43:27 +00:00
Ben Batt
1f35fd7929 = Addendum to UVProject's multiple UV handling - "Override Image" button =
* Added an "Override Image" button to the UVProject modifier; this overrides
  faces' currently assigned image with the one given in the modifier panel.
  This provides some of the functionality previously provided by the "Add UVs"
  button - you still need to add a UV layer manually, but you only need to
  change the image in one place.
* Note that the "Override Image" option uses the bit position previously used
  by the "Add UVs" option, so old files which had "Add UVs" enabled will now
  have "Override Image" enabled.
2007-01-29 16:28:11 +00:00
Ben Batt
2a47217cba = Updating the UVProject modifier to handle multiple UV layers =
* Removed the "Add UVs" option from the UVProject modifier
* Added a UV layer menu to the UVProject modifier
* Refactored the Displace modifier UV layer menu code to allow the UVProject
  modifier to share it
* Added two CustomData functions to facilitate getting layers by name
2007-01-29 15:10:55 +00:00
Robert Holcomb
cdefd31397 The channel keyer was not scaling the YCC color space properly for the exec function to make an impact on it. 2007-01-29 04:08:40 +00:00
Peter Schlaile
f354b9c697 == Sequencer ==
Fixes bug #5858 (Render to dv skips frames. OSX and Linux PPC).
Caused by stupid ffmpeg dv multiplexer. PAL-fix is easy, NTSC needs varying
buffer sizes...
2007-01-28 18:45:53 +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
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
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
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
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
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
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
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
Matt Ebb
43b390c936 Fix for [ #5785 ] standard bezier curve resolution doesn't show correctly in 3d
view: Just made the initial curve resolution consistent between curve parts'
resolution and curve object's resolution.
2007-01-22 23:11:18 +00:00
Nathan Letwory
22eeaadab7 * move two expressions after declarations in their blocks. Compiles again with MSVC.
GCC users should always check this. No actions before any declarations.
2007-01-22 09:24:52 +00:00
Alfredo de Greef
cbbd736a9d bug #5772, now whenever the 'no zbuffer' option is enabled (which shouldn't
have been in this particular case anyway), the blur radius will automatically
be limited to half the width or height of the image.

Nothing to do with this bug, but also now skips image region outside
borders when border rendering is enabled.
2007-01-22 06:08:19 +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
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
Ton Roosendaal
f75c784434 Bugfix #5685
EditMode text objects: using different text Width didn't draw anything.
2007-01-19 14:25:56 +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
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
Kent Mein
271b97282f very minnor cleanup of spacing, and modify upperbounds on plugin version #
so 5 is acceptable.  (So texture plugins work when compiled against cvs)

Kent
2007-01-18 15:39:59 +00:00
Ton Roosendaal
634fe56fbe Bugfix #5316
Order of freeing of Blender database is important, but the past year(s)
new database entries were added in wrong places, so freeing could go in
wrong order. In this case it was Groups being freed before Objects. But
there are more errors...

It only shows really in Windows, since it's the OS that is sensitive for
writing data in freed memory. For other OSes it doesn't make Blender more
stable, only mem-frees happened, no mem-allocs.
2007-01-18 15:23:28 +00:00
Ton Roosendaal
d2cb060d6f Bugfix:
Compositing, depenency fix, so nodes execute only when really changed.
(Error was in nodes that don't get buffers as input, but only values. These
nodes flooded "execute" events through the node tree.)
2007-01-18 09:09:16 +00:00
Ton Roosendaal
9bc90c1669 Bugfix #5725
Curves widget: using "clipping" option didn't work well when dragging
multiple points. Now it clips based on entire selection.
2007-01-17 14:12:48 +00:00
Joshua Leung
a7ea449214 (Hopefully this commit is ok for current bcon status)
Moved function used for 'Visual' keyframing, to live with the rest of the
API calls I added for Pose-Mode bone snapping. Now, it is in a more
'releasable' state.
2007-01-17 05:53:44 +00:00
Robert Holcomb
ffa0cfc9d9 Corrected buffer generation in matte nodes after Ton showed me a better way to do it. 2007-01-16 21:52:46 +00:00