Commit Graph

3611 Commits

Author SHA1 Message Date
Martin Poirier
923a9a0b03 Vertex group support in Apply_Def. If subsurf is off on the original mesh, copies groups AND weight. If not, only copies weight. 2005-02-14 01:26:07 +00:00
Rob Haarsma
873a248522 Fix for mipmap userpref button. (it was using the wrong userpref value). 2005-02-12 21:19:25 +00:00
Joseph Gilbert
bc3329e49f <strings.h> is not defined on Win32 systems 2005-02-12 17:11:57 +00:00
Joseph Gilbert
4bd1fe7eab The opennl vcproj was not copying ONL_opennl.h to the lib\windows\opennl\include directory 2005-02-12 16:36:49 +00:00
Ton Roosendaal
9cbf39e478 Fixed annoyance with opion "DispView" and Border render. It now displays
the rendered pixels in the indicated border nicely.
2005-02-12 16:05:40 +00:00
Ton Roosendaal
b7d5f62e04 Added (but recoded) patch submitted by Chris Burt to have render window
opened in size of actual border, if option "Crop" is set.
2005-02-12 15:41:07 +00:00
Ton Roosendaal
43310097c9 Second version of fix for display of all scanlines in preview render for
wacko 3d cards... now it draws 5 scanlines in a time, with first being
drawn double.
2005-02-12 14:15:08 +00:00
Ton Roosendaal
d1050d4ae6 Bug fix #2202
Beauty-fill in mesh editmode screwed up fgon faces.
Solved it by excluding fgon faces from it.
2005-02-12 13:46:12 +00:00
Ton Roosendaal
efcaf76514 Potential fix for #2177, scanline display errors on some gfx cards for the
preview render in buttons window. Solution is to draw 4 lines at once,
instead of 2. glPixelZoom then has a wider range to display without rounding
errors, I hope.
Is going to be verified stil...
2005-02-12 13:12:40 +00:00
Ton Roosendaal
66736db301 Bug 2057
Hotkeys comma and dot (around cursor, median) didn't work for user option
"global pivot". Now all 3d windows are set correctly.
2005-02-12 12:06:30 +00:00
Joseph Gilbert
5af05c9610 Update to the MSVC7 project files (vcproj) for Blender's internal libraries
- set build_install_all as the default project (if you give me a quarter ill tell you how :)
- set SoundSystem to it's proper dependencies
- updated those silly silly unix path separators
- set project warning levels to something not so noisy
2005-02-12 02:06:52 +00:00
Ton Roosendaal
39959b4f21 Little warming-up getting-feet-wet coding project. :)
Much wanted feature, to have paths with children having fixed distance
offsets from each other, for example to animate a train with wagons.

Solved it with Path option (Editing buttons curve) "PathDist Offs" which
interprets time-offsets of children as blender-unit offsets. The entire
animation system still works, but offsets are calculated based on distance,
even with a CurvePath without motion (speed curve horizontal).

http://download.blender.org/demo/test/pathdist.blend

Thanks to Bassam for kicking my ass!
2005-02-11 12:42:02 +00:00
Willian Padovani Germano
34977b8937 BPython:
- applied Campbell Barton's patch for access to Oops location and selection of materials, mesh data and objects, slightly modified. Thanks, Campbell;
- got rid of warnings in many files, hopefully not introducing any other during the process.  Mostly this was done: 1) new EXPP_incr_ret_True/False functions were added and used instead of "Py_INCREF(Py_True/False); return Py_True/False;".  Currently at least the functions use the fact that PyTrue/False == 1/0 and use 1 and 0 to avoid the warnings. 2) Filling of certain types structs got 0's added for all not defined data and methods.  This is surely Python version specific, since these structs can change size and content at each major version number Python update.
2005-02-09 15:53:35 +00:00
Willian Padovani Germano
05bf482f6a BPython:
- NMesh: made nmesh.update accept an optional 'vertex_shade' param to init vcols with shading info, like when you enter vpaint mode or press the relevant "make" button for a mesh without vcols.  This is still a test, the functionality was requested by Manuel Bastioni for the SSS script they are working on:
http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/articles/subsurface_scattering_in_python.html
- sys: made makename() accept files with max FILE_MAXDIR+FILE_MAXFILE name length, should fix #2192.  Was only FILE_MAXFILE, a mistake;
- Image: added .setFilename(), contributed by Campbell Barton;
- Camera: added camera.get/setScale for the new param added by Ton for ortho cameras.  Requested by Jean-Michel Soler for the Texture Baker script;
- related doc updates.
2005-02-09 05:19:24 +00:00
Ton Roosendaal
955d5aa6eb Bug fix #2220
Another fix related to improved preview drawing (shade context buttons),
it didn't update glViewPort and glScissor correctly, causing the buttons
next to the preview-rect not to be offset win the window matrix anymore.
2005-02-08 16:31:39 +00:00
Ton Roosendaal
2d356a79e0 Accidentally committed drawing editmode disregarding layer state. Brought
back to how it always worked.
2005-02-08 16:25:20 +00:00
Ton Roosendaal
5714ab5d65 Parkinson bug! A & accidentally became &&...
Error caused exceptions for ortho render to be active always... making
some frontfaces and backfaces mixupped.
2005-02-05 16:35:19 +00:00
Willian Padovani Germano
3ede12b115 BPython:
- NMesh: added face.sel and face.hide attributes to NMFaces, to set / get selection and visibility state of faces as they appear in edit mode.
- doc updates, including the right fix to two edge related methods, thanks to Stephane Soppera for pointing it (my fault, Stephane).
2005-02-03 03:04:32 +00:00
Jean-Luc Peurière
d0aa7eac41 support for new SDL build in makefiles and scons for Os X 2005-02-02 22:13:23 +00:00
Ton Roosendaal
8d305e9af6 Fixed error in having Ztransp rendered in back of normal solid faces. Was
caused by changing definition of OSA pixel structs 3 weeks ago.
(result: AA looked bad).

Thanks phase for pointing at this.
2005-02-02 17:26:24 +00:00
Kent Mein
b694631807 Fixed typo Latice...
Kent
2005-02-02 14:08:18 +00:00
Willian Padovani Germano
41b251fab0 BPython:
- Fix related to bug #2157: crash in Blender.Image.image.reload() method.  "G.sima" was not being checked for validity.  Fix by Joilnen B. Leite (pidhash).  Thanks!
http://projects.blender.org/tracker/?func=detail&atid=125&aid=2157&group_id=9
- Added optional argument to Blender.Object.object.getData() method: getData(only_name = True) or (only_name = 1) or (1) will return only the obdata name, not a wrapper for the given struct.  This is a test based on a request by Campbell Barton who submitted code for his proposed .getDataName() method (thanks!).
- doc updates and small fixes.
2005-02-02 03:38:31 +00:00
Ton Roosendaal
78f133b8a7 Bug found by Bassam; in certain occasions reading a file calls setscreen()
without the (ugly) global curarea being set.
Fixed the crash in his sample by nicely passing on 'current area' as
argument.
2005-01-31 18:37:54 +00:00
Chris Want
732f608e33 Doing the hotkey modifiers for select non-manifold the Ton way. 2005-01-30 21:33:12 +00:00
Simon Clitherow
4d17f9797c - updated MSVC 6 projectfiles.
-  removed 'using namespace std;' from SCA_Joystick.h
     (gave compile error on VC6).
2005-01-30 15:41:59 +00:00
Ton Roosendaal
fa2a1c84c7 Bug fixes;
#2187: Append to active layer now uses the real active layer
#2191: Stars didnt show up correctly in envmap render
#2194: Startfame > Endframe in anim render crashed (now it gives error)
2005-01-30 15:40:42 +00:00
Ton Roosendaal
c94ec03a9e Bug fix (from own collection)
After using clip-safe pixeldraw from glutil.c (preview render, bg picture)
the current viewport had to be re-set. Not doing so caused a 1 pixel offset
for live updates buttons (on mouse over)
2005-01-30 13:13:31 +00:00
Ton Roosendaal
996374bb5a Fixed old annoyance; enabling true Ortho render in Blender.
It used to be a simple hack, scaling lens with 100, and moving the camera
to the back with an equivalent amount.
Because of the hack, making it 100% compatible with older files I could not
achieve (yet?). To help reminding users, I've added a print when reading
old files with Ortho cameras.

Full description of how it works can be found here;
http://www.blender3d.com/cms/Render_changes.515.0.html
2005-01-30 11:25:27 +00:00
Chris Want
3180afe2cf Correcting the logic of the hotkey modifiers for select
non-manifold. If you want it so all three modifiers are needed
(e.g. ctrl-alt-shift-MKEY) use:

  if ( !(~G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY)) )

instead of

  if ( G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) )

(which really allows any modifier, alone or in combination, to work).
2005-01-29 21:34:45 +00:00
Kent Mein
a238e7b9f4 Fix to get gcc 3.4.1 with scons working again. 2005-01-25 19:26:19 +00:00
Stephen Swaney
c153a593ac bugfix: #2117 Overflow in Armature.Bone.setName()
contributed by Joilnen B. Leite (pidhash).
2005-01-25 06:05:17 +00:00
Kent Mein
1b1ff7ea92 Fixed the Makefiles so the Joystick stuff works.
Kent
2005-01-24 16:16:50 +00:00
Brecht Van Lommel
bfba62e59e Added a color picker and a 'Set VertCol' button to the Texture face panel,
so the color of faces can be set in Uv Face Select Mode. Patch provided by
Carsten Wartmann (moved the buttons, and removed the rgb sliders).
2005-01-24 15:33:13 +00:00
Ton Roosendaal
e44b07d828 Added color filtering for raytrace transparency.
http://www.blender3d.org/cms/Transparent_filtering.514.0.html

Choice was for using a single (new) filter value and have it working OK
with existing alpha.
2005-01-24 14:08:06 +00:00
Stephen Swaney
93319a28a8 fix some undeclared parameters 2005-01-23 20:32:34 +00:00
Yann Vernier
7f4f5deac4 Separated some variable declarations from the code, for wider compiler support. 2005-01-23 20:15:06 +00:00
Yann Vernier
79c4e8a247 Changes Mathutils.Vector() to be less picky about its argument(s). 2005-01-23 17:04:02 +00:00
Yann Vernier
8d0ef2163d This should make the Texture stype attribute work for EnvMaps. 2005-01-23 16:32:51 +00:00
Kester Maddock
413e4f51a6 Make the KX_PolygonMaterial Python member variables writable. 2005-01-23 01:40:37 +00:00
Kester Maddock
d21b9be9a8 Don't delete the Python Controller's private dictionary between frames. 2005-01-23 01:38:41 +00:00
Kester Maddock
a1f0f165e4 Added Joystick sensor (from snailrose) 2005-01-23 01:36:29 +00:00
Kester Maddock
a572d196e6 Don't fail on mesh objects with no faces. 2005-01-22 23:46:54 +00:00
Willian Padovani Germano
1da3b9f517 BPython:
- Stephane Soppera added long missed support for edge data in Blender.NMesh + related doc;
- Michael Reimpell improved script registration (fixes bug report #2160) and the file and image selectors in Blender.Window (improved with suggestions from Yann Vernier).  They now suppport methods as callbacks;
- World.get/setMode were not registered, so could not be directly called (reported by Ken Hughes).  Still needs some work to improve things, including docs.

Scripts:
- Jean-Michel Soler updated his texture baker based on input from Appolux;
- Campbell and Jean-Michel improved the bvh importer: faster, better float units scaling (by Campbell); supports Poser 3.01 files (by jms).

Thanks guys!
2005-01-22 02:48:03 +00:00
Kent Mein
5822d4601d fixed animations using jpeg (bug # 2166)
Basically the deal was on the last fix (multiple opens/closes to a filehandle)
I changed the return values to match other image formats 0=fail and 1 = good
(was 1=fail 0=good before)
I Didn't update the animation code to see this so it was
thinking the first frame failed because it was looking for the old return code.

Kent
2005-01-21 17:50:11 +00:00
Rob Haarsma
136ecd4644 Modified interface texture font support, which should work nicely with the freshly added bFTGL library.
Also removed some redundant #include's on some files.
2005-01-21 14:48:03 +00:00
Rob Haarsma
465b15eb69 Modified FTGL for proper texturefont support.
Also fixed msvc6 (release only) projectfile to build and output correctly.
2005-01-21 14:43:21 +00:00
Kent Mein
64ef688695 Added some extra comments about creating a new image format.
Kent
2005-01-21 13:02:14 +00:00
Ton Roosendaal
1f394a8e0c Bug fix 2116
Area lights with "Noise" dithering only worked for first area light, the
other ones then used wrong table... bug since area lights are in blender.
2005-01-21 12:46:59 +00:00
Ton Roosendaal
8c271d7acb Bug 2162
Current cvs bug; the texture 'crop' lines were not drawn using correct
Panel/Window transform. Simple fix.
2005-01-21 11:07:35 +00:00
Kent Mein
26f63bfa19 Added bFTGL to extern and updated the Makefiles. I'm guessing there will
need to be tweaks but it seems to work on my linux box.  I haven't
touched any of the other build systems so those will need to be done.

We probably don't need all of this stuff but I figured better to add a little
too much then to little.

Kent
2005-01-21 05:15:33 +00:00