blender-staging.git
15 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.

15 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).

15 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

15 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.

15 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).

15 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.

15 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.

15 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

15 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...

15 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.

15 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.

15 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.

15 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

15 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 )

15 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)

15 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

15 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!

15 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

15 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!

15 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

15 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

15 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.

15 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

15 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

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

15 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

15 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.

15 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

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

15 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

15 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

15 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.

15 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

15 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...

15 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.

15 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

15 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...

15 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).

15 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.

15 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

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

15 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

15 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.

15 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

15 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).

15 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.

15 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.

15 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.

15 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

15 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

15 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

15 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)

15 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.

15 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

15 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

15 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

15 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

15 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!

15 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

15 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

15 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

15 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)

15 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

15 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

15 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

15 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...

15 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).

15 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. :)

15 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.

15 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

15 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

15 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

15 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)

15 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

15 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

15 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.

15 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

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

15 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!

15 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.

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

15 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).

15 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.

15 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

15 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.

15 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

15 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

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

15 years ago - added drawFacesTex function to DerivedMesh with implementations
Daniel Dunbar [Tue, 29 Mar 2005 07:51:00 +0000 (07:51 +0000)]
 - added drawFacesTex function to DerivedMesh with implementations
 - switched drawmesh.c to use new functions
 - WHEE! This is last such function that has to be written for the time
   being, and also effectively marks the end of DL_MESH! DispListMesh still
   hangs around as a kind of interchange format but should also die once
   DerivedMesh provides more intimate mesh access.

   DL_MESH (the displist type for DispListMesh) is still used to hold
   the DispListMesh, but that will die as soon as new subsurf switches to
   using a bonafide DerivedMesh implementation. There is also one silly
   usage for the decimator that is easy to kill.
 - Oh, and I also made potatoe mode draw mesh vertex colors - seemed to
   be more uniform behavior.

15 years ago - fix shadedisplist to use derivedmesh
Daniel Dunbar [Tue, 29 Mar 2005 06:46:11 +0000 (06:46 +0000)]
 - fix shadedisplist to use derivedmesh
 - also a bug fix! Made subsurfs now use tface colors when shading
   displist.

15 years ago - zero DispListMesh.{editedge,editface} on copy
Daniel Dunbar [Mon, 28 Mar 2005 21:53:26 +0000 (21:53 +0000)]
 - zero DispListMesh.{editedge,editface} on copy
 - calc normals for mesh displistmesh's

15 years ago - added mesh_get_derived_render
Daniel Dunbar [Mon, 28 Mar 2005 21:49:49 +0000 (21:49 +0000)]
 - added mesh_get_derived_render
 - cancelled previous commit to add RE_findTFAce, instead just added
   a MemArena to render struct... free'd at end of render, can be used
   to store other data as well
 - switch rendering to using DerivedMesh API... this is slightly more
   inefficient now because it is doing some unnecessary copying. Can
   be fixed by defining a DerivedMesh function to convert the object
   into a render object (on todo list)

15 years ago - Funny joke! Blender gave "Can't apply deform to shared mesh" error
Daniel Dunbar [Mon, 28 Mar 2005 19:55:04 +0000 (19:55 +0000)]
 - Funny joke! Blender gave "Can't apply deform to shared mesh" error
   and then went ahead and did it anyway. Someone is lying!

15 years ago - renderer currently uses links into tface structures that actually
Daniel Dunbar [Mon, 28 Mar 2005 19:43:45 +0000 (19:43 +0000)]
 - renderer currently uses links into tface structures that actually
   are owned by mesh (or displistmesh)... this causes problems for
   adapting to systems that build tfaces on the fly. Added RE_findTFace
   function to allow allocating tfaces inside renderer itself.

15 years ago - Bug fix, accidentally broke deform for non subsurfs.
Daniel Dunbar [Mon, 28 Mar 2005 19:41:33 +0000 (19:41 +0000)]
 - Bug fix, accidentally broke deform for non subsurfs.

15 years ago - switch some code to using BLI_strncpy (with right string lengths!)
Daniel Dunbar [Mon, 28 Mar 2005 18:37:19 +0000 (18:37 +0000)]
 - switch some code to using BLI_strncpy (with right string lengths!)

15 years agoShameless intrusive commit in Daniels beloved project! :)
Ton Roosendaal [Mon, 28 Mar 2005 17:17:51 +0000 (17:17 +0000)]
Shameless intrusive commit in Daniels beloved project! :)

The dl->mesh pointer was used without checking dl... dunno what this call
exactly does, but it causes crashes here. Fixed with a if(NULL) check.

15 years agoFix stupid error in connected code.
Martin Poirier [Mon, 28 Mar 2005 16:11:35 +0000 (16:11 +0000)]
Fix stupid error in connected code.

No more crashes, wheee!

15 years agobug fix for #2096:
Simon Clitherow [Mon, 28 Mar 2005 15:29:59 +0000 (15:29 +0000)]
bug fix for #2096:
  - switched strcpy calls to strncpy using FILE_MAXDIR & FILE_MAXFILE to prevent buffer overruns.  Non-windows code left untouched. :)

15 years ago - add bad level call stubs for bglBegin/bglVertex3fv/bglEnd
Daniel Dunbar [Mon, 28 Mar 2005 15:23:36 +0000 (15:23 +0000)]
 - add bad level call stubs for bglBegin/bglVertex3fv/bglEnd