blender.git
16 years agoClean up for Makefiles: some of the directories were being printed
Chris Want [Sat, 9 Apr 2005 22:40:34 +0000 (22:40 +0000)]
Clean up for Makefiles: some of the directories were being printed
wrong (e.g., "/Fuzzics" and "/Joystick", and some of  the solid stuff).
This was particularly noticable during "make clean".

16 years agoAdded console printout when rendering in parts, to keep track of progress.
Rob Haarsma [Sat, 9 Apr 2005 09:18:32 +0000 (09:18 +0000)]
Added console printout when rendering in parts, to keep track of progress.
Requested by Relic.

16 years ago - bug fix #2400 (I forgot to add some parameters in uiDefButF() function)
Jiri Hnidek [Fri, 8 Apr 2005 10:30:46 +0000 (10:30 +0000)]
 - bug fix #2400 (I forgot to add some parameters in uiDefButF() function)
    https://projects.blender.org/tracker/index.php?func=detail&aid=2400&group_id=9&atid=125

16 years agoToggle between Connected and Normal PET.
Martin Poirier [Thu, 7 Apr 2005 18:28:41 +0000 (18:28 +0000)]
Toggle between Connected and Normal PET.

Alt-C during transform (hotkey subject to change)

No visual clue right now other than what is transformed and it gets resetted everytime (not kept as a global flag).

So, still a lot to do regarding that.

16 years ago - fix for crash in separate_mesh... thats some pretty nasty code
Daniel Dunbar [Wed, 6 Apr 2005 17:21:49 +0000 (17:21 +0000)]
 - fix for crash in separate_mesh... thats some pretty nasty code

16 years agoFixed uninitialized causing almost infinite loop.
Jens Ole Wund [Wed, 6 Apr 2005 10:29:04 +0000 (10:29 +0000)]
Fixed uninitialized causing almost infinite loop.
Wind is media friction now, to have consitent relaxing when the squall is gone, fixed direrction.

16 years agofixed small glitch multiplying nodemass twice (thanks ton)
Jens Ole Wund [Tue, 5 Apr 2005 20:28:32 +0000 (20:28 +0000)]
fixed small glitch multiplying nodemass twice (thanks ton)
claened up sbObjectStep(...) to follow 'time step rules'
added really care for framerate in scene
renamed arguments in softbody_calc_forces(...); and softbody_apply_forces(...); for better reading
fixed particle integration to be ODE solver compatible

16 years agoAdded OPENGL includes to this one as well.
Kent Mein [Tue, 5 Apr 2005 15:06:41 +0000 (15:06 +0000)]
Added OPENGL includes to this one as well.

Kent

16 years agoAdds OpenGL includes for details see:
Kent Mein [Tue, 5 Apr 2005 15:02:21 +0000 (15:02 +0000)]
Adds OpenGL includes for details see:
http://projects.blender.org/tracker/index.php?func=detail&aid=2387&group_id=9&atid=127

Kent

16 years agoSupport for SGI Prism:
Chris Want [Tue, 5 Apr 2005 14:33:43 +0000 (14:33 +0000)]
Support for SGI Prism:

* set python version to 2.2;
* set link flags for ia64 linux to the same as i386, alpha.

Thanks to Wayne Vieira for this!

16 years agoModified the warnings used (was using c++ warnings for c files)
Kent Mein [Tue, 5 Apr 2005 14:32:35 +0000 (14:32 +0000)]
Modified the warnings used (was using c++ warnings for c files)

Kent

16 years agoCrease transformation
Martin Poirier [Mon, 4 Apr 2005 23:37:15 +0000 (23:37 +0000)]
Crease transformation

Behavior is a bit different. Instead of showing the weird two value thing like the old transform did, it always show the weight variation in +/- that is applied to every edge. Works a bit like scale. Move away from center to increase, move closer to decrease (between -1.0 and 1.0).
Works with PET (not using connection yet).

Also removed some missed global Trans variable abuse.

16 years agoMSVC 6.0 projectfiles
Martin Poirier [Mon, 4 Apr 2005 23:30:14 +0000 (23:30 +0000)]
MSVC 6.0 projectfiles

Removing subsurf.c from the BKE_blenkernel project.

16 years ago- Made SoftBody work with Particle Force Fields.
Ton Roosendaal [Mon, 4 Apr 2005 18:09:47 +0000 (18:09 +0000)]
- Made SoftBody work with Particle Force Fields.

- Added new (Particle) Deflector; type Wind.
  Wind gives constant directional force. It is animatable (Ipos) and reacts
  to Object scaling. Also uses FallOff. Works for particles and SoftBody
  quick movie check; http://www.blender.org/bf/0001_0250.avi
  test file is in download.blender.org/demo/test/wind_soft.blend

- Added MaxDist option for forcefields, to control its influence better.
  Is drawn as circle in 3d window.

Forcefields are a bit weak still... should react to scaling, or not; in
that case drawing should indicate it (done for spherical field now).

16 years agoMoved the start of an ifdef so it includes vars specific to the ifdef
Kent Mein [Mon, 4 Apr 2005 15:57:50 +0000 (15:57 +0000)]
Moved the start of an ifdef so it includes vars specific to the ifdef
to get rid of warnings about unused vars (on non __APPLE__ system)

Kent

16 years agoYuck, forgot to uncommit the ugly version of Mat3ToSize(). Caused scaling
Ton Roosendaal [Mon, 4 Apr 2005 14:21:09 +0000 (14:21 +0000)]
Yuck, forgot to uncommit the ugly version of Mat3ToSize(). Caused scaling
to do very weird things on rotated objects.

16 years ago - change make_orco_displist_mesh to use current editmesh as source
Daniel Dunbar [Mon, 4 Apr 2005 12:22:33 +0000 (12:22 +0000)]
 - change make_orco_displist_mesh to use current editmesh as source
   if needed.
 - don't return cached subsurf during editmode, order is messed up (fixes
   orco rendering).

16 years ago - dropped user specified vertex data functions for ccgsubsurf,
Daniel Dunbar [Mon, 4 Apr 2005 05:21:20 +0000 (05:21 +0000)]
 - dropped user specified vertex data functions for ccgsubsurf,
   didn't really add value. hardcoded to use float[3] now.

16 years ago - removed DispListMesh.{editedge,editface}
Daniel Dunbar [Mon, 4 Apr 2005 04:50:41 +0000 (04:50 +0000)]
 - removed DispListMesh.{editedge,editface}
 - removed displistmesh_from_{mesh,editmesh}
 - removed EditVert.ssco
 - removed unused functions for DispListMesh DerivedMesh

 Still need lots more testing for this stuff.

16 years ago - removed subsurf.c from SConscript
Daniel Dunbar [Mon, 4 Apr 2005 04:21:01 +0000 (04:21 +0000)]
 - removed subsurf.c from SConscript

16 years ago - moved subsurf_calculate_limit_positions to using ccgsubsurf
Daniel Dunbar [Mon, 4 Apr 2005 04:20:32 +0000 (04:20 +0000)]
 - moved subsurf_calculate_limit_positions to using ccgsubsurf
 - removed ME_CCG_SUBSURF define
 - dropped CCGSubSurf from editing menu... subsurf is always
   CCG now.

 NOTE: If you saved a file with CCGSubSurf set on the button
 will show up blank (will still work as a subsurf). Just change
 type back to Catmull-Clark.

 Wave bye-bye to HyperMesh...

16 years ago - work-in-progress: subsurf level 0 now just acts like a regular mesh,
Daniel Dunbar [Mon, 4 Apr 2005 03:38:21 +0000 (03:38 +0000)]
 - work-in-progress: subsurf level 0 now just acts like a regular mesh,
   before it would follow subsurf code path by creating fake displistmesh,
   etc... kinda fun for testing but just annoying now.
 - change to creasing behavior, to make sure that with full creasing effect
   is just simple subdivision.

16 years ago - kinda crazy, but replaced old ME_SIMPLE_SUBDIV method with just
Daniel Dunbar [Mon, 4 Apr 2005 02:55:56 +0000 (02:55 +0000)]
 - kinda crazy, but replaced old ME_SIMPLE_SUBDIV method with just
   using regular ccgsubsurf but with crease set to full.

16 years agoAdded a NO_NOR_RECALC context flag. With Individual extrude, the normals are already...
Martin Poirier [Mon, 4 Apr 2005 02:16:56 +0000 (02:16 +0000)]
Added a NO_NOR_RECALC context flag. With Individual extrude, the normals are already set by the extrude code, recalculating breaks them.

Cosmetic changes, renamed CTX_NOPET to CTX_NO_PET

CKey during transform now clears the constraint.

16 years ago - sorry, forgot to save before commit, part of vertex normal fix
Daniel Dunbar [Sun, 3 Apr 2005 22:02:03 +0000 (22:02 +0000)]
 - sorry, forgot to save before commit, part of vertex normal fix

16 years agoRemoves global variable access from TransData conversion fonctions.
Martin Poirier [Sun, 3 Apr 2005 21:52:11 +0000 (21:52 +0000)]
Removes global variable access from TransData conversion fonctions.

Added a NULL check on TransInfo->data before sorting. At that point, the conversion could have been cancel if there's no selected elements (caused segfaults with PET).
Another NULL check on TransInfo->data in postTrans fonction, since that is called on cancel on no selection too.

Was missing a matrix multiplication when setting TransData->dist on meshes which caused PET on scaled meshes to be bad. (bug report 2395: http://projects.blender.org/tracker/?func=detail&atid=125&aid=2395&group_id=9 )

16 years ago - added vertex normal calculation functionality to CCG subsurf (CCGSS
Daniel Dunbar [Sun, 3 Apr 2005 21:52:10 +0000 (21:52 +0000)]
 - added vertex normal calculation functionality to CCG subsurf (CCGSS
   is fast, but can be rather tedious to work with...)
 - vertex normals for smooth faces draw correctly now... this code also
   switched to drawing with GL_QUAD_STRIP which can be quite a bit faster
   (depends how fast graphics card calcs lighting, I get 50% faster here)

16 years ago - BLI_STRUCT_OFFSET was not defined correctly, fixed
Daniel Dunbar [Sun, 3 Apr 2005 21:45:43 +0000 (21:45 +0000)]
 - BLI_STRUCT_OFFSET was not defined correctly, fixed

16 years agoError in Softbody goal-min and goal-max correction. It was giving
Ton Roosendaal [Sun, 3 Apr 2005 20:57:31 +0000 (20:57 +0000)]
Error in Softbody goal-min and goal-max correction. It was giving
not as result the range as indicated!

16 years agoSoftBody:
Ton Roosendaal [Sun, 3 Apr 2005 20:13:10 +0000 (20:13 +0000)]
SoftBody:

- on add new SoftBody, it creates automatically edges in Mesh now, gives
  too confusing results otherwise
- if no edges exist in mesh, it also doesnt add diagonals for faces in
  softbody

Transform;

- fixed stupid 'used unitialized' gcc warning (sorry theeth!)
- made dualAxisConstraint() accept string too
- little cleanup of prints in using Manipulators

16 years agoAdded more dependencies to softbody, for correct recalc
Ton Roosendaal [Sun, 3 Apr 2005 16:57:16 +0000 (16:57 +0000)]
Added more dependencies to softbody, for correct recalc
For example; subsurfed softbody after play anim (ALT+A) didn't get
cleared correctly. Darn where_is_object stuff!

16 years ago - hidden edges were being drawn when DRAWEDGES was off
Daniel Dunbar [Sun, 3 Apr 2005 15:13:38 +0000 (15:13 +0000)]
 - hidden edges were being drawn when DRAWEDGES was off

16 years agoNew minimal & 2D drawing type for Manipulators; try F10 "rt" on 5 (or 6 for
Ton Roosendaal [Sun, 3 Apr 2005 13:12:08 +0000 (13:12 +0000)]
New minimal & 2D drawing type for Manipulators; try F10 "rt" on 5 (or 6 for
same style in trackball arcs)

Full collection can be found temporally here;
http://www.blender.org/bf/rt.html

16 years agoHidden verts using mesh connected PET caused segfaults.
Martin Poirier [Sun, 3 Apr 2005 06:09:31 +0000 (06:09 +0000)]
Hidden verts using mesh connected PET caused segfaults.
Was caused by the scratch array offsets counting hidden verts when, obviously, it shouldn't.

Also simplified the check for non connected when setting dist. This *might* have caused some errors.

16 years agoupdate to add subsurf csg stuff
Joseph Gilbert [Sat, 2 Apr 2005 20:26:12 +0000 (20:26 +0000)]
update to add subsurf csg stuff

16 years agoMore softbody goodness;
Ton Roosendaal [Sat, 2 Apr 2005 19:52:32 +0000 (19:52 +0000)]
More softbody goodness;

- Added Softbody effect for Lattices (not too useful yet without
  vertexgroups though)
- Added default vertex "goal" value + button, to be assigned when no
  vertexgroup exists (or vertex isn't in the group)
- Made softmin and softmax work as documented (defining min and max range)
- made changes in buttons send 'update' signal to softbody

And:

- added Nkey Properties to show lattice coordinates

16 years ago*** empty log message ***
Joseph Gilbert [Sat, 2 Apr 2005 18:42:30 +0000 (18:42 +0000)]
*** empty log message ***

16 years agoJacked up max resolu and resolv for Surface and Curve to 1024
Ton Roosendaal [Sat, 2 Apr 2005 18:42:16 +0000 (18:42 +0000)]
Jacked up max resolu and resolv for Surface and Curve to 1024

16 years ago - fix for drawing of hidden edges in editmode (w/ optimal off)
Daniel Dunbar [Sat, 2 Apr 2005 18:37:18 +0000 (18:37 +0000)]
 - fix for drawing of hidden edges in editmode (w/ optimal off)
   kinda hacky because it is in derivedmesh implementation not drawing
   logic where I would prefer it to be.

16 years ago - mesh was drawing edges underneath selected edges in optimal mode,
Daniel Dunbar [Sat, 2 Apr 2005 18:21:50 +0000 (18:21 +0000)]
 - mesh was drawing edges underneath selected edges in optimal mode,
   waste of time!
 - made solid face drawing respect hidden faces
 - made selection work for hidden face drawing when select visible is on

16 years ago - fix unused variable warning
Daniel Dunbar [Sat, 2 Apr 2005 18:20:03 +0000 (18:20 +0000)]
 - fix unused variable warning

16 years agoA little housekeeping:
Stephen Swaney [Sat, 2 Apr 2005 17:01:56 +0000 (17:01 +0000)]
A little housekeeping:
Object.c - expand evil 1 character name.  nicer error msg.
doc/Object.py - clarify Object.getData() doc

16 years ago - add include for allqueue prototype
Daniel Dunbar [Sat, 2 Apr 2005 15:56:16 +0000 (15:56 +0000)]
 - add include for allqueue prototype

16 years agoAdded signal OB_SB_REDO for ob->softflag to force a recalc.
Ton Roosendaal [Sat, 2 Apr 2005 15:55:15 +0000 (15:55 +0000)]
Added signal OB_SB_REDO for ob->softflag to force a recalc.
Now used after weight painting, so it updates immediately.

16 years ago - got tired of str[n]casecmp not declared warnings
Daniel Dunbar [Sat, 2 Apr 2005 15:36:57 +0000 (15:36 +0000)]
 - got tired of str[n]casecmp not declared warnings
 - added BLI_str[n]casecmp, use instead of regular versions
 - rewrote BLI_str[n]casecmp to not be stupid

16 years agoIntegration stage of Softbody project
Ton Roosendaal [Sat, 2 Apr 2005 13:57:23 +0000 (13:57 +0000)]
Integration stage of Softbody project

User level notes are in Wiki here;
http://wiki.blender.org/bin/view.pl/Blenderdev/Softbodies
And will be added in blender3d.org CMS later.

Tech level notes are still pending, but here's the most relevant ones;

- made ob->soft struct SoftBody to hold all settings, and read/save in
  files
- added (temporal!) conversion for the old settings. So: read old files
  with softbody experiments now, and save over!
- cleaned API calls for softbody, which are only 5 of them now:
  sbNew()
  sbFree()
  sbObjectStep()          (animation steps)
  sbObjectToSoftbody()    (full re-initialize data)
  sbObjectReset()         (only reset motion)
- API calls accepts time in frames now, within softbody.c it converts

Further, internally code was cleaned some (missing tabs etc). Also tried
to keep a well defined structure with hints how to add support for more
objects. Can write notes about that...

16 years agoMedian center with PET was wrong (reported by JMS).
Martin Poirier [Fri, 1 Apr 2005 20:04:24 +0000 (20:04 +0000)]
Median center with PET was wrong (reported by JMS).

Was dividing running sum of vectors by the total number of elements, not by the number of selected elements, as it should have.

16 years ago - bug fix for old subsurf, crash when using meshes with free vertices
Daniel Dunbar [Fri, 1 Apr 2005 19:51:28 +0000 (19:51 +0000)]
 - bug fix for old subsurf, crash when using meshes with free vertices

16 years ago - pickle transform didn't work well, backed out...
Daniel Dunbar [Fri, 1 Apr 2005 19:15:45 +0000 (19:15 +0000)]
 - pickle transform didn't work well, backed out...

16 years agoRemoved casting warnings from transform_manipulator.
Martin Poirier [Fri, 1 Apr 2005 18:39:39 +0000 (18:39 +0000)]
Removed casting warnings from transform_manipulator.
PET is now checked as a transform flag during transform. Much cleaner that way for NOPET context (extrude, duplicate)
Added Sphere as a new PET falloff mode (icon and all) and reordered them around in a more logical fashion (IMHO).

Also brought back Subsurf toggle with Shift-O (was supposed to be for PET object mode but that was canned).

16 years agoTeeth's msvc6 projectfiles commit solved almost all my bf compile probs, only one...
Rob Haarsma [Fri, 1 Apr 2005 11:26:03 +0000 (11:26 +0000)]
Teeth's msvc6 projectfiles commit solved almost all my bf compile probs, only one problem remained;
the including of <MT_assert.h> in the NG_network project. So here's a fix.

16 years ago - some code for testing the pickle matrix
Daniel Dunbar [Fri, 1 Apr 2005 06:13:30 +0000 (06:13 +0000)]
 - some code for testing the pickle matrix

16 years ago - part of creasing changes
Daniel Dunbar [Fri, 1 Apr 2005 03:02:13 +0000 (03:02 +0000)]
 - part of creasing changes

16 years ago - apply spike crease bug fix to ccgsubsurf
Daniel Dunbar [Fri, 1 Apr 2005 02:52:55 +0000 (02:52 +0000)]
 - apply spike crease bug fix to ccgsubsurf

16 years agoSince new transform and subsurf are default now.. no more need for the
Chris Burt [Fri, 1 Apr 2005 02:28:39 +0000 (02:28 +0000)]
Since new transform and subsurf are default now.. no more need for the
defines in the makefiles. Removed to prevent gunky buildup.

16 years ago - take out compile time conditional behavior of creasing for ccg
Daniel Dunbar [Fri, 1 Apr 2005 02:07:34 +0000 (02:07 +0000)]
 - take out compile time conditional behavior of creasing for ccg
   subsurf (always on)
 - bug fix, creasing wasn't evaluated properly after incremental change

16 years agoSacre bleh another bugfix!
Martin Poirier [Fri, 1 Apr 2005 01:25:00 +0000 (01:25 +0000)]
Sacre bleh another bugfix!

Mesh Connected PET was acting weird on geometry that curved on itself (reported by Desoto). Turned out the part of the floodfill working on verts already connected was just doing one case out of the two useful ones (little drawings helped :P).

16 years agoPush/Pull (aka: non proportionnal resize, original idea by Robert Tiess) slipped...
Martin Poirier [Thu, 31 Mar 2005 22:18:08 +0000 (22:18 +0000)]
Push/Pull (aka: non proportionnal resize, original idea by Robert Tiess) slipped in my last commit a bit, so might as well finish it.

Accesible with Shift-P (was free), the behavior is much like Shrink/Fatten. Pull mouse toward you to pull toward center, push away to push away. Constraint and PET works with it too, of course.

16 years agoTransform fixes
Martin Poirier [Thu, 31 Mar 2005 21:02:35 +0000 (21:02 +0000)]
Transform fixes

Connected PET for mesh had an infinite loop in some case. Fixed an made a bit faster.
Renamed the numinput flag.
Corrected a conflict in TransInfo flags. This was a crash waiting to happen.
NO_CONSTRAINT flag now correctly used to disable MMB and constraint hotkeys when needed.

Added check for the manipulator flag when drawing them before applying transformation matrix. Was really weird when doing MMB with rotation.

16 years agoChanging hard codec max frame release for a define (in blendef.h with the other maxim...
Martin Poirier [Thu, 31 Mar 2005 18:49:52 +0000 (18:49 +0000)]
Changing hard codec max frame release for a define (in blendef.h with the other maximums).

Tried to change it everywhere, hopefully I didn't miss any.

Also raised max frame to 30000 (maintainer of that code can safely modify it back since it is in one spot now ;) )
Needed that limit for a marketing video contract, might as well commit it.

16 years agoSome MSVC 6.0 projectfiles updates:
Martin Poirier [Thu, 31 Mar 2005 18:39:38 +0000 (18:39 +0000)]
Some MSVC 6.0 projectfiles updates:

BIF_transform.h added in BL_src
Adding moto include paths to EXP_expressions
SDL include paths and correct python version for all targets in SCA_gamelogic
KX_RayCast.cpp/h in KX_ketsji
SumoPHYCallbackBridge.cpp/.h in PHY_Sumo

16 years agoAdding CCG stuff to MSVC 6.0 projectfiles
Martin Poirier [Thu, 31 Mar 2005 18:22:43 +0000 (18:22 +0000)]
Adding CCG stuff to MSVC 6.0 projectfiles

16 years ago - potential fix for crash on amd64
Daniel Dunbar [Thu, 31 Mar 2005 17:15:44 +0000 (17:15 +0000)]
 - potential fix for crash on amd64

16 years ago - switch to drawing aging in and out of optimal mode
Daniel Dunbar [Thu, 31 Mar 2005 16:54:47 +0000 (16:54 +0000)]
 - switch to drawing aging in and out of optimal mode
 - switch to not using arena allocator in editmode for ccgsubsurf (memory
   doesn't get freed during incremental)

16 years agoRemove USE_CCGSUBSURFLIB stuff since it is always on now.
Stephen Swaney [Thu, 31 Mar 2005 16:21:08 +0000 (16:21 +0000)]
Remove USE_CCGSUBSURFLIB stuff since it is always on now.

16 years ago - disable overriding color (to show aging) during selection drawing
Daniel Dunbar [Thu, 31 Mar 2005 16:16:22 +0000 (16:16 +0000)]
 - disable overriding color (to show aging) during selection drawing

16 years ago - fix warnings for gcc
Daniel Dunbar [Thu, 31 Mar 2005 16:08:29 +0000 (16:08 +0000)]
 - fix warnings for gcc
 - some subsurf settings not correctly changed in editmode

16 years ago - adapt to reprototyping in BKE_DerivedMesh.h
Daniel Dunbar [Thu, 31 Mar 2005 15:57:18 +0000 (15:57 +0000)]
 - adapt to reprototyping in BKE_DerivedMesh.h

16 years ago - adapt caching check for G.editMesh->derived
Daniel Dunbar [Thu, 31 Mar 2005 15:55:31 +0000 (15:55 +0000)]
 - adapt caching check for G.editMesh->derived

16 years ago - removed USE_CCGSUBSURF define (always on now)
Daniel Dunbar [Thu, 31 Mar 2005 15:44:05 +0000 (15:44 +0000)]
 - removed USE_CCGSUBSURF define (always on now)
 - added G.editMesh->derived pointer... idea is to use this
   for mesh derived from editmesh instead of Mesh->derived (as the
   derived mesh tends to vary depending on what it came from).

   This part could be cleaner, also there may problems with it not
   being invalidated correctly.

 - And most importantly: In case people were beginning to worry all
   these edits were just crazy zr stuff, the big point comes about:
   Incremental subsurf calculation is now enabled. This gives massive
   speed improvements when editing a large mesh.

   For the eye-candy happy: try setting G.rt==52 before entering editmode
   and the edges and vertices (in optimal mode) will switch to displaying
   visually the age since a region has last been calculated. Lots of
   fun!

16 years ago - fix some signed/unsigned comparison warnings
Daniel Dunbar [Thu, 31 Mar 2005 15:15:12 +0000 (15:15 +0000)]
 - fix some signed/unsigned comparison warnings

16 years ago - perhaps I should commit a version that compiles
Daniel Dunbar [Thu, 31 Mar 2005 13:56:50 +0000 (13:56 +0000)]
 - perhaps I should commit a version that compiles

16 years ago - committed VecLength function for theeth
Daniel Dunbar [Thu, 31 Mar 2005 13:44:23 +0000 (13:44 +0000)]
 - committed VecLength function for theeth

16 years agoDifferent floodfill method for PET connected with mesh. More accurate but needs two...
Martin Poirier [Wed, 30 Mar 2005 23:19:42 +0000 (23:19 +0000)]
Different floodfill method for PET connected with mesh. More accurate but needs two temporary scratch arrays to keep vectors and nearest element pointers.

Will comment the code more later tonight, I'm a bit pissed at the moment (stupid errors right in your face. grrrr)

16 years ago - zero derived and decimated pointers on copy
Daniel Dunbar [Wed, 30 Mar 2005 18:06:42 +0000 (18:06 +0000)]
 - zero derived and decimated pointers on copy

16 years ago - added dlm->medge for displistmesh_from_mesh
Daniel Dunbar [Wed, 30 Mar 2005 17:40:51 +0000 (17:40 +0000)]
 - added dlm->medge for displistmesh_from_mesh

16 years ago - Claims of speed improvement last night were slightly
Daniel Dunbar [Wed, 30 Mar 2005 17:32:23 +0000 (17:32 +0000)]
 - Claims of speed improvement last night were slightly
   overrated. Turns out there was a bug in recalc code where
   in editmode mesh was getting reevaluated all the time (because
   ob->disp doesn't get built in editmode). This should fix.
 - Fix some normal calculation/backwards face drawing

16 years agoFix for centered submenu (for example py export script) also worked
Ton Roosendaal [Wed, 30 Mar 2005 14:17:53 +0000 (14:17 +0000)]
Fix for centered submenu (for example py export script) also worked
when menu didn't open to left/right but on top/bottom. Caused errors...

16 years agoTwo scons changes:
Stephen Swaney [Wed, 30 Mar 2005 12:13:02 +0000 (12:13 +0000)]
Two scons changes:

1) fix evil use of internal scons interfaces that breaks latest scons version.

2) a hack to turn on new CCGSUBSURF stuff by adding -DUSE_CCGSUBSURFLIB
to extra_flags.  This is currently the default for all platforms except
win32 (due solely to my ignorance of win32 compiler flags).

16 years agoBug in new drawing code; hack with storing stuff in editvertex->prev did
Ton Roosendaal [Wed, 30 Mar 2005 10:12:05 +0000 (10:12 +0000)]
Bug in new drawing code; hack with storing stuff in editvertex->prev did
not get restored OK. :)

16 years ago - initial commit of a real (as in not just copying the DispListMesh)
Daniel Dunbar [Wed, 30 Mar 2005 08:12:27 +0000 (08:12 +0000)]
 - initial commit of a real (as in not just copying the DispListMesh)
   DerivedMesh implementation of CCGSubSurf. Only used in editmode at
   the moment, and does not draw smooth normals correctly.
 - Just in its own this brings a rather large speedup for editing
   subsurfs.

16 years ago - add editedge and editface for displistmesh_from_editmesh
Daniel Dunbar [Wed, 30 Mar 2005 06:39:55 +0000 (06:39 +0000)]
 - add editedge and editface for displistmesh_from_editmesh

16 years ago - fix another minor use of wrong mface bug
Daniel Dunbar [Wed, 30 Mar 2005 06:24:34 +0000 (06:24 +0000)]
 - fix another minor use of wrong mface bug

16 years ago - fix silly bug in mesh DerivedMesh tex drawing func (only was drawing
Daniel Dunbar [Wed, 30 Mar 2005 05:57:40 +0000 (05:57 +0000)]
 - fix silly bug in mesh DerivedMesh tex drawing func (only was drawing
   first face.
 - change DerivedMesh callback prototypes to help eliminate errors

16 years ago - strange drawing bug, wierd vertices were showing up (wrong
Daniel Dunbar [Wed, 30 Mar 2005 05:35:01 +0000 (05:35 +0000)]
 - strange drawing bug, wierd vertices were showing up (wrong
   DerivedMesh call)

16 years ago- update to msvc7 projectfiles to accomodate recent file additions
Joseph Gilbert [Wed, 30 Mar 2005 05:19:33 +0000 (05:19 +0000)]
- update to msvc7 projectfiles to accomodate recent file additions
- fixed bad path in extern project file

16 years ago - restored msvc warning disable code
Daniel Dunbar [Wed, 30 Mar 2005 05:05:05 +0000 (05:05 +0000)]
 - restored msvc warning disable code

16 years ago - made some DerivedMesh drawing functions more generic (take callback
Daniel Dunbar [Wed, 30 Mar 2005 00:32:10 +0000 (00:32 +0000)]
 - made some DerivedMesh drawing functions more generic (take callback
   to determine if element should be drawn and to set draw options),
   which meant some could be combined - eases implementation of new
   DerivedMesh types and keeps more app specific logic out of DerivedMesh
   implementations.

16 years ago - zero derivedmesh pointers on load
Daniel Dunbar [Tue, 29 Mar 2005 17:52:14 +0000 (17:52 +0000)]
 - zero derivedmesh pointers on load

16 years ago - removed dlm->flag
Daniel Dunbar [Tue, 29 Mar 2005 17:20:28 +0000 (17:20 +0000)]
 - removed dlm->flag

16 years ago - remove free_displist_by_type
Daniel Dunbar [Tue, 29 Mar 2005 17:10:07 +0000 (17:10 +0000)]
 - remove free_displist_by_type
 - free derived mesh on freedisplist_object... bit of a hack but
   just to be safe. oh dependency graph where are you!

16 years agoProp mode goodie;
Ton Roosendaal [Tue, 29 Mar 2005 17:05:43 +0000 (17:05 +0000)]
Prop mode goodie;

- Made proportional edit in Mesh editmode use connectivity to clip the
  area where proportional editing is allowed.
  Uses some kind of manhattan distance for clip area still, so is slightly
  too large for diagonals. Will be worked on!

- Fix; in constraint code, using (0 0 0) delta caused NaN.

16 years ago - remove unused var
Daniel Dunbar [Tue, 29 Mar 2005 16:56:26 +0000 (16:56 +0000)]
 - remove unused var

16 years ago - added Mesh->derived and Mesh->decimated DerivedMesh pointers
Daniel Dunbar [Tue, 29 Mar 2005 16:43:39 +0000 (16:43 +0000)]
 - added Mesh->derived and Mesh->decimated DerivedMesh pointers
 - removed DL_MESH displist type!!!! Now store a DerivedMesh directly.
 - May still be some issues left having to do with releasing this
   at the right time (old code just splashed free_displist all
   over the place).

16 years agoTiny error in Jiri's commit. Unselected meta elements needs the quat flag too if...
Martin Poirier [Tue, 29 Mar 2005 16:12:42 +0000 (16:12 +0000)]
Tiny error in Jiri's commit. Unselected meta elements needs the quat flag too if they want to rotate using PET.

16 years ago - print # bytes to add on sizeerror
Daniel Dunbar [Tue, 29 Mar 2005 15:31:35 +0000 (15:31 +0000)]
 - print # bytes to add on sizeerror

16 years agoRemoved comma at end of enumerator list to please fussy compiler.
Stephen Swaney [Tue, 29 Mar 2005 14:27:20 +0000 (14:27 +0000)]
Removed comma at end of enumerator list to please fussy compiler.

16 years agoChanged:
Kent Mein [Tue, 29 Mar 2005 13:06:58 +0000 (13:06 +0000)]
Changed:
-       memset(m_keyboard_vector,32,0);
+       memset(m_keyboard_vector,0,32);

Patch submitted by Dave Jones

Kent

16 years ago - it is possible to rotate with MetaBalls in edit mode now
Jiri Hnidek [Tue, 29 Mar 2005 10:03:30 +0000 (10:03 +0000)]
 - it is possible to rotate with MetaBalls in edit mode now

16 years ago - simplify extverts handling
Daniel Dunbar [Tue, 29 Mar 2005 07:58:56 +0000 (07:58 +0000)]
 - simplify extverts handling