Commit Graph

4183 Commits

Author SHA1 Message Date
Matt Ebb
d91d4fd41f * Headers for the last Set Smooth commit 2005-09-28 11:56:09 +00:00
Matt Ebb
c1e8340638 * Added 'Set Smooth' and 'Set Solid' to the mesh edit mode specials menu/toolbox/3d view menu so you don't always have to keep switching back to edit buttons. 2005-09-28 11:55:43 +00:00
Ton Roosendaal
2a08be6e50 Brought back (lost with modifier code) display of actual amount of faces
for subsurfs in info header.
2005-09-28 11:24:39 +00:00
Ton Roosendaal
7382a3d9d9 Bugfix;
Ipo window could crash on reading old files with keys, non proper use
of pointer...
2005-09-28 11:07:12 +00:00
Ton Roosendaal
b5117eb8fd Bugfix;
- buttons "Show" and "Key" didn't set the active constraint, causing
  confusement in display for the IpoWindow

Also made the backdrop for constraints and modifiers to use the Panel
theme color, making it better integrated.
2005-09-28 11:05:20 +00:00
Ton Roosendaal
c8a4f20fb8 Removed ancient (2.1) feature for Constraints... a highly undocumented and
unpredictable one!

This is what it did; if two or more Constraints are of the same type, it
accumulates the Target positions/rotations for the constraints, averages
them, and then only applies the last Constraint in the row. It seems to
be a trick to blend IK Constraints or so... in all other cases I cannot
find a good use for it (nor did Bassam).

For example; add three Empties, and make one Empty to have 2 location
constraints to the other two. This just didn't work, unless you insert
an "Empty" constraint inbetween.
I will post in the blender.org animation forum feedback for it too. :)

Its quite easy to make it an option, but I first like to grasp fully what
the actual use of such an option is.
2005-09-28 10:07:54 +00:00
Ton Roosendaal
97d749a99f Suppressed another GL_FRONT drawing routine, causing potential slowdowns
for some configs. This was an old hack for sgi's, so I've put it behind an
ifdef for sgi and suns now.

Test if blender still works by switching screens, and check for the borders
between the blender area windows. These should draw all nice empty/black.
2005-09-28 09:59:59 +00:00
Alexander Ewering
f9c15a2c20 Fix forward declaration of drawscreen() 2005-09-28 07:11:24 +00:00
Ton Roosendaal
d370182aed Division by zero prevented in new hair strand algo. It showed as vertical
lines, especially with the "Step" size low.
2005-09-27 22:33:06 +00:00
Ton Roosendaal
96253376e7 Recommitted this commit yesterday, was apparently done in the wrong
directory... so the slowdown was still evident!

Maintenance commit;

  - *Giant* speedup for LMB frame-dragging in ipo/action/nla windows. It was
    calling a routine that accessed frontbuffer drawing.... a very old patch
    for SGIs even! :)
  - Prepared code for support of unlimited Shape keys
  - Curve objects didnt draw correct for selection-outline option
2005-09-27 21:52:04 +00:00
Ton Roosendaal
4e64b288a4 Hair!
Thanks to testing in studio orange (thnx andy, matt!) I've found the
simple way to code it.

Static particle systems, when not set to wire or halo, now render 1 pixel
wide 'strands', which are actually just faces with vertexnormals and
proper orco texture. Check for quick fun;

http://www.blender.org/bf/rt5.jpg
(and rt6, rt7, rt8)
2005-09-27 21:51:09 +00:00
Stephen Swaney
224e4d747f set object->recalc flag when we change object's loc, rot, etc.
fix for problems with frame change scene scriptlinks.
2005-09-27 20:56:39 +00:00
Ton Roosendaal
716aaaf117 Shaded drawmode, ogl preview render, does update for lights. 2005-09-27 19:43:04 +00:00
Joseph Gilbert
af431c5a68 -fix for angleBetweenVecs
* adds a test to check for zero-length vectors
2005-09-27 18:41:39 +00:00
Joseph Gilbert
39a243f8d2 Refcount fixes
* fixes posible reference count issues with mathutils
* mathutils classes should no longer memory leak
2005-09-27 17:03:28 +00:00
Daniel Dunbar
d27212e647 - tooltip fix, double sided pretended it was per face 2005-09-27 16:44:33 +00:00
Joseph Gilbert
85d295f106 added the method saveRenderedImage to the RenderData object
- should allow users to render a filename.extension to the render path
Example:

import Blender

s = Blender.Scene.GetCurrent()
r = s.getRenderingContext()
r.setRenderPath('C:\\')
r.render()
r.saveRenderedImage('myRender.jpg')
Blender.Scene.Render.CloseRenderWindow()
2005-09-26 22:00:39 +00:00
Joseph Gilbert
13349ad7a4 drawscreen is called before it's defined crashing msvc 2005-09-26 20:37:52 +00:00
Joseph Gilbert
f1ddb77a48 - added some equivalency testing for vector classes
>, >=, <, <= test vector magnitude
==, != test vector values 'within epsilon' :)
- inspired by ideasman
2005-09-26 20:11:13 +00:00
Ton Roosendaal
4e854b1a5c Maintenance commit;
- *Giant* speedup for LMB frame-dragging in ipo/action/nla windows. It was
  calling a routine that accessed frontbuffer drawing.... a very old patch
  for SGIs even! :)
- Prepared code for support of unlimited Shape keys
- Curve objects didnt draw correct for selection-outline option
2005-09-26 18:10:20 +00:00
Ton Roosendaal
af8d09238a Action editor: drag with LMB did three redraws... causing slowdown. Bug
since 2.0 it seems.
2005-09-26 17:11:15 +00:00
Joilnen Leite
d8863a9841 adding sort by extension in filselect window
.
2005-09-26 16:21:22 +00:00
Joilnen Leite
b534d6bfb7 adding sort files in fileselect window by extensions
.
2005-09-26 16:17:14 +00:00
Ton Roosendaal
18957ff5a8 Two more 'shape' fixes;
- adding new Shape didn't set correct Ipocurve code... so you could not
  even add new curves
- the keylines (first channel) always came back in display... ancient error
2005-09-26 16:13:00 +00:00
Ton Roosendaal
c7f2c2c612 Quick fix; "delete shape key" didn't work without IpoWindow open. 2005-09-26 15:51:44 +00:00
Ton Roosendaal
43d2904037 Cleanup and new features for vertex keys.
User doc: http://www.blender3d.org/cms/Shape_Keys.678.0.html

- The mixed use of "Vertex Key","Key" or "RVK" in Blender was a bit
confusing. Also a 'vertex key' assumes keys per vertex, which actually is
only a single key for the entire shape. The discussions on blender.org
forums all mentioned "Shape" or "Blend Shapes", which I think is an OK
name for a "Vertex Key" in the UI. :)

- Most work was code spaghetti cleanup. Doing shape-keys now nicely goes
via the depgraph and DerivedMesh. That then allows to have different
shapes per object, with the new "Pin" feature.
Objects now define what Shape is shown (ob->shapenr)

- Added a Shape Panel in the Edit buttons with the various options

- Fixed a lot of issues in the IpoWindow, with drawing the channels.
For example, deleting a key-line there caused the entire Relative option to
go wrong, same for moving the lines up/down.
Changing key-line order now reflects in order of channels. The active
Shape is drawn more clear now too.

- Noticed it doesnt work yet for curves/lattice. Need modifier advise!
2005-09-26 15:34:21 +00:00
Joseph Gilbert
9656e8be02 Theeth's mathutils patch
- adds intersections for lines
- triangle area
- tracking quaternion from vector
- some helpful normal calculators
2005-09-26 15:06:28 +00:00
Joseph Gilbert
b6ecdb8c35 Project file update for elbeem
Warning clean up of python project
2005-09-26 14:46:14 +00:00
Ton Roosendaal
577456f86a Darn editmesh code! Trying to prevent user error (add overlapping faces)
caused a myriad of other errors in tools... now you couldn't create a
triangle if one 1 edge was in a face already.

I should have known it should be coded differently. :)
So, here's another version, which actually restores the old code, and
only has the exception on pressing Fkey.
2005-09-25 10:41:35 +00:00
Ton Roosendaal
a8043ed8d4 New!
Hooks now support vertex groups. With weight painting it looks very
interesting. Almost z-painting! :) Try a sphere with all vertices in a
group, hook it, and scale empty in object mode a bit.
http://www.blender.org/bf/rt3.jpg
(Which gives the idea to make a Displace Modifier working with normals and
vertexgroups..)

Works as follows now; in Mesh editmode, when no vertices are selected, it
tries to assign on CTRL+H command the active Vertex Group. (Menu is getting
to long now... need to think over). Only works when vertices are assigned
to a Vertex Group, this to calculate the Hook center.
2005-09-24 20:17:48 +00:00
Johnny Matthews
749253afa9 A fix for edgeslide non-prop mode sticking at 0%. 2005-09-24 18:44:24 +00:00
Martin Poirier
6e94b02616 Various Transform bugfixes.
- Trackball rotate was missing the NoConstraints flag
- Zooming didn't recalculate the 2D center correctly
- Zooming in transform was sending event to the 3D window even when working on UVs. (disabled when working on UVs for now, will need to send events to a 2D window handler eventually)
- In camera mode, when the selection was exactly on the camera, initgrabz was barfing, fallback to 1.0 now, which gives ok results.
2005-09-24 18:00:32 +00:00
Daniel Dunbar
8b7c690a0b - assorted warning fixes (signedness, float->double)
- added decimate,boolean modifier copydata methods
2005-09-24 16:02:56 +00:00
Daniel Dunbar
b3f0facfbe - shouldnt be a trailing comma after include 2005-09-24 15:50:56 +00:00
Ton Roosendaal
843bc28d37 Bug fix #3098
Grmble... and now the feature ALT+J 'join triangles' broke. :)
Also found out the Fkey option didn't work anymore on 2 triangles (makes 1
quad too). Luckily we got people testing eh!
2005-09-24 15:46:08 +00:00
Ton Roosendaal
e5b9f62c6e bugfix #3100
Hrms... previous commit here to make sure faces are not added 'double',
caused a part in removedoubles not to work well, removing too many
faces. Solved it more proper now.
2005-09-24 15:36:25 +00:00
Stephen Swaney
94aa843626 Patch #3099 - bugfix for #3097.
a little tweak for arg parsing.

Contributed by Ken Hughes.  Thanks!
2005-09-24 15:28:59 +00:00
Ton Roosendaal
0ce3341aaa Created a new sub-context ("tab") for all physics related button panels.
There we can find now Particles, Fields & deflectors, Soft Body and Fluids.
This also as preparation for more work on the particle side (becomes two
panels).

Also renamed panels, and made sure the name "Soft Body" is spelled every-
where the same!

It uses an icon as was designed long ago already. Needs some thinking...
2005-09-24 15:10:08 +00:00
Ton Roosendaal
abe9799c47 Made sure in vpaint, wpaint and tpaint the "draw extra wire" shows identical
as for non-paint drawmodes. I guess this exception was from period before
we had subsurfed paint drawing... right daniel?
2005-09-24 14:27:32 +00:00
Ton Roosendaal
1a82b405fd Older files, saved with old IKs, crashed sometimes on do_versions.
This whole backward conversion stuff is getting nuts! :)
2005-09-24 14:19:37 +00:00
Ton Roosendaal
e282f49904 Error in derivedmesh... OBACT undefined of course. :) 2005-09-24 13:55:39 +00:00
Ton Roosendaal
e1c56fc201 Made WeightPaint use shaded mode. This thanks to the preparations as done
by daniel before. :)
Note; the shaded display uses smooth normals by default, because thats how
the derived mesh works!

Daniel; I've changed the G_WEIGHTPAINT hack in derivedmesh code... no idea
how this could work even. Still ugly though.
2005-09-24 13:49:55 +00:00
Jiri Hnidek
ac4dde3477 - one line bug fix: when user changed position of keys in Ipo Curve Editor,
then position of keys weren't redrawn in Timeline
2005-09-24 12:42:30 +00:00
Ton Roosendaal
7cf9300d4d Old error... on ctrl+clicking new bones, the envelope bone distances were
not correctly flushed for connected bones.
2005-09-24 10:34:50 +00:00
Ton Roosendaal
6b33e12b90 Bug fix #3094
Playback of sequencer sound crashed in combination with dupliverted
Objects. (confirmed in osx only btw).

Found out there's old not-needed code in the update_for_newframe() call,
that was intended to do updates for Manipulators (calling countall()).
In countall(), the entire duplilists were generated over, just for
counting the totals.

First step was removing the countall from update_for_newframe, and added
a count_duplilist() call which doesn't generate the full duplilist. That
made Blender not crashing anymore, but gives "Error totblock", without
printing the block names even...

The weird thing also was that the crash showed severe memory corruption in
the malloc library, when combining audio scrubbing (SDL) and duplilists.

I now suspect there's a remaining issue with DerivedMesh, but for that I
need help from Daniel.
2005-09-24 09:05:48 +00:00
Nils Thuerey
4fb0cccc68 - merged latest version of fluid solver
(fixed shadowed variables warnings, removed cfgparser.hpp,
	added cfgparser.h, removed debugging output)
- added support for env. var BLENDER_ELBEEMDEBUG to enable
  debugging output again
- fixed missing triangle display (marching cubes produced v3=0 triangles)
- fixed geometry init bug (nearest intersection check
  for intersecting objects was messed up)
- changed position of derived mesh creation in DerivedMesh.c
  (for some reason the useDeform code is necessary, without it or
	 with useDeform=0 nothing is displayed)
- 3dviews now update every 2 seconds to show simulation progress
- note: mesh_strip_loose_faces(me); in ./source/blender/blenkernel/intern/mesh.c:937
  not necessary anymore?
2005-09-23 14:42:14 +00:00
Ton Roosendaal
f12a551213 Bugfix #2746
In Surface editmode, solid draw  mode, curves are drawn in wire now
(where in invisible). Its a simple fix, it shouldn't give issues with
the Nurbana work. :)
2005-09-23 08:29:32 +00:00
Ton Roosendaal
00d26ddf48 Bugfix #2948
For using the Fkey (add face) editmesh tool:
prevented triangles being made that are partially a quad face already.

Tools in editmode don't like such situations (tria->quad for example), also
subsurf hates it. :)
2005-09-23 08:12:52 +00:00
Ton Roosendaal
367c91bf34 Bug report #3092
Excluded the 3D cursor from being clipped with the new ALT+B clipping.

Also added a refresh for the object that gets (Pkey) separated in mesh
editmode, might solve issue reported by Campbell.
2005-09-23 07:28:15 +00:00
Ton Roosendaal
abb66762f1 Bugfix #3089
PoseMode rotate now also supports "Around individual Centers" for rotating.
2005-09-22 20:11:21 +00:00