272f35d427- ditch mesh_uses_displist
Daniel Dunbar
2005-07-18 20:49:19 +00:00
945c2e0a92- change convert subsurf to mesh to use mesh_create_derived_no_deform (converts any modifier now)
Daniel Dunbar
2005-07-18 20:48:16 +00:00
3b21e9543c- remove some extverts related cruft
Daniel Dunbar
2005-07-18 20:34:28 +00:00
609022a4e7- miscapitalized ghash...
Daniel Dunbar
2005-07-18 20:05:30 +00:00
28057fa2f6- yet another warning fix
Daniel Dunbar
2005-07-18 20:03:52 +00:00
47072e5084- another warning fix
Daniel Dunbar
2005-07-18 20:00:41 +00:00
02cadf84be- minor warning fix
Daniel Dunbar
2005-07-18 19:59:51 +00:00
1e3bd6d45e- added DerivedMesh.getVertCos function and implementations - added mesh_create_derived_no_deform[_render] - mesh_create_orco now always goes through a DerivedMesh, some redundant copying atm but can be fixed (and orco generation is not a big bottleneck)
Daniel Dunbar
2005-07-18 19:58:23 +00:00
291af7418eTwo small fixes (armatures);
Ton Roosendaal
2005-07-18 19:36:17 +00:00
7da6aa2cf7- need to zero hash pointer on free
Daniel Dunbar
2005-07-18 19:29:42 +00:00
37fe347a59- removed orco pointer from struct Mesh - switch renderer to store orco's in a hash table instead of caching in mesh (I don't like the renderer caching data in the actual mesh structure) - added mesh_create_orco[_render] function
Daniel Dunbar
2005-07-18 18:28:16 +00:00
2e2f62f6ee[ #2423 ] Object.getParentSubName - this is a submitted patch by lordbosh - adds to ability to get the bone name when and object is parented to a bone
Joseph Gilbert
2005-07-18 18:11:23 +00:00
f289329ed5- remove unnecessary editmode cycle on convert subsurf to mesh
Daniel Dunbar
2005-07-18 17:45:30 +00:00
06c7653be1- added boundbox_set_from_min_max function - fix DerivedMesh.getMinMax implementations to set min & max when there are no vertices - mesh boundbox calc was wrong in some cases, messed up HOMEKEY and localview zooming
Daniel Dunbar
2005-07-18 17:33:51 +00:00
02ab203c98Made action constraints to become backwards compatible. In the old version it used the 'global' (Pose Space) rotation to define the action timing. That was of course hardly useful, reason for many weird patched rigs. Nevertheless, sometimes it can be useful, and it's nice to see old files nicely work still. So: "Local" is an option now.
Ton Roosendaal
2005-07-18 17:27:17 +00:00
701b9c21fdmore preparations for bullet physics, and some eol issues with SCA_Joystick*
Erwin Coumans
2005-07-18 05:41:00 +00:00
56a85af31dIncrease the warning level for the python vcproj
Joseph Gilbert
2005-07-18 03:52:29 +00:00
e60291d39cHeader file clean up and warning fixes - Mostly this cleans up the #includes and header files in the python project. - Warning fixes are mostly casting issues and misc fixes. General warning clean up. - #include Python.h MUST come as the first include to avoid the POSIX redefine warning in the unix makefiles - fno-strict-aliasing flag added to makefile to fix a unavoidable type punning warning in types.c
Joseph Gilbert
2005-07-18 03:50:37 +00:00
9919df089dThird attempt to fix crash on leave editmode + delete loadsa bones! :)
Ton Roosendaal
2005-07-17 22:15:12 +00:00
1900b83301- "Text" tfaces should only be drawn from deformed (not subdivided) mesh
Daniel Dunbar
2005-07-17 21:54:12 +00:00
c6a72088a2- convert write_object_stl to use mesh_get_derived_final
Daniel Dunbar
2005-07-17 21:48:23 +00:00
dfe15f57e8- convert draw_mesh_tfaces to use mesh_get_derived_final instead of calling mesh_uses_displist (becoming obsolete)
Daniel Dunbar
2005-07-17 21:43:35 +00:00
a92a513c19- missed commit of file with mesh_calc_normals
Daniel Dunbar
2005-07-17 21:24:43 +00:00
5bc4eae608- commit patch from Matthew Plough to request buffer with SWAP_COPY behavior
Daniel Dunbar
2005-07-17 20:40:07 +00:00
e6e9b1ea80- replace displistmesh_calc_normals by mesh_calc_normals - convert MeshDerivedMesh to calculate new vertex normals and such on initialize, means copy free conversion to DispListMesh - replace vertex access through function by direct access fo MeshDerivedMesh - shadeDispList was not getting correct orco's
Daniel Dunbar
2005-07-17 20:12:16 +00:00
75fefdc5a7- need to release object DerivedMesh prior to release object data
Daniel Dunbar
2005-07-17 19:15:06 +00:00
141e577353More fixes thanks to irc testing;
Ton Roosendaal
2005-07-17 19:08:04 +00:00
a229931ce6- switch shadeDispList to use DLM face normals if available
Daniel Dunbar
2005-07-17 18:51:50 +00:00
033f3d5126- switch shadeDispList to always using DispListMesh from mesh_get_derived_final... a bit slower atm because of extraneous copying (will be fixed shortly) but normals are correct for deformed meshes now (don't think they ever have been)
Daniel Dunbar
2005-07-17 18:37:27 +00:00
f79ff93497- assorted fixes for drawing "Text" tfaces
Daniel Dunbar
2005-07-17 18:31:39 +00:00
3d155330e1- remove extverts argument from vertexnormals_mesh - changed new_NMesh_internal to not take extverts argument
Daniel Dunbar
2005-07-17 18:22:23 +00:00
61fe766897- removed unused DL_TRIA type
Daniel Dunbar
2005-07-17 17:43:15 +00:00
726aea881c- convert mesh_modifier to return deformed verts instead of leaving in a DL_VERTS type displist (and modifying mesh) - removed DL_VERTS displist type (woot woot) - makeDispListMesh now puts deformed verts in object->derivedDeform - switch over other system parts to new deformed vert storage, still kinda hacky and maybe some inconsistencies... will be sorted out soon enough. - moved build_particle_system to makeDispListMesh... this may have adverse side effects, needs to be sorted out with depgraph system
Daniel Dunbar
2005-07-17 17:41:03 +00:00
fdaf1c6eacThree fixes, thanks to irc reporting of Basse & Sten;
Ton Roosendaal
2005-07-17 17:36:54 +00:00
099b3e786c- made particles use displistmesh not DerivedMesh interface
Daniel Dunbar
2005-07-17 17:33:09 +00:00
675f18707e- back out ton's vertex_duplilist "fix"
Daniel Dunbar
2005-07-17 16:16:22 +00:00
5aa6ca6960Wire selecting in Armature editmode accidentally broke. :)
Ton Roosendaal
2005-07-17 16:04:53 +00:00
51fe322063- add extern to selboxes variables declaration
Daniel Dunbar
2005-07-17 16:02:10 +00:00
261bd94e7fFix: outliner crash on deleting bones in editmode
Ton Roosendaal
2005-07-17 15:45:35 +00:00
d5ccd35f4cWhile checking old bugreports on the todo tracker, found weak issue in current depgraph... that's when an object has multiple "parents", which have different relation types. (one parent moves Object, the other deforms). In that case the result was undefined.
Ton Roosendaal
2005-07-17 12:20:08 +00:00
3ab974ca58Bugfix #2836
Ton Roosendaal
2005-07-17 09:49:02 +00:00
ef73b6f140New: B-Bones now support adjusting the 'handle length', with the values "In" and "Out" in the new posemode Panel, editing buttons.
Ton Roosendaal
2005-07-17 08:58:42 +00:00
a8a69f5f63- The "in" and "out" interpolation values for B-Bones were not copied to and from editmode Armature
Ton Roosendaal
2005-07-17 08:56:51 +00:00
581df16520- add DerivedMesh *derivedDeform to struct Object, this is temporary until fullblown modifier system comes in, need it now to move forward.
Daniel Dunbar
2005-07-17 05:34:35 +00:00
e1c653c5c3- convert vertex_duplilist to use mesh_get_derived_deform - convert object_apply_deform to use mesh_get_derived_deform - convert build_particle_system to use mesh_get_derived_deform - remove apply option from mesh_modifier
Daniel Dunbar
2005-07-17 05:20:57 +00:00
e6f4527813- added DerivedMesh.getMinMax function (calls DO_MINMAX on all vertices) - static'd boundbox_displist - added getMinMax implementations for all existing DerivedMesh implementations (mesh, editmesh, displistmesh, and ccgsubsurf)
Daniel Dunbar
2005-07-17 04:17:33 +00:00
80327e675a- converted draw_tfaces3d and bbs_mesh_solid to use mesh_get_derived_deform... (whats that? more general AND it uses less lines? how can that be!!!)
Daniel Dunbar
2005-07-17 03:48:29 +00:00
b3169b22b8- convert give_parvert to use mesh_get_derived_deform
Daniel Dunbar
2005-07-17 01:29:12 +00:00
bbb83af14c- converted write_videoscape_mesh to use mesh_get_derived_deform
Daniel Dunbar
2005-07-17 01:23:43 +00:00
67d58c0f45- added DirectMesh.getVert{Co,No} functions - added mesh_get_derived_deform function (always returns a DerivedMesh corresponding to deformed (but not subdivided) mesh). used in places where original mesh is to be displayed but with deformed coordinates (vpaint for example). - added DirectMesh.getVert{Co,No} implementations for MeshDerivedMesh - updated vpaint to use mesh_get_derived_deform
Daniel Dunbar
2005-07-17 01:18:59 +00:00
7c9422111banother file behind the #USE_BULLET
Erwin Coumans
2005-07-16 22:13:20 +00:00
851d4016f8Reverted to good line endings
Alexander Ewering
2005-07-16 22:02:59 +00:00
2d73b31affpreparation for bullet physics
Erwin Coumans
2005-07-16 21:47:54 +00:00
3166974a67- switch M_NMesh_GetRawFromObject to always get mesh data from DerivedMesh (needs testing) - added needsFree argument to mesh_get_derived_final
Daniel Dunbar
2005-07-16 21:20:44 +00:00
d2fb9ae533- added dontFreeNors flag to DispListMesh as well - changed mesh_get_derived_render to always return a DerivedMesh (even if no subsurf) - changed init_render_mesh to always get the mesh data through a DerivedMesh
Daniel Dunbar
2005-07-16 21:16:05 +00:00
6dd382f966- added dontFreeVerts and dontFreeOther flags to displistmesh for situations where data can be shared easily. - added convertDisplistToMesh function for regular mesh DerivedMesh interface (how many times can *you* use mesh in one sentence?) - do_puno was uninitialized in init_render_mesh - added mesh_get_derived_final (temporary), difference from mesh_get_derived is it always returns a derived mesh, even if no subsurf.
Daniel Dunbar
2005-07-16 21:03:28 +00:00
0d806074b3- remove call to mesh_modifier from init_render_mesh, shouldn't be needed anymore
Daniel Dunbar
2005-07-16 20:42:20 +00:00
e67ba0ae33More armature goodies;
Ton Roosendaal
2005-07-16 19:07:02 +00:00
feb4f51103Added Bullet library. Only windows projectfiles for now. Will ask Hans to get unix makefiles done.
Erwin Coumans
2005-07-16 09:58:01 +00:00
1921a356beAdded type for Bullet collision detection and physics engine. This will improve collision detection and physics for the game engine (Ketsji). Bullet uses optionally uses the ODE quickstep solver.
Erwin Coumans
2005-07-16 09:55:22 +00:00
3be3e68e2fFix radiosity "Collect Meshes" to ignore TFaces set to "Invisible".
Alexander Ewering
2005-07-16 01:06:55 +00:00
8d2176bfeb- removed makeDispList, set_displist_onlyzero - appropriate callers of makeDispList replaced with depgraph calls - unappropriate places just killed... small chance this gives some errors in corner cases if dep graph isn't notified (example, font family displists) but these can be tracked down as they show up. - still a large number of callers of makeDispListCurveTypes, but makeDispListMesh has just a few.
Daniel Dunbar
2005-07-15 20:56:55 +00:00
10d865df25- remove calls to showkeypos from exit editmode functions, should be handled by DAG update now. (ton: please confirm)
Daniel Dunbar
2005-07-15 18:15:56 +00:00
e0dd08dc52Part #2 to vert color fix in new subdivide, Please check UV and Vertcolor with new subdivide.
Johnny Matthews
2005-07-15 18:13:21 +00:00
8c2df5ddd1- missed a space in header title text
Daniel Dunbar
2005-07-15 17:57:40 +00:00
0be013010f- decided it made more sense to make a key_get_active function, switched to that in editmesh as well as for edit{curve,lattice} - added a G.editModeTitleExtra string that gets displayed in header info string in editmode. currently used to display "(Key)" when editing a key (before there was not UI level display of this info).
Daniel Dunbar
2005-07-15 17:55:19 +00:00
5263d588c1- removed unused actkey field from struct Key
Daniel Dunbar
2005-07-15 17:35:10 +00:00
925c024653- more signedness warning fixes in editsima - added mesh_get_active_key and replaced code in editmesh to use this - removed obsolete code in object_deform
Daniel Dunbar
2005-07-15 17:31:58 +00:00
e85355b710Part #1 of the fix for UV colors in new subdivide code
Johnny Matthews
2005-07-15 16:12:34 +00:00
573f86bc3c- remove some redundant drawing code - mousewheel zooming in drawipo used uninitialized var (MSVC run time error).
Daniel Dunbar
2005-07-15 15:00:08 +00:00
2501bc1ad6- static'd several functions in key.c, just for readability
Daniel Dunbar
2005-07-15 14:50:48 +00:00
6f264a0e5bBPY Support for Deform Parenting and Vertex Parenting
Martin Poirier
2005-07-15 05:30:58 +00:00
5332854a7b- more warning killing: unused vars, double -> float constants, signedness
Daniel Dunbar
2005-07-14 22:21:12 +00:00
480b8ce10b- switch em_{vert,solid,wire}offs to be unsigned - some other twiddles to fix mixed signedness compiler warnings
Daniel Dunbar
2005-07-14 22:16:38 +00:00
40bfa5c7a1Appending armature crashed... nasty stuff, but works again :)
Ton Roosendaal
2005-07-14 22:04:57 +00:00
8da29921ba- added mesh_get_texspace (should be used instead of direct access) which calculates texspace on demand if need be. - removed almost all calls to tex_space_mesh
Daniel Dunbar
2005-07-14 21:57:18 +00:00
0b89046790- incremental subsurf calc in mesh_changed didn't actually make sure mesh used subsurf before calc (led to crash when subdiv==0). Woops!
Daniel Dunbar
2005-07-14 20:42:43 +00:00
fc0c2ef251Adding CTRL stepping for Edgeslide. Mouse control is still not finished here, this is just a temporary fix until it can be done right.
Johnny Matthews
2005-07-14 19:44:10 +00:00
3929802335- switch several instances of makeDispList to use more specific version
Daniel Dunbar
2005-07-14 18:14:19 +00:00
6711eb9152- make mesh_changed invalidate the mesh boundbox as well
Daniel Dunbar
2005-07-14 18:06:53 +00:00
b22e3414ca- add mesh_get_bb function to return mesh boundbox and calc if needed - switch all mesh boundbox access to go through mesh_get_bb - switch object_handle_update to call mesh_changed instead of making the displist data immediately (delayed calculation)
Daniel Dunbar
2005-07-14 18:04:27 +00:00
3f769ff371- change subsurf_make_derived_from_editmesh to check that subdivision levels match before proceeding with incremental (need to build new subdivision object if levels have changed)
Daniel Dunbar
2005-07-14 17:59:36 +00:00
5bcdd33770- fix extremely dismal approximation of vertex & face counts for count_object. It is pretty obvious whoever changed this didn't think about it much or test it well... *cough* *cough*.
Daniel Dunbar
2005-07-14 17:57:27 +00:00
ed8d745e0fArmatures now draw bone names over solid.
Ton Roosendaal
2005-07-14 17:23:26 +00:00
aa454cd412- switch to using DAG_object_flush_update instead of mesh_changed - mesh drawing calculated derived surface before clipping to view matrix, waste for offscreen objects
Daniel Dunbar
2005-07-14 17:10:44 +00:00
abbda3a8a1- use cos not cosf
Daniel Dunbar
2005-07-14 15:59:42 +00:00
6fefc761cc- declare Mesh.mface and Mesh.tface to be of proper type instead of void*
Daniel Dunbar
2005-07-14 15:58:32 +00:00
d22d9ab3c8- switch to new mesh_set_smooth_flag call (takes mesh object argument instead of raw mesh)
Daniel Dunbar
2005-07-14 15:57:14 +00:00
a2694df9d0- removed line that slipped in by accident
Daniel Dunbar
2005-07-14 15:50:43 +00:00
f265d4925aBug reported by Guillaume LeCocq
Ton Roosendaal
2005-07-14 15:49:31 +00:00
befc2bbc41- split makeDispList into makeDispList{Mesh,MBall,CurveTypes}, there is still a makeDispList that dispatches to the appropriate one. makeDispList is on the way out and this makes it easier to track down exactly which places use makedispList and for what types of objects. - switch calls to makeDispList to appropriate more specific function (if the object type is known by caller). - added mesh_changed function that invalidates cached mesh data (but does not rebuild, mesh data gets rebuilt on access). Most old calls to makeDispListMesh use this instead now.
Daniel Dunbar
2005-07-14 15:48:01 +00:00
1261dc7e4e- part of DerivedMesh interface change from yesterday that got left out
Daniel Dunbar
2005-07-14 15:30:30 +00:00
274e4f5a1fBug fix#2799
Ton Roosendaal
2005-07-14 13:50:48 +00:00
4a14cb6f01Bugfix for #2826
Ton Roosendaal
2005-07-14 13:44:59 +00:00
120427e96bFix for a *very* nasty bug... somewhere in the ancient past - I tracked it back to 1.4 - comparing pointers apparently gave warnings or errors... I don't really have a memory of that. Could be the Irix compiler.
Ton Roosendaal
2005-07-14 13:12:29 +00:00
e5a639a161New:
Ton Roosendaal
2005-07-14 12:44:33 +00:00
256a5cd2c0Databrowse needed new code to handle the hide dot file correctly. Added a comment explaining what and why.
Martin Poirier
2005-07-14 06:25:02 +00:00
b89035906dMathutils update - also included is some fixes for preprocessor inclues and some clean up of the previous commit
Joseph Gilbert
2005-07-14 03:34:56 +00:00