d81a5abf32Moving functions and calls to have a cleaner situation for futre work (implicit solver .. n stuff)
Jens Ole Wund
2005-08-19 22:55:05 +00:00
6d60b0acfeMore armature stuff;
Ton Roosendaal
2005-08-19 21:37:29 +00:00
91e39a0ec3CTRL+click now also allows Root-point extrude of Bones.
Ton Roosendaal
2005-08-19 16:15:51 +00:00
c8a5887daaForgot hidden flag update in this file...
Ton Roosendaal
2005-08-19 12:39:43 +00:00
9e05d6efb5Armature "Envelope" editing.
Ton Roosendaal
2005-08-19 12:35:15 +00:00
92731af84fsupport for __MINGW32__ compiler, it doesn't have __forceinline
Erwin Coumans
2005-08-18 17:32:25 +00:00
e0189e3a96spack() is no longer used in the blender core, so I moved it to this gameengine source file that depends on it.
Chris Want
2005-08-18 16:48:10 +00:00
da930194f9- added code to draw loose edges in textured and fastshade views
Daniel Dunbar
2005-08-18 11:49:33 +00:00
8c41c00ff7- added DerivedMesh.drawUVEdges function & implementations - removed DerivedMesh.drawLooseEdges and replaced with much more general drawEdgesFlag function that draws based edge flags. - switch DerivedMesh.drawFacesTex to give user control over which faces are drawn - added object_uvs_changed and object_tface_flags_changed functions to do object recalc flag flush/redraw queueing and added calls in appropriate places - added various edge flags to mark TFace information. This is used by the drawEdgesFlag routine and was the best way I could come up with to deal with drawing TFace information from modifier stack. Unfortunate side effects are (1) uses a lot of MEdge flags (although not needed in file so thats fine) and (2) requires recalculation of modifier stack on UV selection changes. #2 is disappointing but I could not find a better solution. - update UV mesh shadow drawing to use modifier result. At the moment just uses the final result but probably should be integrated with the editmode cage option. - convert draw_tfaces3D to use drawEdgesFlag routine which cleaned up the code quite a bit. - convert draw_tface_mesh to draw using result of modifier stack. Same comment about which result actually gets draw in FACESELECT mode as for UV editor shadow drawing applies.
Daniel Dunbar
2005-08-18 11:31:20 +00:00
b774712d80- bug fix, convert modifiers function used a shared displistmesh which could lead to crash - bug fix, exit_editmode was warning too often about free'ng baked softbody data.
Daniel Dunbar
2005-08-18 11:14:28 +00:00
ec5fa2f4f9- remove redundant calculation of spring length
Daniel Dunbar
2005-08-18 11:04:22 +00:00
4a50f5b593Support for 'Bullet' in the Makefiles. Enable with:
Chris Want
2005-08-18 06:07:02 +00:00
f7914a2248The name of an included header had the capitalization wrong, causing problems on unix.
Chris Want
2005-08-18 06:04:50 +00:00
c99c7fbcb3some more fixes in the raycast/mouse over
Erwin Coumans
2005-08-17 19:52:56 +00:00
829cb52ac6Got rid of a couple other warnings, of the form: struct blah was declared in param list this is probably not what you want...
Kent Mein
2005-08-17 17:56:54 +00:00
72d60d7b63added the "mouse over any", makes the sensor more useful
Erwin Coumans
2005-08-17 14:29:58 +00:00
8b060dd5ad- update to constant.c - give it the key/items interface - creates some factory functions for const generation - genutils methods - method for getting module constants - method for throwing errors with a print string - updates to function names - clean up interpreter launch a bit
Joseph Gilbert
2005-08-17 14:26:00 +00:00
2872263377- New feature: shift+ctrl+t in Mesh editmode splits quads in exact opposite way. Requested for low-poly modeling.
Ton Roosendaal
2005-08-17 13:26:42 +00:00
55b5abe2c9- bug fix, free bake didn't work - bug fix, force free of bake data on exit editmode, can't give user a choice
Daniel Dunbar
2005-08-16 22:58:31 +00:00
c6abd2d106For lukep:
Chris Want
2005-08-16 22:11:40 +00:00
235733d220Turning off tweak mode until there's a better UI.
Martin Poirier
2005-08-16 21:58:26 +00:00
2862e25147- bug fix, draw wire extra should use cage with vpaint/wpaint/tpaint
Daniel Dunbar
2005-08-16 20:42:52 +00:00
d408dcdaadAdded prototypes for some stubs to shut gcc up ;) (In doing so found a stub that had wrong # of args)
Kent Mein
2005-08-16 20:21:43 +00:00
392e4b89f5Tweak mode
Martin Poirier
2005-08-16 18:23:28 +00:00
cf8e820140Ooops, one slipped on porting
Jens Ole Wund
2005-08-16 17:54:59 +00:00
43e329edb7softbody <--> softbody collision make softbodies collide with objects patented to armatures (bones), lattices .. )
Jens Ole Wund
2005-08-16 17:48:47 +00:00
7c539f8ebcToSphere changes. - Scale goes from 0 (original) to 1 (full sphere) instead of the contrary - Mouse control is done by moving pointer left / right on screen. Full right is 1, left is 0. There's a 10% width padding on each border. - Works correctly with Shift modifier now.
Martin Poirier
2005-08-16 17:37:42 +00:00
b45ecb43efNew! When weight-painting a Mesh, and select a Bone, you can use transform options on the Bone (G, R, S). The manipulator doesn't show btw. Is usful to get immediate feedback on how painted weights behave with Bones.
Ton Roosendaal
2005-08-16 10:17:02 +00:00
f1609dde11Added new button type: ROUNDBOX
Ton Roosendaal
2005-08-15 19:46:09 +00:00
6bc3f4746bA nice character modeling time-saver:
Ton Roosendaal
2005-08-15 16:12:50 +00:00
3778c08136Using NKey panel in 3d window on editmode armature now applies the new 'mirror edit' as well. Including the 'roll'.
Ton Roosendaal
2005-08-15 14:44:51 +00:00
1dcec68ab4EditMode armature: mirrored editing feature.
Ton Roosendaal
2005-08-15 14:02:03 +00:00
2abd79b491- readded DL_VERTS type to store lattice deformed verts - new feature, twiddled with lattice resizing to try to maintain existing vertex changes... much nicer than just resetting the lattice if you decide you need more detail in the lattice. - modifiers work with lattices now. yes, that does mean you can make a chain of lattices effecting each other 8 miles long. - some cleanup of softbody code, was rather splintered and call path was twisted and confusing. reworked main object step routine to do things in a more obvious and consistent manner and without duplicate code - added ob->softflag OB_SB_RESET instead of sbObjectReset call - modifier changes reset softbody now - moved curve_getVertexCos/curve_applyVertexCos into curve.c - update curve modifier eval to work with virtual modifiers - update modifier apply to work with curves/surfs - update make parent to also recalc object data
Daniel Dunbar
2005-08-15 10:30:53 +00:00
91cd2d8138Crash bug! Reading older files with follow-path constraints failed...
Ton Roosendaal
2005-08-15 09:45:48 +00:00
0c7f65d152- added view3d_get_object_project_mat function, returns mat to project object cos into screenspace without mucking with gl matrices. - added view3d_project_ functions, take arguments instead of using globals - removed View3D.{mx,my,mxo,myo} - switch drawobject foreachScreenVert functions to use new projection functions - switch edge slide to use new projection functions, fixes erratic behavior (project was using wrong mat I believe) - bug fix in edgeslide, nearest edge to start was one-off
Daniel Dunbar
2005-08-15 04:10:02 +00:00
74623f33aa- get rid of unused object_deform_curve - some tweaks to modifier UI thanks to Bart (aligning buttons)
Daniel Dunbar
2005-08-15 00:53:51 +00:00
15da1d13c7- bug fix#2935, DAG update was not called on new boolean object
Daniel Dunbar
2005-08-14 19:44:43 +00:00
6784198d23Bugfix #2943
Ton Roosendaal
2005-08-14 19:26:58 +00:00
e0e6e2fe4ado_versions() for 2.37 was reading a library data pointer that wasn't set yet. Crashed in windows... Thanks Desoto for finding it!
Ton Roosendaal
2005-08-14 16:03:22 +00:00
8e70766a82- forgot to remove a function prototype from header on static'ng
Daniel Dunbar
2005-08-14 12:54:57 +00:00
6880801aad- enable modifiers for curve/font/surf types... a little hacked in but should work ok. Means new features! Wave effect for curve/font/surf and armature deform as well. - added undo_push calls for some modifier ops.
Daniel Dunbar
2005-08-14 12:17:34 +00:00
65576fe663Patch provided by Adam (ajk48n). It reverses the turntable rotation when you have the view 'upside down', resulting in correct feedback.
Ton Roosendaal
2005-08-14 11:15:36 +00:00
f47f8d9418Patch provided by Campbell Barton; this makes the editmode Mesh CTRL+T "convert to triangles" check for shortest diagonal to decide how the triangles will be made.
Ton Roosendaal
2005-08-14 10:58:17 +00:00
524d3493f7- cleaned up edge drawing a tad, there were issues with mesh's with "loose" edges (edges without a face) and drawing in solid mode. they would either not draw, or draw with a nasty selection outline. Added a ME_LOOSEEDGE flag to mark such edges in displists/mesh and editmode sets it. - changed DerivedMesh drawEdges to take an argument whether it should draw loose edges or not
Daniel Dunbar
2005-08-14 10:35:58 +00:00
e173de2462Patch provided by Matt Ebb, cut sequence strips (patch tracker). There were a couple of issues with the implementation:
Ton Roosendaal
2005-08-14 10:31:14 +00:00
0721727887- added hook "cursor center" feature (sets hook center to cursor position), gives better control over falloff - added modifier UI access to hook "select" and "reassign" features - bug fix, unbroke path-tilt drawing
Daniel Dunbar
2005-08-14 07:02:51 +00:00
93aeb6b318- added make_orco_curf, even does keys! - removed {lattice,curve}_modifier functions - changed render code to use displist for curve rendering instead of making its own. required adding a bevelSplitFlag field to DispList. I also fixed the bevel face splitting which did not work correctly in many situations. - changed so all curve data creation happens in makeDispListCurveTypes, includes making bevel list and filling polys - changed render code to use displist for surface rendering - removed Curve.orco variable, built as needed now - removed stupid BLI_setScanFill* functions... why use a function argument when you can use a global and two functions! Why indeed. (this fixed crash when reloading a file with filled curves and toggling editmode) - bug fix, setting curve width!=1 disabled simple bevel for no apparent reason - cleaned up lots and lots of curve/displist code (fun example: "if(dl->type==DL_INDEX3 || dl->type==DL_INDEX3)"). Hmmm! - switched almost all lattice calls to go through lattice_deform_verts, only exception left is particles - added DBG_show_shared_render_faces function in render, just helps to visualize which verts are shared while testing (no user interface). - renamed some curve bevel buttons and rewrote tooltips to be more obvious - made CU_FAST work without dupfontbase hack
Daniel Dunbar
2005-08-14 06:08:41 +00:00
5f61dc89baAdd CTRL-Backspace to delete all text in textediting.
Alexander Ewering
2005-08-13 20:44:57 +00:00
109950ada4New; Wkey in Armature Editmode. Has option for flipping names too.
Ton Roosendaal
2005-08-13 19:41:45 +00:00
184e4fdaaeTwo armature fixes;
Ton Roosendaal
2005-08-13 18:55:24 +00:00
e1584df90bRemoved strcasestr() with version as found on web, opensolaris. It had a bug though! :) For people interested: both lines with tolower() had to be added...
Ton Roosendaal
2005-08-13 17:53:37 +00:00
9e6ad3dffcbugfix #2931 crash if $HOME not set
Stephen Swaney
2005-08-13 17:20:46 +00:00
2fe1f9df2a- texcomesh used wrong texture space (should use the texcomesh object space)
Daniel Dunbar
2005-08-13 16:39:22 +00:00
a473e6620dBone naming fix.
Ton Roosendaal
2005-08-13 15:15:44 +00:00
9537bfa121now for the cigar...
Erwin Coumans
2005-08-13 10:04:01 +00:00
4d7089d19bthese files missed the cvs commt yesterday, this should fix compilation problems
Erwin Coumans
2005-08-13 08:05:48 +00:00
74dc0e191d- more nurbs fixes... as it turns out, rendering of cyclic UV didn't really work at all. Fortunately no one actually *USES* nurbs so no one noticed. This is bug from NaN days (strubi, I am looking at you here) which I guess says a lot (or a little) about NURBS usage. And as usual, the correct code is shorter. - added do_version copy of ME_OPT_EDGES flag
Daniel Dunbar
2005-08-13 05:05:18 +00:00
7b1dcf4c42- readded Subsurf "optimal" edge drawing/rendering - added ME_EDGERENDER flag, barely changes things atm except makes sure plain meshes with FasterDraw/etc set still render all edges. The edge drawing system needs a bit of a revamping - it is a cool feature but could use several improvements: (1) The algorithm could be better in choosing the best edges to draw. (2) The drawflags should interact well with modifiers. It is wierd to have a large grid with a deformer that draws no edges because flags are only calculated based on base mesh. (3) Drawflags should not be destroyed by editmode. Better design would be a "Draw % of edges" button.
Daniel Dunbar
2005-08-12 21:55:50 +00:00
0006f8ad14update to xcode added a workaround for scons
Jean-Luc Peurière
2005-08-12 21:41:22 +00:00
0d35e38938Very small size of arealights (0.001) could cause weird overflows/bands. There was still one float component hanging around... saacos(). Made a double version of it.
Ton Roosendaal
2005-08-12 20:27:18 +00:00
65aa88af11Added the 4 new proportional editing modes also to the uv editor transform. Eventually the uv editor should use the new transform code and get these automatically, but until that's done this might fix bug #2920.
Brecht Van Lommel
2005-08-12 15:33:06 +00:00
5ebc7c8bdaadded more debug text, enabled the bullet penalty solver, instead of ode solver by default, added a better demo.
Erwin Coumans
2005-08-12 13:42:00 +00:00
5afdfc6ac1- remove some silly array copying code for nurb displist generation - converted dl->flag to use consistent defines for cyclic U/V
Daniel Dunbar
2005-08-11 22:27:53 +00:00
841ddb4680A couple of small fixes...
Kent Mein
2005-08-11 16:39:51 +00:00
2cb9c4db0cBugfix, the lock button in the uv editor didn't work, the 3d view would always redraw even if it was disabled (only on non-apple).
Brecht Van Lommel
2005-08-11 13:08:08 +00:00
0fba0e6b4b- update displistmesh_to_mesh to free existing mesh data (including sticky, dvert, and keys if number of verts don't match) - changed modifier panel to not allow manual addition of hook or softbody modifiers - changed apply modifier to apply to existing mesh (fixes bug with materials) and to warn about loss of tface/mcol/keys/dvert/sticky for all modifier types - changed modifier UI to not display disclosure triangle for virtual modifiers - changed softbody ui to allow enable/disable
Daniel Dunbar
2005-08-11 07:11:57 +00:00
76d2f0da9e- couldn't help myself, got distracted working on something else and wondered what these silly data pointers in MDeformVert were for. Turns out they aren't even need! Just taking up extra memory and space and confusing the armature deform algorithm. Naturally I had to clean things up. Sorry Ton.
Daniel Dunbar
2005-08-11 06:44:32 +00:00
8eca413964- added recalc ob, recalc data options to ctrl-alt-shift-t timer
Daniel Dunbar
2005-08-11 05:56:48 +00:00
5c74f25c8aTwo quick bugfixes, thanks slikdigit!
Daniel Dunbar
2005-08-11 05:45:47 +00:00
1fd6ce391b- bug fix, cage buttons weren't displayed correct with virtual modifiers
Daniel Dunbar
2005-08-11 03:37:50 +00:00
75bcb4cd98- added modifiers_getVirtualModifierList, returns pointer to first modifier but including "virtual" modifiers (for example, an object skel-parented to a lattice has a virtual first lattice modifier) - removed mesh_modifier(), all functionality has been incorporated into modifier stack (well, keys still don't exist as a modifier, but I am not sure if they should). - added interface option to convert a virtual modifier into a real modifier - added option to parent to lattice object or lattice with deform - bug fix, patch of hook indices patched all hooks (oops) not just ones for edited mesh
Daniel Dunbar
2005-08-11 03:31:33 +00:00
ac3ed0f92a- switch to using softbody modifier, controls enabling but does not have variables, these are still in same place. enable button automatically makes/enables modifier. - changed hook to hook modifier conversion to happen on direct link, required to make sure we don't forget to free any memory for files saved with 2.38 that have hooks. - update modifier interface to enforce modifiers with the require-original- data flag to not move beyond deforming modifiers. - enforce only one softbody modifier allowed
Daniel Dunbar
2005-08-11 02:23:52 +00:00
2f32c8451cNew "Mirror UVs" function in faceselect mode, to complement Rotate UVs. It mirrors the UVs or Vertex Colors of individual faces (on the red edge of the UV face).
Brecht Van Lommel
2005-08-11 00:00:24 +00:00
2b40f19c5b- bug fix, hook deform could crash because old files can have hook indices that are out of range - bug fix, hook indicies were not corrected on exit editmode (there probably should be a general interface for this kind of patch)
Daniel Dunbar
2005-08-10 22:25:32 +00:00
9030e5f686- added eModifierTypeFlag_RequiresOriginalData for modifiers that can only follow deform (for example, they store mesh vertex indices) - added ModifierType.foreachObjectLink for iterating over Object links inside modifier data (used for file load, relinking, etc) - switched various modifiers_ functions to take object argument instead of ListBase - added user editable name field to modifiers - bug fix, duplicate and make single user didn't relink object pointers in modifier data - added modifiers to outliner, needs icon - added armature, hook, and softbody modifiers (softbody doesn't do anything atm). added conversion of old hooks to modifiers.
Daniel Dunbar
2005-08-10 22:05:52 +00:00
eb64e304b4Patch #2758 Update of image module. New Image methods from Austin Benesh: - getPixelI(x, y) - getMinXY() - setPixelF(x, y, [r, g, b, a]) - setPixelI(x, y, [r, g, b, a]) - save()
Stephen Swaney
2005-08-10 17:50:18 +00:00
1d08915f45ideasman fix that epydoc compile for it .
Joilnen Leite
2005-08-10 13:36:40 +00:00
02f3c930f5- bug fix, face center drawing was wrong for editmesh - added several useful utility functions to editmesh, these can simplify/clarify a lot of mesh code, check them out - cleaned up EdgeSlide a bit to be clearer/shorter o bug fix, EdgeSlide did not always cancel correctly o bug fix, EdgeSlide did not choose initial "control" edge correctly after calc_meshverts_ext change
Daniel Dunbar
2005-08-10 03:51:34 +00:00
9823e7d548Removed need for vert-xs and ys in edgeslide
Johnny Matthews
2005-08-09 20:02:53 +00:00
c5a223056a- bug fix, convert modifiers should free modifiers from new object
Daniel Dunbar
2005-08-09 16:02:23 +00:00
98741ec436fix for bug #2906
Johnny Matthews
2005-08-09 14:44:46 +00:00
6aead5176bPossible fix for bug #2906
Johnny Matthews
2005-08-09 13:49:05 +00:00
c192b80b17Big commit, had to rework lots of selection stuff so that things worked properly with modifiers. Needs more testing I am sure. No, honestly, I wasn't just cleaning for the hell of it, it was *necessary* (I would never do such a thing). Selection should work completely with cage options of modifiers now.
Daniel Dunbar
2005-08-09 08:12:36 +00:00
932e958816made weight paint panel full width ( still try to understand that X,Y system panels use ) replaced senseless 0 opacity with 1/8 opacity
Jens Ole Wund
2005-08-08 21:56:52 +00:00
9c8c51cbe3- added VecLerpf to blenlib - switch to using DerivedMesh.drawMappedFaceCentersEM to draw face dots, still need to do some work so this works in all selection modes (atm it does not work in no-zbuf mode)
Daniel Dunbar
2005-08-08 18:50:47 +00:00
29f06ad76esome more work on bullet raycast
Erwin Coumans
2005-08-08 17:08:42 +00:00
7f98c960b5Added extra Select Type option for esubdivide and put them in defines to get rid of magic numbers
Johnny Matthews
2005-08-08 15:59:05 +00:00
8ef6df8d2dBug fix#2894
Ton Roosendaal
2005-08-08 09:58:57 +00:00
b228c90e24Two radiosity glitches, bugs #2872#2881
Ton Roosendaal
2005-08-08 09:36:07 +00:00
fc8b4b14f5Bugfix #2871
Ton Roosendaal
2005-08-08 08:49:24 +00:00
fec419a05eLittle fix for Edgeslide so it doesn't crash on usage!
Johnny Matthews
2005-08-07 23:59:34 +00:00
11e21a8bacClean up spaces (make into tabs) in editmesh_tools
Johnny Matthews
2005-08-07 21:47:08 +00:00
941d5ae44eFix for bug #2859
Ton Roosendaal
2005-08-07 21:23:55 +00:00
bfcc67267bIn CTRL-E menu "Edgeloop Delete" with a valid "inner" edgeloop selected, this function calls other tools to delete that edgeloop by doing the following
Johnny Matthews
2005-08-07 20:46:26 +00:00
f333f124ca- update effect.c for function def change of convertToDispListMesh
Daniel Dunbar
2005-08-07 19:43:14 +00:00
7176e8926fSoftbody collision with deformed deflectors2 using bit in pd->flag to signal the use of deformed rather than wasting pd->pad
Jens Ole Wund
2005-08-07 19:22:29 +00:00