Commit Graph

  • 4b69bcc7ad Added correct call to have curve paths calculated, when the anim system discovers it wasn't done yet. Needs displist now, not calc-path. :) Ton Roosendaal 2005-07-26 09:21:20 +00:00
  • a8ae1c64f4 - move libdecimation in link order to keep gnu ld happy Daniel Dunbar 2005-07-26 07:15:17 +00:00
  • a9d7042da9 help mscv6 to find LOD_decimation.h for BKE_blenderkernel Jens Ole Wund 2005-07-26 07:00:32 +00:00
  • 8564169543 - added decimation include dir to makefiles Daniel Dunbar 2005-07-26 06:46:21 +00:00
  • 2c20d7529a - bugfix, mirror modifier didn't copy deformed vertex cos for shared verts Daniel Dunbar 2005-07-26 06:39:58 +00:00
  • 951a4934b0 - added wave modifier & removed old wave effect - added decimate modifier & removed old decimate interface (currently lacks warning about destroying data, and there needs to be a way for modifiers to return errors back to the interface) - allow applyModifier to return NULL to indicate error - unfortunately new decimate modifier means it does not know exact number of faces in mesh (other modifiers may come before) and so instead interface uses a percentage. if people need exact face count slider then I will have to think of some hack to fit this in. note that it does display the output face count so its possible to tweak the pct to get what you want regardless. - removed python Wave object Daniel Dunbar 2005-07-26 02:44:59 +00:00
  • ee8e41c65a - added apply button for individual modifiers Daniel Dunbar 2005-07-26 00:45:19 +00:00
  • 3abbc85ae0 - commit some testing code for LetterRip's bit button conversion Daniel Dunbar 2005-07-25 23:56:57 +00:00
  • 8655d65a7e - displacement fix, need to calc normals before displacing Daniel Dunbar 2005-07-25 22:02:13 +00:00
  • b52d31965a - removed internal functions from effect header - made particle system generation use its own RNG object, keeps it safe against varying calculation order in the renderer Daniel Dunbar 2005-07-25 21:53:58 +00:00
  • e8347e8b28 - Dupliframes mball didn't work anymore (should be added to scene_update) - restored nicer drawing for duplicator wireframe. Draws before selected, so you can see the duplicated object better Ton Roosendaal 2005-07-25 21:38:13 +00:00
  • 3dcc653365 - mixed up RNG type definition Daniel Dunbar 2005-07-25 20:56:48 +00:00
  • 40a5ed791d - added RNG abstract random object rng_{new/free/seed/get{Int,Double,Float}} to avoid use of global generator. at the moment the renderer owns the number generator and this is important for retaining render consistency. Daniel Dunbar 2005-07-25 20:33:10 +00:00
  • cb988ff8a9 - fix some error handling in blend loader, correct error codes were not always returned. Daniel Dunbar 2005-07-25 18:35:49 +00:00
  • dec3fa07f3 Some bad use of non-public API. Changed the calls to BIF_undo_push() and BIF_undo() instead Johnny Matthews 2005-07-25 17:03:09 +00:00
  • 8d3987466d build.c + .h going point.c + .h coming /me wonders if there ara any MSVC6er Jens Ole Wund 2005-07-25 14:12:28 +00:00
  • 26b2648a72 Little issues, combined commit! Ton Roosendaal 2005-07-25 10:58:21 +00:00
  • 1295ed872c Regression file teapot.blend didn't render... this due to a hack removal of a month ago (trying to cope with vertexcolor 'paint' and 'light'.) Forgot to add the correct check for calculaing UV texture coords, needed to have vertexcolor 'paint' working. Ton Roosendaal 2005-07-25 09:19:23 +00:00
  • 0a6ca24661 - warning fixes - rare bug in calc_vertexnormals, fourth vertex normal was not flipped correctly (found thanks to my new auto regression test script) Daniel Dunbar 2005-07-24 19:13:27 +00:00
  • 13e6257ddf - switch displistmesh_to_mesh to just dupalloc the mface's - added verteCos argument to sbObjectReset, lack of this was causing softbody objects to not be initialized with deform - made convert-to-mesh option call DAG_scene_sort, prevents crashes due to obsolete object pointer Daniel Dunbar 2005-07-24 18:16:40 +00:00
  • aefd9e462f When entering editmode on Armature, the Pose now defaults to a correct restposition, also for deform and bone childs. Ton Roosendaal 2005-07-24 15:16:37 +00:00
  • 495bb4efff Bug fix #2856 Ton Roosendaal 2005-07-24 13:39:26 +00:00
  • fcaaebb4f0 NLA strip option "Add" accidentally also added constraint ipo values. Result was characters going bezerk! By definition, pose blending now only adds loc/rot/size, not constraint strength values. Ton Roosendaal 2005-07-24 13:30:44 +00:00
  • 4d273d8d5b Armature-Pose IK goodies! Ton Roosendaal 2005-07-24 11:36:05 +00:00
  • 1d27a7676b GCC 4 didn't like static function after non static prototype. Moved prototype to c file and added static to it. Martin Poirier 2005-07-24 09:21:31 +00:00
  • ee6bcd01a2 Removing "Custom" as a menu entry in 3D view header (ztonzy spotted that). Martin Poirier 2005-07-24 08:26:45 +00:00
  • fa0795c84f Missing include file from commits. (tsk) Martin Poirier 2005-07-24 07:10:56 +00:00
  • df864efff3 Some stuff slipped in header_view3d.c too. Thanks to basse for spoting that quickly. Martin Poirier 2005-07-24 06:57:46 +00:00
  • 0e2302bfa5 Big Transform Manipulator Merge Martin Poirier 2005-07-24 06:25:00 +00:00
  • 1516381df1 - Armature editmode now supports lasso. Please be aware that in editmode, armatures actually only consists of points, flushing bone selection based on points that are selected. Ton Roosendaal 2005-07-23 20:56:40 +00:00
  • e331e68b57 - added ModifierData flag, is modifier enabled in editmode - added modifier type flag: should modifier be enabled by default for active in editmode - added subsurf "debug incremental" option instead of G.rt==52 (it becomes a slightly useful feature now for debugging how well a modifier works with incremental subsurf... maybe important for future python modifier developers) - shuffled modifier button layout just to keep people guessing - switched back to drawing editmesh face centers not through derivedmesh, I didn't think this one through, forgot that centers were also used for selection. have to think about what to do about this, should be either (a) don't draw centers with a cage active (optimal mode) or (b) come up with api to draw centers through derivedmesh and also handle selection. - changed recalc_editnormals to also follow the len(no)==0.0 use vertex co convention Daniel Dunbar 2005-07-23 19:15:08 +00:00
  • fb651ddb4a - change mesh_calc_normals to set vertices with len(no)==0 to normalised coordinate (convention in blender, helps with halo) - removed vertexnormals(), vertexnormals_mesh() - removed CTX_NO_NOR_RECALC (always assume already calculated) - change NMesh.c to call mesh_calc_normals - chance load_editMesh to call mesh_calc_normals after done converting instead of using editmesh normals - update recalc_editnormals to also calc vertex normals (whats 4 more adds and a sqrt among friends) Daniel Dunbar 2005-07-23 19:03:43 +00:00
  • 948f27c0d8 Killed silly modal PoseMode mode! :) Ton Roosendaal 2005-07-23 18:52:31 +00:00
  • 6e98a38ea2 - cleaned up calc_vertexnormals, did unnecessary temporary array alloc and passed over faces twice - changed init_render_mesh to *always* call calc_vertexnormals. Vertex normal calculation is insignificant time wise in comparison to modern renders so it wasn't a big savings anyway, and vertex normals were sometimes incorrect. Still issue remaining regarding what to do with wire normals. Daniel Dunbar 2005-07-23 18:27:09 +00:00
  • 42da62679f - removed mface->puno flags, was only used to flip normals in display and this is better left to user (whee this was a fun commit! so much deleting!) - removed mesh_calculate_vertex_normals (replaced by mesh_calc_normals) Daniel Dunbar 2005-07-23 16:09:08 +00:00
  • 16b76eb0ec added bandoler's SConscript file for Bullet Erwin Coumans 2005-07-23 15:06:45 +00:00
  • 0a05783cba Added code in loopcut to undo cut if edgeslide was cancelled. (For you Chris!) Johnny Matthews 2005-07-23 14:39:59 +00:00
  • d7dcadfb7a Added point.c to the SConscript file Johnny Matthews 2005-07-23 14:15:13 +00:00
  • c0cc75e621 _update to msvc7 project_ - added point to python ps - the point commit remove vector division as it is undefined Joseph Gilbert 2005-07-23 13:52:12 +00:00
  • 6a9e7ab3f2 _new point class and update_ - adds a new point class * point/ vector math (p + v = p, p - p = v, etc.) * points can be transformed by matrices/quats * wraps 'place vector' type vectors that have no magnitude - wrapped toXXX() methods work correctly * toXXX() will NOT wrap data (this is due to the fact that wrapped data cannot be converted) * added a 'wrapped' attribute to mathutils classes to determine wether the object is accessing python or blender data - added the ability to negate vectors/points with "-vec" * deprecated vector.negate() - added the ability to shorhand inverse matrices with "~mat" (tilde) - conversion between vector/point with toXXX() methods Joseph Gilbert 2005-07-23 13:46:40 +00:00
  • 32255b65df - added DerivedMesh.drawMapped{VertNormals,FaceNormals,FaceCenters}EM functions and implementation for EditmeshDerivedMesh - switch drawobject to drawing normals/centers through the DerivedMesh - added G_DRAW_VNORMALS flag and button, implementation is not yet complete because editmesh normals are not updated regularly - switch editmesh draw buttons to use uiDefButBit (can't we get some monkey to convert all of the uiDefBut calls with TOG|BIT type? It makes grepping the source much nicer) Daniel Dunbar 2005-07-23 07:45:39 +00:00
  • e125ed5958 - fix a bug with softbody, verts were copied out of order (meant history was lost... I think, dunno this code well.) - commented out code to do merging of quad with 3 verts shared in mirror mode... didnt seem worth the effort and mesh still wasnt perfect afterwards - bug fix, indices for triangles were not swapped correctly in mirror, could lead to crash with subsurf in editmode Daniel Dunbar 2005-07-23 06:05:29 +00:00
  • 481a589ca6 - agh!!!! horrible code alert!!! pushdata/popdata in build_particle_system actually copy Object data and then store it back later. Of course this means changes to object during the call are lost (and very hard to track down). Eekadoodle! Daniel Dunbar 2005-07-23 04:37:02 +00:00
  • 7a6c4a23e7 - move build_particle_system to makeDispList, it was getting called recursively in certain situations. needs review. Daniel Dunbar 2005-07-22 22:01:39 +00:00
  • dcf210b826 Events added for: Ton Roosendaal 2005-07-22 21:42:56 +00:00
  • 365bea41d6 Error in drawing of new armature options; bglPolygonOffset(0) was accidentally called without it being set before, causing window matrix to go weird. :) Ton Roosendaal 2005-07-22 19:51:08 +00:00
  • 05d45b888b Motion blur didn't work for Object Ipos (rest worked OK), so simple fix. :) Ton Roosendaal 2005-07-22 19:24:10 +00:00
  • cb3d0afd87 - moved mesh_getVertexCos to mesh.c and prototyped - make mesh_modifier build vertex locations on demand Daniel Dunbar 2005-07-22 17:03:50 +00:00
  • f6024cfdac aCVS: ---------------------------------------------------------------------- added minkowskisum in the raytrace demo update vc8 projectfiles Erwin Coumans 2005-07-22 16:46:15 +00:00
  • b6b352e0b7 - got fed up with not being able to put a breakpoint on MEM_ errors, switched MEM_set_error_stream to MEM_set_error_callback that calls a function to print result instead of just giving a FILE * Daniel Dunbar 2005-07-22 16:40:26 +00:00
  • 9e502dae6f - bug fix, old files with me->subdiv==0 crashed, fix to make sure they don't crash and also changed patch to properly init SubsurfModifierData Daniel Dunbar 2005-07-22 15:09:54 +00:00
  • bd19d6f7f4 _update to msvc7 project files_ - adds new files for modifer - removes build from python - hopefully fixes the mac line endings Joseph Gilbert 2005-07-22 10:04:12 +00:00
  • e546e81762 - added data arguments to deformer modifiers, in case someone wants to write one that is based on geometry (and not just vertex position) - added editmode versions of modifier deform/apply calls and flag to tag modifiers that support editmode - added isFinalCalc param to applyModifier, basically a switch to let subsurf know if it is calc'ng orco or not (so it can deal with cache appropriately). This is kinda hacky and perhaps I can come up with a better solution (its also a waste to do a complete subdivide just to get vertex locations). - changed ccgsubsurf to not preallocate hash's to be approximately correct size... this was probably not a big performance savings but means that the order of faces returned by the iterator can vary after the first call, this messes up orco calculation so dropped for time being. - minor bug fix, meshes with only key didn't get vertex normals correctly calc'd - updated editmesh derivedmesh to support auxiliary locations - changed mesh_calc_modifiers to alloc deformVerts on demand - added editmesh_calc_modifiers for calculating editmesh cage and final derivedmesh's - bug fix, update shadedisplist to always calc colors (even if totvert==0) - changed load_editMesh and make_edge to build me->medge even if totedge==0 (incremental subsurf checks this) Daniel Dunbar 2005-07-22 07:37:15 +00:00
  • 5e34b80e1b - add ID.h and correct dna.c locations for my projectiles Daniel Dunbar 2005-07-22 06:45:37 +00:00
  • 4060b82567 - put {} around the various minmax defines... this was a nice bughunt Daniel Dunbar 2005-07-22 05:03:04 +00:00
  • 438b5a6733 Fix for bug #2766: Shear shortcut broken Chris Burt 2005-07-22 03:25:29 +00:00
  • 451161c29e - bump blender version - warning fixes (unused vars) - added do_lib_versions for patches that need to happen after linking and updated some patches. Daniel Dunbar 2005-07-21 22:34:01 +00:00
  • 96a6a38e00 New drawmode for the Armature geeks! Ton Roosendaal 2005-07-21 22:03:27 +00:00
  • 24f2b61fdb - add comments to BKE_DerivedMesh.h about which functions are called in editmode - gcc warning fixes - start work to make CCGDerivedMesh able to run in object mode (hint: more speed improvements) - fix modifier move down tooltip Daniel Dunbar 2005-07-21 21:19:38 +00:00
  • 33709bf6e2 - shuffled editmesh derived function name/function - added ModifierTypeInfo.freeData function - added modifier_{new,free] utility function - added ccgSubSurf_getUseAgeCounts to query info - removed subsurf modifier faking (ME_SUBSURF flag is no longer valid). subsurf modifier gets converted on file load although there is obscure linked mesh situation where this can go wrong, will fix shortly. this also means that some places in the code that test/copy subsurf settings are broken for the time being. - shuffled modifier calculation to be simpler. note that all modifiers are currently disabled in editmode (including subsurf). don't worry, will return shortly. - bug fix, build modifier didn't randomize meshes with only verts - cleaned up subsurf_ccg and adapted for future editmode modifier work - added editmesh.derived{Cage,Final}, not used yet - added SubsurfModifierData.{mCache,emCache}, will be used to cache subsurf instead of caching in derivedmesh itself - removed old subsurf buttons - added do_modifiers_buttons to handle modifier events - removed count_object counting of modifier (subsurfed) objects... this would be nice to add back at some point but requires care. probably requires rewrite of counting system. Daniel Dunbar 2005-07-21 20:30:33 +00:00
  • 9449f0b24f - changed GetRawFromObject to always return mesh name/info... this is a behavior change from prev releases, used to be only NMesh that were not from a subsurf would have name... Daniel Dunbar 2005-07-21 16:46:13 +00:00
  • 676b9013ea Tsk, noob mistake in intrr's radiosity commit (not collecting invisible faces). Didn't check pointer, so it crashed if the mesh didn't have TFaces. Martin Poirier 2005-07-21 05:43:49 +00:00
  • 15f6ce46b1 - apologies, made stupid newbie error in makesdna change (I'm blushing), which majorly borked DNA and meant crashes everywhere. (C pointer arith, you know) Daniel Dunbar 2005-07-21 02:56:45 +00:00
  • e51f93b76c - add my private version of VC7 project files... they are a lot better for actually working on blender than the standard ones: - all files are in one project, makes include directory maintainence much much easier - builds faster because VS.net doesn't build multiple projects fast (builds in 2 minutes on my athlon 1.5) - warnings settings are tweaked so that in debug mode only important and non-overwhelming ones show up - debug compile is incremental (speedy, one line change builds are about a second) Daniel Dunbar 2005-07-20 20:54:52 +00:00
  • f17ecb5789 - add option argument to makesdna for path within which to look for DNA includes instead of assuming run from in source dir - remove casts to long before comparing pointers (warning fix) Daniel Dunbar 2005-07-20 20:46:01 +00:00
  • 734d5b2dba - renderer always goes through DerivedMesh atm, means no need to recalc vertex normals (can be assumed good) Daniel Dunbar 2005-07-20 18:15:40 +00:00
  • bacb560634 - readfile incorrectly increased user count for Lattice & Curve modifier objects - make unlink_object clear Lattice & Curve Modifier object references - add expand_modifiers for liblinking Daniel Dunbar 2005-07-20 18:04:50 +00:00
  • 8a947c27ab - fix convert XXX _to mesh to recalc mesh data Daniel Dunbar 2005-07-20 16:45:41 +00:00
  • e34b1b3276 added the Elsevier CDROM license to one file. This still allows to use the software for any purpose, commercial or non-commercial. Erwin Coumans 2005-07-20 10:19:43 +00:00
  • dc232fda47 Wow! A new feature! Daniel Dunbar 2005-07-20 07:11:26 +00:00
  • eb9d466b48 - orco fix for build effect, didn't copy input vertex cos over (duh!) Daniel Dunbar 2005-07-20 04:56:15 +00:00
  • 38e0d79e68 - for some reason mesh_create_derived_no_deform took the raw data (not an object) but this is not going to work... I can't remember the reason I did it this way in the first place either! oops! regardless, switch to all mesh_ derived accessors taking object argument. there is still a bug in render orco calculation though. (hunt hunt) - removed python files that should have been ditched in previous commit Daniel Dunbar 2005-07-20 04:44:02 +00:00
  • 259c7b6cad - added modifier_dependsOnTime to check if modifier needs updating based on time change. would be nice if dep graph could handle this. - made dep check if modifiers need update on time change - fix render crash (access null) - added new Build Effect modifier type. compared to old one works as a full member of modifier system, means can apply subsurf, etc on it, reorder, what have you. and it is all nice and self contained. - removed old Build effect, old files convert to new style on load - couldn't help myself, added a randomize feature to build effect - removed Python BuildEffect support Daniel Dunbar 2005-07-20 04:14:21 +00:00
  • ca1873df56 - remove MEM_dupallocN's warning on dup of len==0 sized object Daniel Dunbar 2005-07-20 03:49:36 +00:00
  • ba28fc489a - added an array shuffling function to BLI_rand Daniel Dunbar 2005-07-20 03:33:44 +00:00
  • 87e76e8560 - fix for particle related crash in editmode. particle system calculation is pretty haphazard at the moment, needs to be reviewed before next release (as does duplis). Daniel Dunbar 2005-07-20 02:23:09 +00:00
  • 3e843f80d7 Improper indentation in getParentBoneName docstring. Martin Poirier 2005-07-20 00:03:52 +00:00
  • 360b494fc8 Project Files (MSVC 6.0) update: - drawarmature.c - modifier.c, BKE_modifier.h - DNA_modifier_types.h Martin Poirier 2005-07-19 23:52:21 +00:00
  • d18600520e - added ModifierTypeInfo.updateDepgraph function, responsible for building appropriate relations in dep graph (modifiers respond to scene changes correctly now) - update modifier buttons to trigger depgraph rebuild if needed Daniel Dunbar 2005-07-19 23:04:34 +00:00
  • 259a6fe8be - fixed subsurf_make_derived_from_dlm Daniel Dunbar 2005-07-19 20:42:34 +00:00
  • fd6a1732e2 - vertex indexing in softbody was wrong after I switch loop direction Daniel Dunbar 2005-07-19 20:29:22 +00:00
  • 1df154d140 - split {curve,lattice,armature}_deform_verts out of mesh_deform - removed mesh_deform (merge into mesh_modifier) - switch python lattice_apply function to use object_apply_deform, this isn't exactly equivalent but the python system shouldn't have been calling that deep into the kernel anyway. Daniel Dunbar 2005-07-19 20:14:17 +00:00
  • f1763b2f08 Fix: CTRL+Click adding bones didn't attach them to the parent! Ton Roosendaal 2005-07-19 19:25:17 +00:00
  • 2801c8b20a __ bug fix__ - internal methods for mathutils class need to incref before returning a pointer to self * memory allocation errors (freeing bad pointers) were appearing after repeatedly calling internal methods on the same object due to ref counts. Joseph Gilbert 2005-07-19 18:47:25 +00:00
  • 19abd72baa Couple of fixes combined; Ton Roosendaal 2005-07-19 16:12:56 +00:00
  • b344db3670 First step towards restoring / improving subdivide 'beauty'. Johnny Matthews 2005-07-19 15:37:18 +00:00
  • 8d2d045079 -Patch submitted by Campbell Barton -Fixed matrix.invert() to return the correct inverse matrix Joseph Gilbert 2005-07-19 14:17:07 +00:00
  • 29855c895c Grms... removed too happily a part of depgraph yesterday. That fix was OK, but doesn't make the removed code obsolete :) Error was that transform on deformed objects didn't set recalc flags Ton Roosendaal 2005-07-19 11:47:22 +00:00
  • e700b79587 Removed last remainder of old transform. The function is still called special_aftertrans_update() though... Ton Roosendaal 2005-07-19 11:21:01 +00:00
  • 5f22838822 Bugfix #2818 Ton Roosendaal 2005-07-19 10:50:13 +00:00
  • 8fa42457ca 1) Removed old annoyance in adding armature or bones. Ton Roosendaal 2005-07-19 10:06:57 +00:00
  • 1baf64cd45 Bug fix; pose mode transform didn't count # of selected bones correctly, skipping selected bones with parent but without "IK to Parent" Ton Roosendaal 2005-07-19 08:02:27 +00:00
  • da93fdc9ee Added DAG flush to NMesh when updating geometry (was needed after zr's latest commits). I added that in mesh_update, if anyone has a better idea, feel free to fix it. Martin Poirier 2005-07-19 05:35:35 +00:00
  • 59a2980611 - some missing changes for switch of mesh_modifier to deform new verts array. Daniel Dunbar 2005-07-19 04:27:43 +00:00
  • 2dbb9409df initialize simd quad in default constructor this should not be necessary, its for testing Erwin Coumans 2005-07-19 04:11:47 +00:00
  • 09b5272639 - split mesh_deform off from object_deform - changed mesh_modifier, sbObjectStep, object_deform to take vertexCo argument instead of operating on mesh - fixed bug where a derived mesh would not be returned in editmode - removed object_wave, replaced by init_wave_deform and calc_wave_deform - moved cached DerivedMesh to Object, not Mesh... fixes heisenbugs with linked objects Daniel Dunbar 2005-07-19 02:36:21 +00:00
  • 8962195f21 Fix for bug #2848 This flushes selection upward in subdivide based on select mode. So faces with all edges selected should now be selected as well. Johnny Matthews 2005-07-19 02:23:52 +00:00
  • 3181991e86 - silly bug, didn't test for hash before freeing Daniel Dunbar 2005-07-19 01:12:14 +00:00
  • b58f7d0c55 - change mesh_get_derived_render to mesh_create_derived_render (always builds new DerivedMesh... caching can come later) - split DerivedMesh returning functions into editmesh and mesh groups - got rid of DL_NORS displist type (get built on fly for mesh when needed) - got rid of Mesh.disp (yay!) - started to punch DerivedMesh returning functions into shape to introduce modifier stack Daniel Dunbar 2005-07-19 00:21:01 +00:00
  • d1dfb246c7 Bugfix: clear rotation on Pose bone didn't flush changes to DAG Ton Roosendaal 2005-07-18 22:18:03 +00:00