Commit Graph

3431 Commits

Author SHA1 Message Date
Ton Roosendaal
dcb41bfdcd Actually done in previous commit; removed dreadful warp-pointer :) 2005-02-19 16:44:17 +00:00
Ton Roosendaal
09f21e45d7 First commit for the transform coding for me!
- fixed warnings in compile (transform.h struct defines)
- drawPropCircle was on wrong location in editmode
- removed prop circle drawing for old transform (sorry, but we're going to
  move soon anyway!)
- removed spaces from transform.c
2005-02-19 16:37:48 +00:00
Ton Roosendaal
e4d74575cc Using border + OGL render is not supported, so renderwin should open
normal size
2005-02-19 16:31:42 +00:00
Ton Roosendaal
d028bcf452 Fix for Key alpha. Thanks to unifying code in render (unified and normal)
we cannot insert colored pixels in sky for Key alpha anymore. Well, this
was useless anyway! (BTW: error not in 2.36 release)
2005-02-19 13:04:23 +00:00
Rob Haarsma
3f463dcc32 Bugfix #2228
Quicktime on OSX now saves Movies with a correct alpha layer.
Also fixed the bottom-to-top orientation problem which occured
with several (OSX) applications.
2005-02-19 10:46:52 +00:00
Jiri Hnidek
f25061c448 - user can interactively choose, what part of window will be splited
- change direction between horizontal and vertical split,
      to change the split push TAKBEY or MIDDLEMOUSE (patch offered by Guillaume)
   - I captured short video, which demonstrates new functionality:

     http://e-learning.vslib.cz/~hnidek/captured-videos/split_window.avi
2005-02-18 19:48:12 +00:00
Kent Mein
8c4608bbf4 I updated the FREETYPE2 checks so it didn't build freetype stuff
if WITH_FREETYPE2 was set to false.

Also added/cleaned up source/nan_compile.mk NAN_NOKETSJI stuff a hair.

Kent
2005-02-18 16:52:03 +00:00
Martin Poirier
f24c823f77 Little test commit for slikdigit.
Moves mouse pointer to center of transformation on grabs init. Easier to select a constraint axis with MMB this way.
This is testing only and very hackish (couldn't find a proper way to get a screen's global coordinates offset).
2005-02-18 01:34:38 +00:00
Kent Mein
3d0780d3ec Modified version of Chris Burt's fix for border render with invalid
border selected.

I changed the test to this:
 if(R.r.border.xmax <= R.r.border.xmin ||
                       R.r.border.ymax <= R.r.border.ymin) {

Original patch tested xmin=0 which isn't quite right.

Kent
2005-02-17 18:08:39 +00:00
Kent Mein
6bc5b5a1f9 Chris Burt's fix for bug #2245
(Puts good data in a tooltip that was a copy of another one and didn't
make sense)

Kent
2005-02-17 16:50:23 +00:00
Johnny Matthews
47239d8ac1 A Couple of Small Fixes for Edge Rotate
1 - Face smoothing is copied from previous pages
2 - Old edge flags are copied from previous edge
2005-02-17 14:09:05 +00:00
Johnny Matthews
0324fc10b1 This commit adds rotate edges Clockwise and CounterClockwise to the Edge Specials Menu (and of course the code to back them up) 2005-02-16 15:02:58 +00:00
Willian Padovani Germano
b7eaee3ad2 BPython bug fixes:
-- Ton caught a redraw trying to free a busy slider button in a script.  Made sure the redraws don't happen in the scripts win during slider updates, but the realtime slider (automatically updates the 3d view) isn't working yet as it probably shouldn't with the current code. There's a pre 2.25 comment in Draw.c about it being hackish and wrong;
-- Melchior FRANZ reported a bug related to a script dict being freed too early (when two instances of the same script were on: one with a gui and the other with a file selector -- selecting the file triggered the problem);
-- bug #2074 reported by Roland Hess: totally empty string button -- no prepended but->str (e.g. "OB:") neither but->poin (the actual string) -- crashing Blender.  Crash happened on editscreen.c: screen_delayed_push_undo calls strncpy() without checking the passed string.  Didn't mess with it, better let the coder in charge of undo (Ton, right?) choose a preferred way to deal with it (report error, simply use blank string).  Staying on the python side at least for now, I just made but->str = " " (a space) when user doesn't define it, so the crash shouldn't happen anymore.

http://projects.blender.org/tracker/?func=detail&atid=125&aid=2074&group_id=9

Thanks guys for reporting the problems.
2005-02-16 03:32:57 +00:00
Kent Mein
427ff274a2 Joseph Gilbert's fixes for the linux2 build target.
Kent
2005-02-15 13:06:08 +00:00
Kester Maddock
09fdbdc744 Fix compile errors for MSVC 2005-02-15 10:02:19 +00:00
Johnny Matthews
af03f9b798 Not all flags and such were copied to new faces in edge rotate - should fix bug 2139 2005-02-14 20:14:10 +00:00
Brecht Van Lommel
3d241fd6cc Small fix for new transform commit, scons complains about missing imagepaint.c.
This file is only in tuhopuu.
2005-02-14 15:19:55 +00:00
Chris Want
c334c00995 To compile the new transform code with make, add the following to
user-def.mk:

  export NAN_NEW_TRANSFORM=true
2005-02-14 03:12:12 +00:00
Martin Poirier
28902e9334 MSVC 6.0 projectfile changes to go with last commit. 2005-02-14 02:56:15 +00:00
Martin Poirier
d2f4ba4549 Initial new transform commit.
Disabled behind defines. Uncomment //#define NEWTRANSFORM in transform.h to enable.

Use at your own risk

For more info, see Wiki: http://wiki.blender.org/bin/view.pl/Blenderdev/TransformRefactoring
And tuhopuu mailing list: http://projects.blender.org/pipermail/tuhopuu-devel/

Notes for Ton (things that could need bulldozing:
- TransData conversions. Objects is ok, but others could be rechecked. (some still use totsel). Need to add pose mode support.
- Need more icons in the PET mode dropdown (in the 3D view header) for the new modes
- Add new transform calls to Toolbox and Menus and the one right after Extrude.

That's pretty much all I can think of now.
2005-02-14 02:53:36 +00:00
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