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

15 years agoCleanup of widget code;
Ton Roosendaal [Mon, 28 Mar 2005 14:00:49 +0000 (14:00 +0000)]
Cleanup of widget code;

- made more general calls with args for drawing types
- made it accept transparency for all modes (used while transform now)
- added argument to detect 'combo' mode, gave offsets to translate/scale
  handles in combos.
- added 'pie chart' on view-aligned rotate for widget
- made trackball for rotate widget rt==4 behave compatible
- removed redundant code for 'ghosting'

15 years ago - subsurf creation no longer needs extverts argument... removed
Daniel Dunbar [Mon, 28 Mar 2005 08:43:24 +0000 (08:43 +0000)]
 - subsurf creation no longer needs extverts argument... removed

15 years ago - added nors to DispListMesh (for face normals)... this is just to
Daniel Dunbar [Mon, 28 Mar 2005 08:17:51 +0000 (08:17 +0000)]
 - added nors to DispListMesh (for face normals)... this is just to
   avoid throwing them on later with addnormalsdisplist which is just
   silly and burdensome.
 - renamed displist_calc_vert_normals to displist_calc_normals

15 years ago - removed old prototype (subsurf_optimal)
Daniel Dunbar [Mon, 28 Mar 2005 07:40:19 +0000 (07:40 +0000)]
 - removed old prototype (subsurf_optimal)

15 years ago - added getMappedVertCoEM and drawMappedVertEM to DerivedMesh with
Daniel Dunbar [Mon, 28 Mar 2005 07:10:32 +0000 (07:10 +0000)]
 - added getMappedVertCoEM and drawMappedVertEM to DerivedMesh with
   implementations (slightly redundant, could implement draw in terms
   of first... can be cleaned later)
 - switch to use of new APIs... all uses of EditVert->ssco are now
   clean (read: ready to die as soon as a proper DerivedMesh implementation
   is swapped in with ccgsubsurf)

15 years ago - added drawMapped{Verts,Edges,Faces}EMSelect calls to DerivedMesh with
Daniel Dunbar [Mon, 28 Mar 2005 06:46:21 +0000 (06:46 +0000)]
 - added drawMapped{Verts,Edges,Faces}EMSelect calls to DerivedMesh with
   implementations
 - updated drawobject selection code to use DerivedMesh (last DispListMesh
   usage in drawobject.c that needs to be replaced! Woot!)
 - interface could still be a lot cleaner, mostly calculating indices for
   the various things to pass to selection color routine is hacky.

15 years ago - added mesh_get_cage_derived (returns appropriate DerivedMesh
Daniel Dunbar [Mon, 28 Mar 2005 05:58:43 +0000 (05:58 +0000)]
 - added mesh_get_cage_derived (returns appropriate DerivedMesh
   to be used as a cage - depends on ME_OPT_EDGE flag)

15 years ago - added set_framebuffer_index_color (shortcut for
Daniel Dunbar [Mon, 28 Mar 2005 05:55:45 +0000 (05:55 +0000)]
 - added set_framebuffer_index_color (shortcut for
   cpack(index_to_framebuffer(index)) but that is all that is ever
   used.

15 years agoadd new file DerivedMesh.c
Stephen Swaney [Mon, 28 Mar 2005 02:05:36 +0000 (02:05 +0000)]
add new file DerivedMesh.c

15 years ago - non-optimal subsurf was drawing regular mesh faces
Daniel Dunbar [Mon, 28 Mar 2005 01:21:27 +0000 (01:21 +0000)]
 - non-optimal subsurf was drawing regular mesh faces

15 years agoAlright, this hopefully fixes some problems with the last transform commit.
Martin Poirier [Mon, 28 Mar 2005 00:56:00 +0000 (00:56 +0000)]
Alright, this hopefully fixes some problems with the last transform commit.

Replaced old transform call when extruding and duplicating. Added a CTX_NOPET context flag for extrude. This is done rather a bit hackishly in Transform right now, better to do it with a on/off pet flag in TransInfo and check that everywhere instead.

Made sure transinfo Ext was initialised at NULL (I'm pretty sure it was in another spot, but LetterRip reported some crash leading me to believe that it might not be all the time. Better be safe than sorry).

Connected PET for curves uses the real distance for the fall off calculations now.

15 years agoTransform was still prototyped as having only one parameter in transform.h. Caused...
Martin Poirier [Sun, 27 Mar 2005 23:13:52 +0000 (23:13 +0000)]
Transform was still prototyped as having only one parameter in transform.h. Caused some warnings and possibly errors since some calls were missing the context.

The rest is proof of concept goody for a CONNECTED limiter for PET.
That is, PET affecting only elements which are connected together.

Only affects Curves right now since that was easier to test connectivity with. Still some polishing to do (falloff is based on distance of effect, not real distance), but it's a proof of concept, so...

15 years ago - update NMesh.c to use DerivedMesh API
Daniel Dunbar [Sun, 27 Mar 2005 22:51:48 +0000 (22:51 +0000)]
 - update NMesh.c to use DerivedMesh API

15 years ago - added DerivedMesh convertToDispListMesh function with implementations,
Daniel Dunbar [Sun, 27 Mar 2005 22:42:57 +0000 (22:42 +0000)]
 - added DerivedMesh convertToDispListMesh function with implementations,
   this is to ease migration.
 - updated particles and STL converter to use DerivedMesh interface. This
   is a bit wasteful at the moment, but these are not key performance areas.
   Can update once DerivedMesh has accessors for faces and face data.

15 years ago - added drawMappedEdgeEM function to DerivedMesh with implementations
Daniel Dunbar [Sun, 27 Mar 2005 22:14:57 +0000 (22:14 +0000)]
 - added drawMappedEdgeEM function to DerivedMesh with implementations
   (draws single mapped edge)
 - updated editmesh code to use new interface (-2 DLM uses)

15 years ago - added getNum{Verts,Faces} accessors to DerivedMesh with implementations
Daniel Dunbar [Sun, 27 Mar 2005 21:27:12 +0000 (21:27 +0000)]
 - added getNum{Verts,Faces} accessors to DerivedMesh with implementations
 - updated edit.c to use DerivedMesh interface

15 years agoContext parameter for Transform.
Martin Poirier [Sun, 27 Mar 2005 21:25:15 +0000 (21:25 +0000)]
Context parameter for Transform.

For tex space edit, crease (soon) and future use.

Manipulator assumes no context.

15 years agoScary commit!
Daniel Dunbar [Sun, 27 Mar 2005 20:39:28 +0000 (20:39 +0000)]
Scary commit!

 - Switch to using DerivedMesh interface for draw_mesh_object.
 - Code builds a "fake" DerivedMesh for Mesh/EditMesh which ends
   up making code a lot clearer.

Plenty of work to be done - the DerivedMesh is still very specialized
to how the code draws which means it is not a very general interface
and is a little messy. Should work though I hope.

15 years agoNOTE: New file to be added to project files
Daniel Dunbar [Sun, 27 Mar 2005 20:34:18 +0000 (20:34 +0000)]
NOTE: New file to be added to project files

 - add new DerivedMesh type, currently just encapsulates drawing

15 years agoTwo small fixes in transform, committed so Martin can work...
Ton Roosendaal [Sun, 27 Mar 2005 19:54:18 +0000 (19:54 +0000)]
Two small fixes in transform, committed so Martin can work...

- scale negative draws widget OK (scale widget only now)
- scale negative threshold (for flip) was on vertical Y, now is perpen-
  dicular to center of axis.

15 years agoButton image file with transform icons
Ton Roosendaal [Sun, 27 Mar 2005 18:18:08 +0000 (18:18 +0000)]
Button image file with transform icons

15 years agoTransform goodies;
Ton Roosendaal [Sun, 27 Mar 2005 18:17:48 +0000 (18:17 +0000)]
Transform goodies;

- Added icons for the Widgets to blenderbuttons pic
- Added in header - if widget in use - three buttons to choose widget type
  (hold shift for combo widgets)
- Hotkey CTRL+space now switches widgets on/off

I also noticed negative scaling doesn't work satisfying yet;
- for scale widget, using center didn't work correct anymore (fixed)
- negative scaling didn't even get applied! (fixed)
- but; scaling somethig negative now flips back to positive... ????

Last one i need Martin P for! Note that I had to change Mat3ToSize....

15 years ago - everyone loves prototypes
Daniel Dunbar [Sun, 27 Mar 2005 17:17:53 +0000 (17:17 +0000)]
 - everyone loves prototypes

15 years ago - one last CCG warning patch
Daniel Dunbar [Sun, 27 Mar 2005 14:38:18 +0000 (14:38 +0000)]
 - one last CCG warning patch