Commit Graph

47594 Commits

Author SHA1 Message Date
Alexander Ewering
1c337c49f1 Commented out the memset(...) in chtoutf8(), as it just assumed the buffer
was at least 16 bytes long, but wasn't always, and it gets cleared manually
by all calling places anyway.

Should fix crashes.
2005-09-14 17:01:03 +00:00
Alexander Ewering
98bd4615b5 On behalf of Mika Saari, the famous Unicode Font support!
Further information is available here:

http://wiki.blender.org/bin/view.pl/Blenderdev/UnicodeFont3D

Shortlist of features:

- Unicode character support for Font3D
- UI to select characters from Unicode character list
- UI to select Unicode table areas
- Optimized character loading (Load only those characters which are used
  in font object)

Please test extensively if it breaks anything, try also loading/saving
files, packing fonts, etc.

The official text regression file in the regression suite should be a
good start.

Thanks to mikasaari for this very useful addition!
2005-09-14 14:02:21 +00:00
Toni Alatalo
2cb24cefb2 =bpy beztriple: finally got the mem. management right with the help of khughes. 2005-09-14 13:59:43 +00:00
Toni Alatalo
4d79ac3193 Just a little addition to docs based on a discussion on irc. 2005-09-14 11:04:13 +00:00
Toni Alatalo
290ae52d81 Memory management flag to behave better, as hinted by Ken Hughes.
Still not good, i.e. getting these when quitting: Error Totblock: 4
new bpytriple len: 60 0x8889bdc ... 'cause nothing frees them..

Changed the loop that parsed input args to PyArg_ParseTuple to have
support for passing ints from Python too as the floats that are the
coordinates. Didn't find PyInt_AsFloat and figured that this is an ok
way anyhow.

Changed the default handle mode from AUTO to ALIGN, which is the same
as in UI and more useful at least for me.

Little sanifying in CurNurb (this was done with Ton).
2005-09-14 10:53:51 +00:00
Jens Ole Wund
548660994d KEYC pops up 'paint tool'
was always there .. but noone but me knew
2005-09-13 21:04:19 +00:00
Matt Ebb
0af69ddd09 * Added hotkeys for rendering animation (Ctrl F12) and playing back
animation (Ctrl F11) similar to rendering a still with F12 and showing it in
the buffer with F11.
2005-09-13 09:52:00 +00:00
Jens Ole Wund
c27799910f bug fix:
UV paint tool did not work with swapped mouse buttons in user prefs.
2005-09-12 19:20:53 +00:00
Ton Roosendaal
16b146d516 Exclude only-shadow lamps to be rendered when the main render option
"shadow" is off.
Bugfix 3018
2005-09-12 17:43:48 +00:00
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