Commit Graph

4085 Commits

Author SHA1 Message Date
Ton Roosendaal
f9acbb7b5d Small fixes;
- "make track" in posemode only worked for objects, so disabled it for now
- in weightpaint, "Clear rotation/location" worked on armature-pose, as well
  as on object. Was confusing... disabled clearing object in weightpaint.
2005-09-12 15:17:35 +00:00
Ton Roosendaal
17c28a8f93 Bug fix #3042
Button "text on curve" did not remake DAG dependencies, so editing the
curve gave no updates in text.
2005-09-12 14:48:00 +00:00
Johnny Matthews
dd0cc4d1d2 Fix for bug #3024
In non-prop mode for edgeslide, loop would not return to proper position after cancel.
2005-09-12 14:01:44 +00:00
Ton Roosendaal
d90f3546cb Bug fix #3026
Pulldown Mode select (3d header) failed to enter posemode in editmode,
but only when posemode was already set for armature
2005-09-12 13:53:40 +00:00
Ton Roosendaal
9b46c46dc9 Bugfix #3040, the new 'roundbox' button disabled copy/paste values in
buttons. You could notice that for Constraint and Modifier panels.
2005-09-12 13:26:53 +00:00
Ton Roosendaal
999392e4b7 Checked some regression files (2.37) and found issues with correct backward
conversion of data still. Remains a painful issue to get things converted
and in same time prevent things from calculated twice. :)

Anyhoo, issue was that old files with armatures in hidden layers went wrong
2005-09-12 13:02:36 +00:00
Jiri Hnidek
45fe89364d - timemarker name is moved up, when current frame equals to frame of timemarker 2005-09-12 08:43:09 +00:00
Stephen Swaney
a4ca8267cf bugfix: [ #3009 ] possible memory leak in Mathutils
fixed by patch [ #3013 ] patch for memleak in vector
Submitted By: Ken Hughes (khughes)
2005-09-12 06:18:45 +00:00
Stephen Swaney
24ee7278b9 patch #3011 ] update to curnurb.setFlagU doc, added set and get for Taper
Contributed by Toni Alatalo (antont).

Support for Taper Objects for Curves.
Code for curnurb.setFlagU() method not changed as per discussion on
bf-python mail list.
2005-09-12 06:07:19 +00:00
Stephen Swaney
5f15cf3d9a fix compiler warning: No newline at end of file 2005-09-12 04:46:34 +00:00
Jiri Hnidek
d5f55e0502 - when marker is selected, then it's name is highlighted and name is moved
up. It can be useful, when you have many named markers in timeline.
 - screenshot: http://www.kai.vslib.cz/~hnidek/pics/timeline_tweak.jpg
2005-09-11 13:19:10 +00:00
Ton Roosendaal
6cff3258d5 My first DerivedMesh code! :)
Bugfix #3002: Using 'calc weights from envelope' WKey in weightpaint mode
now uses the subsurfered vertex coordinates to calculate weights.
2005-09-11 13:02:55 +00:00
Ton Roosendaal
7939735887 Bugfix #2999. Nkey buttons had a limit for input of 1000.0. That's not
much... made it 10 times larger, to match the max zoom level.

Nevertheless; on our ancient todo is that we once should give number
buttons 2 limits. One for the actual min/max values, and one for the best
sliding experience (matching zoom level or distance for example).
2005-09-11 11:03:09 +00:00
Ton Roosendaal
68b2476d2f Bugfix #2996. Delete vertexgroup didn't update Outliner. 2005-09-11 10:20:30 +00:00
Ton Roosendaal
f20f4e4307 Bug fix #3033
Using "make parent armature with creating vertex groups" option gave
corrupted memory when one or more bones had the "Deform" option not set.
Was caused by old boneclass SKINNABLE variable. To end this confusement,
removed this define from code.

Note for future Armature tool coders; don't use this bonelooper
functionality. Operations in Object mode for armatures should use the
Pose Channels, which is a simple ListBase to go over. I have to recode
the 'create vertexgroups' still...
2005-09-11 10:12:31 +00:00
Jens Ole Wund
42ee04702c having a "mini gimp" in image editor
{ hope it does not break builds .. mscv6 .. scons works fine here }
2005-09-09 22:31:23 +00:00
Alexander Ewering
2da83cecc4 New feature for edgeslide: Holding SHIFT now slows down movement by factor
10 (like transform()) and allows for fine-tuning the loop with hairy
reference edges.
2005-09-09 16:27:20 +00:00
Ton Roosendaal
0c78232ced Fix: when using in WeightPaint the Wkey option for the first time (no
vertex groups yet on Mesh), the undobuffer for Wpaint got corrupt.
2005-09-09 15:38:20 +00:00
Ton Roosendaal
55dd39f9fa Fix for armature deform: if there's a vertexgroup on a vertex, but not with
bone assigned to the group (like for softbody) the envelope-deform was not
applied.
2005-09-09 15:16:39 +00:00
Willian Padovani Germano
039a8c95f3 BPython:
- Pontus Lidman contributed a new module: Blender.Key + access to key objects from NMesh, Lattice and Curve + docs (thanks and sorry for taking so long to check/commit the patch!)

- Allowing EVENT spacehandlers to call the file selector (scriptlinks in general are not allowed, but this special case should be able to). Requested by Paolo Colombo (thanks!)

- tiny doc update (Ken Hughes pointed an error in the space handlers example)

I didn't have time to update the Key module to follow the current bpython design, will do that later and also test it better than I did.
2005-09-09 01:31:10 +00:00
Johnny Matthews
34ae14778c Removing Auto-Fgon feature till it can be a little better implemented and integrated 2005-09-08 12:59:47 +00:00
Ton Roosendaal
0ba5653034 Added icons for outliner display of Modifiers. Used ones as provided by
Eckhard Jaeger on forums. http://download.blender.org/demo/test/rt9.jpg

Notes;
- made new Armature icon, based on looks of Action icon. Using a Bone icon
  for everything was too confusing
- made softbody icon softer... it looked like a water drop, something that
  would be better for Fluid stuff later :)
- the Modifier icon itself (wrench) looks a bit too much like a tool... but
  its a clear icon that stands out.
2005-09-08 10:59:13 +00:00
Ton Roosendaal
e2944936ac Fix for weight painting errors, as reported by Bassam.
- Undo/Redo didn't work
- Crash on using weightpaint with Armature-modifier (instead of parent).

Note: checking if an object is being deformed cannot be simply done with
checking for a parent anymore... for this a call in modifier.c has been
added; modifiers_isDeformedByArmature(Object *). It even returns the
Armature object pointer.
2005-09-07 18:07:24 +00:00
Johnny Matthews
add2e9bfa2 This patch adds:
Add Intersect Modifier
Add Union Modifier
Add Difference Modifier

to the W key menu

Select 2 mesh object and press W. Then select a modifier entry. The active mesh selection will get a boolean modifier of the type selected with the inactive selection as target.
2005-09-07 03:37:37 +00:00
Martin Poirier
1dba65e296 Roland Hess' Floor Constraint patch: https://projects.blender.org/tracker/?func=detail&aid=2993&group_id=9&atid=127
Minor modifications to simplify the code in evaluate_constraint.

The "Stick" feature will need more work as it gives bad results when skipping frames, jumping around on the timeline and when going backward in time.

Suggestion: Would be nice if it could use the local space too, not just global space planes.
2005-09-07 00:11:39 +00:00
Ton Roosendaal
c1155c6a4d Three armature fixes (yes, i'm in studio orange!)
- on adding armatures, the "use vertexgroup" and "use envelope" options
  are now on.
- fixed ancient bug; on duplicate bone in editmode, it popped to the
  origin of armature, if parent bone was not selected and current bone not
  connected.
- subdivide bones now follows the Mirror edit option too
2005-09-06 16:57:08 +00:00
Johnny Matthews
35734007de Percent and Flip now invalidate the edgeslide redraw, so that it updated on key press 2005-09-06 15:55:54 +00:00
Ton Roosendaal
6029ec60da Forgot to add correct naming for subdiv bones. 2005-09-06 12:51:02 +00:00
Ton Roosendaal
63cd6b2179 Quick added; editmode bone subdivision (Wkey only). Doesn't do mirrored
yet. Need commit so I can access it on the compu in Orange studio :)
2005-09-06 09:47:30 +00:00
Alexander Ewering
167d2ebc12 Fix truetype (freetype2) font loading 2005-09-04 09:30:57 +00:00
Daniel Dunbar
484315332c - added NewBooleanMeshDLM bad level call 2005-09-03 18:10:13 +00:00
Daniel Dunbar
a77e3482f2 Saturday morning first cup of coffee hack (yeah, its a late
morning)

 - fun for the whole family, boolean mesh modifier... doesn't work
   with layered modifiers yet (just uses base mesh), although may
   god have mercy on your soul if you want to run boolean on a
   subsurf anyway
 - added displistmesh_add_edges

This exposes a bug in boolean, apparently the output is somehow
random (hash on alloc'd pointer value perhaps) which is sortof
lame.

It also makes more apparent the desire for some level of control
over dep graph evaluation during editmode (at the moment dep
graph is reevaluated for a mesh object in editmode, but since
mesh changes are on editmesh other objects don't really see
any change, so it is a wasted recalc).
2005-09-03 17:22:29 +00:00
Daniel Dunbar
e0c7d270d9 - assorted minor warning fixes 2005-09-03 16:20:33 +00:00
Brecht Van Lommel
fdc1fd1e9c Fix for bug #2974:
Circle select in uv editor crashed when an image was assigned but not loaded.
2005-09-03 13:28:14 +00:00
Ton Roosendaal
517e526e9e Bug fix #2788
in 3d window, nkey panel, click in middle of number button & press ESC
moved the 3d cursor to that location. The button was passing on its
event to the window event queue, which shouldn't be.
2005-09-03 12:35:13 +00:00
Ton Roosendaal
cd9a35f1c6 Bug fix #2985
Envelope correction for moving bone-points in edit mode didn't reset on ESC
2005-09-03 12:14:59 +00:00
Ton Roosendaal
c238d21c18 Bugfix #2977
Tweaked selection code for Manipulators in 'combo' mode, it gives
preference now to the scale/translate widgets over the rotate arcs. This
enables use of these widgets in ortho top/side views.
2005-09-03 11:20:16 +00:00
Ton Roosendaal
fd7d224d4c Bug fix #2972
Copy/Paste bone name buttons crashed, didn't use the callback for buttons
proper yet.

Also added MAXFRAME defines for buttons, instead of hardcoded values 9000
or 18000
2005-09-03 10:50:21 +00:00
Johnny Matthews
b787bc2829 Auto-Fgon Feature for subdivide
If Fgon is selected in mesh tools panel, In the following cases

Quad - 2 edge Adjacent - Path
Quad - 2 edge Adjacent - Innervert
Quad - 3 edge

'extra' faces are combined to fgons. to make cleaner subdivides. Please give feedback
2005-09-02 16:31:03 +00:00
Johnny Matthews
1472a7aacd Adding back in the "Big Purple Dot" to indicate which edge the non-proportional Edgeslide is using for distance 2005-09-01 18:40:16 +00:00
Brecht Van Lommel
0535d26e6d - Changed xz limit drawing to use same formulas as the limiting in the IK
module -- the previous method could be off pretty far.
- Added drawing of transparent surface for it, instead of just the border.
- Added "stretch IK", allowing bones not only to rotate, but also scale.
  The "Stretch" value below the DoF buttons is used to enabled this.

- Some code tweaking: slightly simplified computation of transform for IK,
  renamed chain to tree, removed unused pchan->ik_mat, ..

Internal IK module work:
- Do damping per DoF also based on stiffness, hopefully makes it converge
  faster with very stiff joints.
- Instead of having two joints types (translational and rotational), now
  all 6 DoF's can be enabled for one joint.
- Added limits for translational joints.
2005-08-31 22:09:44 +00:00
Alexander Ewering
c005095ea8 Re-enabled freetype font rendering :-) 2005-08-31 19:07:06 +00:00
Daniel Dunbar
5d1972cb4e - mesh_strip_loose_faces was completely wrong, dunno what I was on... 2005-08-31 04:04:28 +00:00
Johnny Matthews
c9eb15714c Nonproportional mode for loopcut
while sliding the edge, press P this will swap modes. while in Non prop mode, press F to change the control "side". You can still change the control edge too.
2005-08-30 20:33:35 +00:00
Johnny Matthews
3b96d6584f Force redraw on Edgeslide Cancel (RMB and ESC)
Fixes bug reported by Fab31 on IRC
2005-08-30 18:09:07 +00:00
Ton Roosendaal
3c4491de2f Bug #2962
Moving in Posemode + Rest Position a Bone crashed. Uninitialized Trans...
2005-08-29 18:03:03 +00:00
Ton Roosendaal
fa63c6a7e1 First version of visualizing the DoF (french degrees!) for Pose-bones. It
now only draws the limits for X and Z rotations (Y is bone axis itself).

Quick snaphsots (links will disappear):
http://www.blender.org/bf/rt6.jpg
http://www.blender.org/bf/rt7.jpg

It only draws for selected Bones that are part of IK, and have limits set.
Most work was getting code OK to setup drawing this 'DoF space', so now
experiments can be done with more drawing types.

ALso; Buttons for DoFs now only draw if the pose-bones are part of an IK
chain.
2005-08-29 17:02:24 +00:00
Alexander Ewering
a07394ef2c More text object fancyness, and fixes:
- "Flush" is now split into two seperate Alignment modes "Flush" and
   "Justify":

   - Justify does exactly the same as a normal word processor's justify
     function does, and in addition, it uses *whitespace* instead of
     *character spacing* (kerning) to fill lines. Much more readable.

   - Flush is pretty much the old Blender "Flush" mode - and as such it
     uses character spacing to fill lines. Just as Justify, this only
     works with at least one textframe.

 - Underlining for text objects. Not a lot to explain. New button "U" in
   the editbuttons, and CTRL-U as hotkey toggle underlining for newly
   entered characters or for the selection, just like CTRL-B/CTRL-I do for
   bold/italic.

   Underline height (thickness) and Underline position (vertical) can be
   set in the editbuttons.

   Implemented as CU_POLY polygon curves.

 - The B, U and i buttons (and the corresponding CTRL-B/U/I keystrokes)
   have been fixed to only affect *one* attribute at a time. Formerly,
   hitting CTRL-B when no other style was active, on a text portion with
   italics text, for example, would kill the italics and just apply bold.

   Now, these attributes always add or substract only, but do not
   replace the style.

 - In the past, there were bugs with material indices uninitialized, and
   thus crashes in the renderer with illegal material indices.

   Even though I assume they have been fixed, I've put in a check that
   checks (hah) if the material index of a character is illegal (bigger
   than ob->totcol), and then sets it to zero, and spits out a warning
   on stderr.

   If you see such warnings, please report and link to the .blend.

 - Bugfix: All alignment modes only worked if there were at least *two*
   lines of text in the text object. Fixed


There's now a regression test file for text objects, please add to the
corresponding repository:

http://blender.instinctive.de/downloads/release/demo/text-regression.blend.gz
2005-08-29 12:46:07 +00:00
Chris Want
5dd3bfdb18 MEM_freeN() and MEM_mallocN() should not have been redeclared in this
file.
2005-08-29 02:47:55 +00:00
Ton Roosendaal
796e4d33e0 Errors in buttons defining DoF for bones; needed a redraw and fixed typo
in min/max detection for buttons.
2005-08-28 17:52:34 +00:00