Commit Graph

47594 Commits

Author SHA1 Message Date
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
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
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
Ton Roosendaal
4d44475543 Bugfix #5732
Python scripts: when setting a layer for an object, the function assumed
the object had to be in the current scene, thus ignoring layers for other
objects.

Now the object->lay value is set always.
2007-01-17 21:07:10 +00:00
Campbell Barton
b9039611c6 bugfix for 5572, BLI_makestringcode was being used to join 2 paths, but adding c:\ to the start of a non root dir. it wold be nice to have a BLI_join_path for this to avoid #ifdef WIN32's in the main code and to check for existing slashes 2007-01-17 15:04:37 +00:00
Campbell Barton
b630794be7 bugfix for 5572, BLI_makestringcode was being used to join 2 paths, but adding c:\ to the start of a non root dir. it wold be nice to have a BLI_join_path for this to avoid #ifdef WIN32's in the main code and to check for existing shashes 2007-01-17 15:01:56 +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
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
Nicholas Bishop
e773ecc6a3 Fixed bug #5718, retopo - undo after applying returns the pen strokes to the wrong location 2007-01-17 08:22:52 +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
Nicholas Bishop
52f0648949 Fixed bug #5647, retopo - projection buffer not updated when changed via numpad. Was caused by not updating the depth and matrix retopo data when changing the view. 2007-01-17 04:02:09 +00:00
Nicholas Bishop
5f798002c9 Added a new function+struct to glutil that takes care of reading in the OpenGL data needed for gluProject/gluUnProject. This allows retopo and sculptmode to share some of the same code, and is probably useful elsewhere as well. 2007-01-17 03:57:01 +00:00
Joshua Leung
a3c9ae8a88 == NLA Visibility Tweak ==
In a few cases, it may be helpful to turn off the 'only show objects that are
in visible scene layers in the nla' trick. By default though, this is still on. Find
the switch in the View menu of NLA editor.
2007-01-17 03:24:21 +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
Nicholas Bishop
2bf818a267 Retopo paint fix: cleaned up the hotkeys, added Lkey for selecting the line tool, Hkey for toggling the pen hotspot. 2007-01-16 19:39:30 +00:00
Nicholas Bishop
5c0961dade Fix for retopo: xkey and deletekey should remove the active paint line. 2007-01-16 19:21:24 +00:00
Nicholas Bishop
1e785638f9 Usabilility fix for retopo: allow user to disable hotspots on line ends, also only display the controls for each tool (pen, line, and ellipse) when that tool is selected.) 2007-01-16 19:06:58 +00:00
Martin Poirier
797565916d === Transform Bug Fix ===
[ #5458 ] Some transforms are not accurate while pressing shift key

Shrink/Fatten & Push/Pull: Shift slowed the transformation but didn't add precision. (integer division. fixed by applying the same solution used in Grab)

Warp: Shift was ignored. Fixed by changing warp to use the same input method has To Sphere. That is, the 3D view acts like a big horizontal slider: Left -> No effect, Right -> Full effect. This is somewhat of a "big" change from how warp used to work but this is more predictable and is not limited by the original position of the mouse pointer. (of course, this works with Shift correctly too).
2007-01-16 18:55:15 +00:00
Ton Roosendaal
bd5c6e3a21 Bugfix:
Render: Ambient Occlusion was being triggered now with the Material flag
(Shader panel) "Shadow". Nice idea, but that was not so in 2.42a and
before, breaking how previously renders looked.

Now the "Shadow" button in Shaders panel only triggers shadow again.
(Note: the Ambient slider in material triggers AO)
2007-01-16 16:30:16 +00:00
Joshua Leung
c967679bb8 == Armature Joining Bugfixes ==
Since 2.40 (and a few pre-releases around then), armature joining has not
worked correctly. Constraints and other attributes of bones in posemode
(IK DOF limits, transform locks, custom shapes, etc.) were not preserved
on the armature(s) that were joined onto the last selected armature. This
was a serious production problem, as it meant that you could not easily
add pre-made rig segments and merge them with the rest of your rigs without
having to redo all the constraints. After a few attempts, I've finally
managed to fix this.

All constraints and parenting relationships get name corrections for the post-
merge armatures. Action channels in actions don't really get any corrections
yet unless the action is being used by an Action Constraint.

Python-API people: beware, I may have broken something in this commit.
2007-01-16 09:18:01 +00:00
Nicholas Bishop
062843cca1 Retopo bugfix: freeing editmesh should set retopo fields to 0/NULL. 2007-01-16 08:29:39 +00:00
Nicholas Bishop
6f976db9f7 Fix for bug #5628, sculpt - ghost of circle left when going from 3d view to buttons window. Added a check to insure brush is inside the current view3d before drawing. 2007-01-16 07:35:42 +00:00
Nicholas Bishop
ceee069763 Fixed a memory leak caused by using sculptmode's partial visibility on a mesh with customdata. 2007-01-16 06:56:03 +00:00
Nicholas Bishop
9ff336d14d A few fixes for saving/loading partial mesh visibility (sculptmode): pay better attention to how many verts/edges/faces there really are (not just the visibile ones) 2007-01-16 06:49:57 +00:00
Nicholas Bishop
49d1d10c1b Disable partial mesh visibility when leaving sculptmode. 2007-01-16 06:36:50 +00:00
Stephen Swaney
fbfe27761a fix for warning: implicit declaration of function 'id_us_plus'. tsk. 2007-01-16 05:20:39 +00:00
Stephen Swaney
d917157f59 bugfix: #5581 Joining python created curves crashes Blender
Curve_appendNurb() was incorrectly appending Nurb to Curve
rather than using BLI_addtail().
2007-01-16 04:08:12 +00:00
Joshua Leung
09bd559939 == Action Editor ==
Final tweaks to Snapping and Mirroring tools:
* Snap To Nearest Marker
* Mirror Values of Horizontal Axis
* Mirror Over Selected Marker
2007-01-15 22:37:36 +00:00
Alexander Ewering
71a503f31d Further tweaks to the textframe drawing code... it was unnecessarily
complicated...
2007-01-15 22:31:22 +00:00
Alexander Ewering
2526702368 Partial Bugfix #5713:
Textframe heights now draw exactly as set in the buttons.
2007-01-15 22:18:42 +00:00
Toni Alatalo
048bb84f82 Cleanup of pose insert methods for Armature objects, as planned in the post to bf-python.
Two sensible methods left in: armatureobject.insertPoseKey and .insertCurrentPoseKey,
but still left unofficial i.e. not published in the api doc yet, because of additional
error checking is still needed and more testing too. But at least is now in better shape to
work on to be published in a later release.
2007-01-15 16:00:36 +00:00
Ton Roosendaal
c1cc7522b3 Bugfix:
Material buttons: "Strands" menu closed after each button usage. Should
remain open until ENTER or ESC pressed or mouse leaves menu.
2007-01-15 15:10:31 +00:00
Ton Roosendaal
68c8a74746 Removed annoying print for "icon directory not found". Was a missing check.
Probably, after release, we make this default in installs.

Also cleaned up code a bit.
2007-01-15 15:01:58 +00:00
Ton Roosendaal
12c623dff5 Removed float.h "tanf()" from composte code. Also removed ifdef for atanf.
(note; this is because blender still follows the convention that no float.h
math is available)
2007-01-15 13:58:41 +00:00
Ton Roosendaal
c01aaac311 Two in one:
- Bugfix #5714
  New option "Save changed images" didn't respect relative file names

- Bugfix #5621
  New camera (shiftx, shifty) was missing in IpoWindow as animatable option
2007-01-15 12:44:45 +00:00
Ton Roosendaal
a8a339b26e Bugfix #5712
UV rendering error: the third value of a UV texture coordinate should be
set to zero always, this enables 3d textures to work uniform with UV.

Also fixed: UV pass output for non_OSA is now equal to OSA, meaning only
used UV face values are in such passes.
2007-01-15 11:41:10 +00:00
Ton Roosendaal
2170b007f0 Bugfix #5700
Deleting a marker could crash, it was reading memory right after it was
freed.
2007-01-15 11:01:41 +00:00
Joseph Eagar
7a19fe19f6 =ID Property Script update and api bugfix=
Turned out somehow I managed to miss adding the proper
type refs in Blender.Types for IDGroupType and IDArrayType,
which made the script not work.  So, I've got it all fixed now.
Or at least hopefully :)
2007-01-15 07:54:08 +00:00
Joshua Leung
1645e8d287 == VisualRot Keyframing ==
After extensive testing, I've concluded that VisualRot keyframing
didn't work at all for bones. On the other hand, VisualRot for Objects
worked fine. Now I've come up with a fix, which should make this
actually work for IK/FK switching (I hope).

The fix I'm committing is slightly hacky as it tempolarily overwrites the
bone's rotation/quat values with the 'visual' ones, inserts keyframes,
then resets the values it wrote on before.

This hack was needed as for some strange reason, the values being
added as keyframes were not the ones that had been derived. Note
that on some bones, there will be a little bit of strange rotation after
frame changes while their constraints are left on.
2007-01-15 01:56:58 +00:00
Martin Poirier
3318bef2f1 === Constraints Bug Fix ===
Fix for bug: [ #5418 ] Follow Path constraint overrides objects' inherited scale

Patch provided by Aligorith.
2007-01-14 23:42:06 +00:00
Brecht Van Lommel
d90c686bdb Fix for bug #5439:
UV Project modifies original UV coords.
2007-01-14 15:52:55 +00:00
Nicholas Bishop
9ff80bea56 Fix for auto filling faces in editmode: make sure all verts forming a face are selected before creating the face. 2007-01-14 15:36:19 +00:00
Brecht Van Lommel
878d9f9c68 Fix for bug #5680:
Vertex color node worked only if VCol Paint/Light was enabled. Fixed
that, and removed the vertex color node making it part of the geometry
node instead.

Also, preview.blend had black vertex colors for the sphere, so set them
to white like the other primitives.
2007-01-14 15:19:27 +00:00
Brecht Van Lommel
d4f4bf85be Bugfix: after drawing a preview in a node shader, vertex colors would
not modulate the texture color in textured draw mode anymore. Cause was
the relevant opengl state not being changed back for drawing the mesh.
2007-01-14 12:51:01 +00:00
Brecht Van Lommel
b7ccb830d2 Fix for bug #5689:
Loss of UV coordinates reading from 2.42 .blend files, if there were
both vertex colors and tfaces (these contained colors also). It should
have been impossible to create them both in 2.42, but even if invalid
we should read them correct.
2007-01-14 12:35:45 +00:00
Ton Roosendaal
bd0f9a59f0 Important bugfix: Image mapping "repeat" didn't support mirrored tiling
yet: http://www.blender.org/bf/rep1.jpg

Psst psst... to solve this bug I had to add the buttons for the option too!
2007-01-14 11:51:52 +00:00
Joshua Leung
444246d016 == IPO Cleaning ==
Rewrote the core-function responsible for ipo-cleaning. Now, it is in a less
wacko form. What is still not done is the conversion of a bunch of points
describing an arc to an arc defined by the handles of the keyframes on
either side of the arc. That will have to wait for the next development cycle.

This rewrite fixes two big bugs with the code:
* All but first curve got hidden aften cleaning
* Cleaning a curve with only two verts resulted in only one vert, even though
the values were not the same.
2007-01-14 09:30:04 +00:00
Nicholas Bishop
1807fb2484 Cleaned up some warnings. 2007-01-14 05:31:35 +00:00