0c05224a15- removed old prototype (subsurf_optimal)
Daniel Dunbar
2005-03-28 07:40:19 +00:00
29aae3452e- 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)
Daniel Dunbar
2005-03-28 07:10:32 +00:00
8acfd730cf- 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.
Daniel Dunbar
2005-03-28 06:46:21 +00:00
09596b04a5- added mesh_get_cage_derived (returns appropriate DerivedMesh to be used as a cage - depends on ME_OPT_EDGE flag)
Daniel Dunbar
2005-03-28 05:58:43 +00:00
a0feaebfa5- added set_framebuffer_index_color (shortcut for cpack(index_to_framebuffer(index)) but that is all that is ever used.
Daniel Dunbar
2005-03-28 05:55:45 +00:00
51ca37b995add new file DerivedMesh.c
Stephen Swaney
2005-03-28 02:05:36 +00:00
21a4e28fb3- non-optimal subsurf was drawing regular mesh faces
Daniel Dunbar
2005-03-28 01:21:27 +00:00
927425608cAlright, this hopefully fixes some problems with the last transform commit.
Martin Poirier
2005-03-28 00:56:00 +00:00
9f2f13aa99Transform was still prototyped as having only one parameter in transform.h. Caused some warnings and possibly errors since some calls were missing the context.
Martin Poirier
2005-03-27 23:13:52 +00:00
0d19ac1d94- update NMesh.c to use DerivedMesh API
Daniel Dunbar
2005-03-27 22:51:48 +00:00
57b1660420- 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.
Daniel Dunbar
2005-03-27 22:42:57 +00:00
e86d5ea498- added drawMappedEdgeEM function to DerivedMesh with implementations (draws single mapped edge) - updated editmesh code to use new interface (-2 DLM uses)
Daniel Dunbar
2005-03-27 22:14:57 +00:00
2a66e1d73f- added getNum{Verts,Faces} accessors to DerivedMesh with implementations - updated edit.c to use DerivedMesh interface
Daniel Dunbar
2005-03-27 21:27:12 +00:00
05685e6ca7Context parameter for Transform.
Martin Poirier
2005-03-27 21:25:15 +00:00
35aa81cd2cScary commit!
Daniel Dunbar
2005-03-27 20:39:28 +00:00
818d76bdcbNOTE: New file to be added to project files
Daniel Dunbar
2005-03-27 20:34:18 +00:00
9cfcd5d82eTwo small fixes in transform, committed so Martin can work...
Ton Roosendaal
2005-03-27 19:54:18 +00:00
6a6d89b7aeButton image file with transform icons
Ton Roosendaal
2005-03-27 18:18:08 +00:00
b8d59ccb69Transform goodies;
Ton Roosendaal
2005-03-27 18:17:48 +00:00
642012064b- everyone loves prototypes
Daniel Dunbar
2005-03-27 17:17:53 +00:00
9744f93f0c- one last CCG warning patch
Daniel Dunbar
2005-03-27 14:38:18 +00:00
61c9e1035c- more warning removal/cleanup for CCG, apparently GCC is not happy about coercing (xxx**) to (void**) (sadly enough)
Daniel Dunbar
2005-03-27 14:37:00 +00:00
3c5a013c2e- get rid of some warnings in CCG code, thanks lukep
Daniel Dunbar
2005-03-27 14:17:28 +00:00
c9c47bd44eAdding some docs for camera insertIpoKey additions
Johnny Matthews
2005-03-27 13:34:59 +00:00
9fc5849812New Bpy method: Camera.insertIpoKey() Contributed by Johnny Matthews (guitarGeek)
Stephen Swaney
2005-03-27 13:28:49 +00:00
577f822a40- lamp line was drawing in wrong location
Daniel Dunbar
2005-03-26 21:41:39 +00:00
f102ee24e1- shademodel wasn't being set correctly for normal mesh face draw
Daniel Dunbar
2005-03-26 19:47:22 +00:00
b92e0d1723- remove some unused variables from cleanup - fix for when mesh has no medge (would draw as points always)
Daniel Dunbar
2005-03-26 19:42:37 +00:00
9465bf6881Updated Bpy method Object.getData() now supports new Text3d type. Contributed by Johnny Matthews.
Stephen Swaney
2005-03-26 18:14:29 +00:00
24e52b703eAdding some docs for world and lamp insertIpoKey additions
Johnny Matthews
2005-03-26 18:01:30 +00:00
c9c0e8d50cMore Bpy goodness! New insertIpoKey() methods for Lamp and World types. Contributed by Johnny Matthews (guitarGeek)
Stephen Swaney
2005-03-26 17:30:21 +00:00
5c87aefa4b- integrated get_mvert_weight and color_temperature into drawobject.c (just used for calculating weight map) - removed two_sided (replace with glLightModeli calls) - huge rewrite of drawobject.c for meshes, extracting simple drawing functions and then reworking to bring some order and clarity back to the code.
Daniel Dunbar
2005-03-26 17:29:37 +00:00
9b8a035718add new file SumoPHYCallbackBridge.cpp to SConscript for SCons build.
Stephen Swaney
2005-03-26 13:41:15 +00:00
e81041bb98TEMPORAL HACK!!!
Ton Roosendaal
2005-03-26 10:59:49 +00:00
9b40577d3a- made give_mesh_mvert static
Daniel Dunbar
2005-03-25 21:18:14 +00:00
fe3b127e23Added Manipulator Combo mode, with translate/rotate/scale combined. Center remains translate though. Can be activitated as 4th CTRL hotkey cycle.
Ton Roosendaal
2005-03-25 16:59:04 +00:00
55af35d795I'll break this commit into two sections in the moto files I got rid of a few warnings about blah shadows a previous declaration.
Kent Mein
2005-03-25 16:31:05 +00:00
589240926bAdjusted tooltips for RGB and Grad buttons on particle settings panel. User pointed out in bug tracker that these weren't entirely accurate.
Chris Burt
2005-03-25 16:05:31 +00:00
94839880d7Quickly hacked together a fix for game engine compiling. There were two missing files in Kester's new commits. This commit adds these two files so that compiling can continue as it is intended to. Emilie M. found a home for the files rather quickly, Ton recieived the files from Erwin via email, and we all tested. Works great! Thanks to everyone that helped!
Chris Burt
2005-03-25 14:57:25 +00:00
57f72f4081Small fix for the following warning: ../include/MT_Quaternion.h:62: warning: declaration of 'angle' shadows a member of 'this'
Kent Mein
2005-03-25 14:48:29 +00:00
f49d7133d0- removed unused variable
Daniel Dunbar
2005-03-25 14:28:51 +00:00
c4971c2082Transform fix; in PoseMode you now can do multiple chains again.
Ton Roosendaal
2005-03-25 13:31:59 +00:00
b0ece214d9added an #include <stdlib.h> to fix this: KX_RayCast.h:92: error: `NULL' was not declared in this scope
Kent Mein
2005-03-25 13:18:13 +00:00
727a056de4A couple of wee transform featurettes;
Ton Roosendaal
2005-03-25 11:17:59 +00:00
cf30d9443dPatch from Erwin Coumans: Abstract the physics engine.
Kester Maddock
2005-03-25 10:35:31 +00:00
c844aa265aBig patches: Erwin Coumans: Abstract the physics engine Charlie C: Joystick fixes Me: Moved the ray cast (shadows, mouse sensor & ray sensor)
Kester Maddock
2005-03-25 10:33:39 +00:00
3dd17cec3bCommented out some old cruft in the Makefile which seemed to be unrelated to the Cygwin platform. This produced some silly error message about files which haven't existed in the CVS repository for many months now. I can remember seeing this message for at least a year and since it has *never* changed I decided to investigate. Looks like unmaintained part of the build system that nobody pays attention to but just in case I've left it in tact with the following comment:
Chris Burt
2005-03-25 04:25:54 +00:00
b9da61202bSince Cygwin isn't compatible with all of this fancy AVI codec business we need to do a check to be sure that we're not attempting to compile AVI codec related features on Cygwin.
Chris Burt
2005-03-25 03:47:19 +00:00
ea15126d75axisProjection can take care of zero-length vector so we don't need to check anymore. Was giving some problems with cameras looking perfectly down.
Martin Poirier
2005-03-25 03:28:08 +00:00
4bcf80bf4fReworked the camera dolly/parallel axis constraint code a bit. Works pretty much like the Shrink/Fatten code, meaning pull the mouse toward you pulls the camera, push pushes it away.
Martin Poirier
2005-03-24 21:32:52 +00:00
9e90f1407eBug fix 2303
Ton Roosendaal
2005-03-24 21:01:12 +00:00
76f2346080Transform fixes;
Ton Roosendaal
2005-03-24 18:47:09 +00:00
5348fcd293Function std_rmouse_transform() works with function pointer to denote what todo. With the new Transform(), using different args, it's not easy to do it with single function pointer.
Ton Roosendaal
2005-03-24 13:13:00 +00:00
7b6ec97182Bug fix#2311
Ton Roosendaal
2005-03-24 09:37:06 +00:00
8b69f0cfd9Bug fix#2337
Ton Roosendaal
2005-03-23 22:19:51 +00:00
90caa93d67bug fix 2353
Ton Roosendaal
2005-03-23 21:20:27 +00:00
b86dc81cf3Removed a couple of redundant "FTF_api.h" includes, removed leftovers from Freeimage/Imagemagick experiments and removed stuff from a Quicktime for linux implementation.
Rob Haarsma
2005-03-23 21:10:03 +00:00
6be51da81aMoved init of new gridview variable, for adaptive grid steps, out of function that was only called in ortho... grid snapping otherwise can not work. Thanks i-Alexander for reporting!
Ton Roosendaal
2005-03-23 21:08:15 +00:00
0ad76a613dbug fix#2367
Ton Roosendaal
2005-03-23 19:21:43 +00:00
b264636469Fix for bug #1444 - this changed creasing behavior at vertices with >2 adjacent creased edges. Hope no one minds (new behavior should be nicer).
Daniel Dunbar
2005-03-23 19:00:57 +00:00
d02b83cf66- Fix for CTRL (and possible ALT, SHIFT) as hotkey; now also works while moving mouse around :) - Shift+D duplicate uses new transform
Ton Roosendaal
2005-03-23 18:50:03 +00:00
7c1303bf25Bug fix#2375
Ton Roosendaal
2005-03-23 16:55:22 +00:00
5412cab522Bug fix#2349
Ton Roosendaal
2005-03-23 15:40:50 +00:00
09ed2cef75New feature, since long on todo;
Ton Roosendaal
2005-03-23 14:24:43 +00:00
7e6a65bc62Monkey got accidentally 'recalcnormalled'. Causing eyes to have normals pointing inside. Fixed!
Ton Roosendaal
2005-03-23 13:09:22 +00:00
1bbc60f63eBug #2444
Ton Roosendaal
2005-03-23 12:47:23 +00:00
aab0b1535fTransform stuff for TEST!
Ton Roosendaal
2005-03-23 11:49:54 +00:00
b8983996d2Updated channel listing for help with compiling Blender to reflect (once again) the existence of #blendercompilers. Also added link to updated compiling guide found here:
Chris Burt
2005-03-22 23:38:34 +00:00
21aadaecddSmall fix; when pulldown menus are too large to display (they get aligned with top/bottom to active button) the menu aligns from bottom of blender window.
Ton Roosendaal
2005-03-22 15:56:58 +00:00
1a4138e184- Removed temporal hack that switched manipulator type on G, R, S hotkeys. That was blocking immediate hotkey access for normal blendering. - New, experimental, hotkey to switch: CTRLKEY! Added code in such a way it detects a CTRL key press and release without using it as modifier. Pressing CTRL will cycle through the 3 manipulator types.
Ton Roosendaal
2005-03-22 15:01:36 +00:00
1f203ac7f1- Nothing to see hear, move along, move along.
Daniel Dunbar
2005-03-22 14:57:14 +00:00
af12eaae1fReordered some of the includes to fix STL issues.
Kent Mein
2005-03-22 13:34:31 +00:00
f0112406edAdded call in creating transform data Mesh editmode to calculate vertex- normals for the ALT+S "shrink/fatten" option.
Ton Roosendaal
2005-03-22 11:10:04 +00:00
cda3383189add files for Daniel Dunbar's new CCGSUBSURFLIB work to SCons build. This commit *only* adds the new files.
Stephen Swaney
2005-03-22 07:45:20 +00:00
845ee1e4a1- Hacked in blender style creasing support to new subsurfs.
Daniel Dunbar
2005-03-22 06:11:25 +00:00
a4b5ddb371BPython: -- Stephane Soppera (thanks) reported libc stat function fails for paths ending with "\" under win with free VC++ compiler toolkit 2003: removed final '/' (BLI_make_file_string changes the '/' to '\\\\' for win) slashes from relevant paths, that should take care of it . Note: here (linux, glibc, gcc 3.3.3) stat doesn't have this problem. Also checking if U.pythondir ends with a slash and, if so (as long as its length > 2 to), removing the slash, for the same reason. -- small cosmetic changes in BPY_menus.c for debug msgs and in header_scripts (added a separator in the Scripts win -> Scripts menu).
Willian Padovani Germano
2005-03-22 04:28:36 +00:00
a8a73e8097Transform widget update
Ton Roosendaal
2005-03-21 22:51:05 +00:00
2ec686720bAdded option to use new subsurf module added by Daniel Dunbar. Simply add:
Chris Burt
2005-03-21 22:32:02 +00:00
86d84f54c8Size flipping, for kaito. Move pointer to the other side (horizontal) of the pointer to see. (Does affects size member, so just object position and edit mode)
Martin Poirier
2005-03-21 20:35:00 +00:00
c2121fb855Fix for possible divide by zero error in Rotate.
Martin Poirier
2005-03-21 19:16:39 +00:00
e5520d955cCreated initConstraint. It basicly just checks if the CON_APPLY has been set up (by the BIF_setConstraint calls for example) and calls startConstraint. This must be done because startConstraint uses data initialised when starting transform so it needs to be called after that. Also changed some strcpy into strncpy.
Martin Poirier
2005-03-21 18:25:17 +00:00
bc77092959Added string to BIF_setSingleAxisConstraint() function for headerprint. Needed for martin to further work on print stuff
Ton Roosendaal
2005-03-21 17:52:45 +00:00
bc9291d806Shrink/Fatten behavior change. This time for good I hope.
Martin Poirier
2005-03-21 17:36:21 +00:00
981df9983fTransform:
Ton Roosendaal
2005-03-21 16:36:43 +00:00
1f8b5912ffMore transform widget goodies;
Ton Roosendaal
2005-03-21 14:20:04 +00:00
62147bba30Scripts (making some changes to the scripts dir): - moved bpydata/ to scripts/bpydata/ and added a config/ subdir to it; - created scripts/bpymodules for py modules (also got rid of those "mod_"'s appended to the files); - updated scripts accordingly.
Willian Padovani Germano
2005-03-21 05:26:52 +00:00
12107e6af2- update new conversion to DLM routine to use match subsurf (means optim, seams, selection should work same now, but I am not super familiar with all this stuff so can't test very well).
Daniel Dunbar
2005-03-21 04:22:58 +00:00
2ea128b86e- remove some duplicate prototypes, causes problems for some compilers
Daniel Dunbar
2005-03-21 02:03:42 +00:00
6555ca29ab- Part of CCGSubSurf integration, this is the actual blender side of the integration.
Daniel Dunbar
2005-03-21 01:37:14 +00:00
887b598d71- Initial integration of CCGSubSurf library into blender. The lib is only in one C file and not worth dropping in extern but presumably will be synced with public CCGSubSurf release I hope to be making soon. - Currently the implementation must be enabled by defining USE_CCGSUBSURFLIB somewhere with your build system. The code should be considered highly experimental.
Daniel Dunbar
2005-03-21 01:34:27 +00:00
6e41cb0a97- switch BLI_memarena to use stdlib malloc/free (alloc errors will be caught by containing structure) - fixed off-by-one bug (reallocated one byte before necessary)
Daniel Dunbar
2005-03-21 00:48:19 +00:00
99676b7bfb- another BLI_winstuff.h removal
Daniel Dunbar
2005-03-21 00:47:21 +00:00
630bb7f7bfWarp was acting weird if the cursor wasn't centered in the data space, that is fixed. Helpline for warp was wrong in edit mode if the object wasn't centered on global space. Boundbox calculation for warp is done in view space now, so it is always maximised since aligned with the view.
Martin Poirier
2005-03-21 00:39:09 +00:00
6a70653577- kill some warnings (open/seek/read/write need io.h on win32)
Daniel Dunbar
2005-03-20 20:48:40 +00:00
ca030aeab7- apologies, accidentally commited code w/ game engine disabled
Daniel Dunbar
2005-03-20 20:36:46 +00:00
03cafb856dAdding some docs for material insertIpoKey additions
Johnny Matthews
2005-03-20 19:52:15 +00:00
7df1facbfaNew Material method: insertIpoKey( key_type ) inserts material ipo key at current frame. contributed by Johnny Matthews.
Stephen Swaney
2005-03-20 18:28:36 +00:00
dedad185baThree rotate manipulators to play with;
Ton Roosendaal
2005-03-20 17:25:00 +00:00
99bffa9cc0correct bad reference to getDrawMode.
Stephen Swaney
2005-03-20 12:34:36 +00:00