Commit Graph

2915 Commits

Author SHA1 Message Date
Kent Mein
06cb471269 Fix so it compiles on my machine....
Changed:
        row_pointers = new (png_bytep) [(GetHeight() * sizeof(png_bytep))];
to:
        row_pointers = new png_bytep [(GetHeight() * sizeof(png_bytep))];

Thanks emil....

Kent
2004-10-26 13:04:27 +00:00
Ton Roosendaal
15e1671ec5 Enabling transparent pulldown/popup menus in Blender. Speed of drawing is
not affected when using standard (alpha=255) settings.

Only the backdrop for menus and unselected items can be transparent, the
highighted (active) item remains solid colored.

Just fun eyecandy tho :) but the recode of menu enables this easily.
2004-10-26 12:52:20 +00:00
Alfredo de Greef
c245379175 Bugfixes:
Blender hemilight shadow flag now ignored (reported by varuag).
Texture axes were not exported for procedural textures.
Duplicate armatures were not handled correctly (reported by richie).
Triangle uv-coord splitting (reported by anael, richie & Alvaro).

Additions:
Material 'TexFace' mode now works too, as in Blender it functions as an extra
first texture channel, replacing the base color.

The new noise functions for procedural textures are now supported in yafray,
but is  not quite completed yet, still undergoing changes.
(needs yafray from cvs).

The 'power' button has been renamed to 'EmitPwr', since it controls background,
arealight (including lamp with radius) & material emit power.
This button can now be used with the 'SkyDome' method as well to control
background lighting.
To control indirect lighting power, a button called 'GI pwr' has been added,
only use this when really necessary, first try modifying 'EmitPwr' instead.

Removed:
The 'gradient' button. This includes the python code to set
this parameter as well.
2004-10-26 00:52:12 +00:00
Nathan Letwory
85c889108d add necessary include paths for scons needed after fix for screenshot. NOTE: GPC_Canvas.cpp doesn't compile with msvc7 currently! 2004-10-25 15:52:54 +00:00
Kester Maddock
e4d22a8021 Tweek the stereo settings: allow negative eye separation. 2004-10-24 23:50:44 +00:00
Kester Maddock
e398ad2c0e Do a complete physics timestep each step instead of some per frame 2004-10-24 23:48:04 +00:00
Kester Maddock
657eff7ed7 Port stereo stuff from tuhopuu2: anaglyph, vinterlace 2004-10-24 11:03:18 +00:00
Kester Maddock
6424bf6eb0 Fix makeScreenshot for blenderplayer 2004-10-24 10:42:31 +00:00
Ton Roosendaal
070d01dd68 Two fixes!
- undo system didn't work in editmode AT ALL!!! (stupid me)
- Lattice deform on non-subsurfed objects did not update
2004-10-22 14:03:20 +00:00
Ton Roosendaal
eecaa4cb50 Better pointer check in outliner.c for actions, for bassam :) 2004-10-22 12:33:18 +00:00
Michel Selten
461e07aedd SConstruct now looks for tools/scons/bs for the files. This used to be just
bs.
2004-10-20 20:17:42 +00:00
Michel Selten
77d5bdfdbb Created directories for the scons tools.
The actual move of the files will be done by jesterKing.
2004-10-20 20:13:42 +00:00
Ton Roosendaal
0582a8513d Fix for better flushing up/down of hide flags in the selection modes. Still
tricky to find the perfect rule. This version should satisfy I think ;)
Aim is to have ALT+H and H doing always the same, regardless selection mode.
2004-10-20 12:39:48 +00:00
Willian Padovani Germano
fa9135385a BPython:
- Blender.Window: added function GetPerspMatrix() (Tom Musgrave's patch, thanks);
- added Chris Want's patch to tell argc, argv to the Python interpreter (thanks, Hos);
- Blender.Image: added image.glFree() to free textures bound by the recently added
  image.glLoad() (both suggested by Campbell Barton -- thanks, with these Blender can
  be used to load textures for scripts);
- Blender.Sound: removed for now at least a few get/set methods of vars that can't be
  accessed via interface;
- renamed Get/makeActive to Get/setCurrent in Blender.World (actually added alias for
  now), same in Blender.Sound: renamed makeActive to setCurrent.  Stephen Swaney
  pointed this some weeks ago, we should stick to one naming convention.
- added documentation for Sound and Window.Theme modules and the other added
  functions, made other small updates.
- Blender.Object: made 'worldspace' become the default output of .getMatrix and .mat/.matrix:
  after reading a discussion on blender.org's Python forum where eeshlo mentioned the
  pre 2.34 default was worldspace, I took a better look at Blender's relevant code,
  confirmed, talked to Theeth about this and as he suggested am changing the default
  back to 'worldspace'.
2004-10-20 05:51:24 +00:00
Simon Clitherow
f2f004af2d Bug fix for #1493 -
- Changed shortcut of "Align Active Camera to View" to
    Ctrl+Alt+Numpad0 to make it Windows-friendly.

  - Old shortcut of Shift-Numpad0 still works (until we find some other
    use for it!)

Could use testing on KDE/Gnome, etc - incase we make X do somersaults or something equally daft! :P
2004-10-19 21:29:15 +00:00
Ton Roosendaal
29ac3db7e8 Two reported issues with undo #1667 and #1168
- press TAB without object active cleared undo stack
- typo (another!) in variable name, causing undo stack from wrong object
  to be used (when have edited more objects)

Plus i found:
- rule for preserving editmode undo stacks, while using global undo, made
  stricter now. Before it only checked name, now it checks for existance
  of pointers extra.
2004-10-19 16:57:01 +00:00
Ton Roosendaal
4c827e73e2 Four new extrude possibilities;
- Individual faces
  Keeps Mesh manifold, so removes old faces always. Also uses a
  transform based on different vectors per vertex.

- Only edges
  Just extrudes the edges (not really 'individual', the edges still
  share the vertices. Uses same transform as normal extrude for that
  reason

- Only Vertices
  Uses normal transform after extrude

Also changed code a bit, to detect whether to call a normal-based
transform after extrude, or whether to call normal grabber. For example
when you just extrude 1 edge, it uses normal grabber.

Note; extruding an entire sphere goes OK with 'individual faces'. for
other extrudes you should press 's key' when in transform. Just cannot
predict (yet) when one method has preference over another.
2004-10-18 22:47:26 +00:00
Ton Roosendaal
295f11ea70 Outliner; menu 'scene operations' didnt do anything, commented out
Undo; when using global undo, the editmode undo stack remains accessible.
Meaning you can do global undo/redo, and then go back in editmode and
have all undo/redo steps as originally left in editmode.
2004-10-18 22:41:18 +00:00
Ton Roosendaal
1a591506c6 When you save a file while using radio tool, it didn't load correctly
because of a flag set which prevented drawing the objects.
2004-10-18 22:39:14 +00:00
Ton Roosendaal
a92b7277dc Fixes for #1654 and #1655
- crash when converting nurbs->bezier, with nurbs having <3 points
- copying audio strips in sequencer didnt increase ipo user counter
2004-10-18 09:43:38 +00:00
Ton Roosendaal
0be2d97e2e Hah! found the trick to recover hierarchy in edit bones, so the display
of Outliner of it is nice hierarchical too.

Please note that storage in outliner for editbones and pose-bones are
separate, so you have to uncollapse the views independently
2004-10-16 22:30:54 +00:00
Ton Roosendaal
121f842fb4 Outliner now visualizes and allows selection and name editing of Armatures
in edit mode.

Small extra fix; selection (mouse) on armature points goes easier now
(larger accepted distance from mouse pointer)
2004-10-16 20:41:18 +00:00
Stephen Swaney
eb9c70c50a more Text editor goodness from themeyers.
TABKEY indents current selection.
SHIFT-TABKEY unindents current selection.
2004-10-16 19:40:58 +00:00
Ton Roosendaal
8646736d2a Small fix for #1628
Constraints on an object with hooks (or other deformer) didnt update
OK while transform(). The fix is easy code to isolate for Martin, so
hopefully he can find integrated solution in transform() refactor :)
2004-10-16 19:14:39 +00:00
Nathan Letwory
6c8d048773 remove std:: to please msvc6 2004-10-16 18:50:23 +00:00
Nathan Letwory
333f0a29db Added #include <assert.h> so it compiles where assert() was used. 2004-10-16 18:13:00 +00:00
Ton Roosendaal
65a878a24a Bug #1651
And another fix for only shadow render. Correct clipping for spotbundles
shining on only-shadow materials.
2004-10-16 15:55:16 +00:00
Ton Roosendaal
c79b3bb92c Fix for #1618
Only shadow material + spotlamp-ray-shadow didn't clip for the spotbundle
correctly.
2004-10-16 15:25:58 +00:00
Ton Roosendaal
a463798984 Suggested by bug reporter; pressing Fkey to make a face, whilst the
selection already is 2 triangles, it should create a new face but
remove the old triangles. It actually calls the 'ALT+J' command then
(join triangles)

While testing found out more cases where new selection flags were not
properly used (join trias, beauty fill, flip edges, rotate edges)
2004-10-16 13:53:41 +00:00
Ton Roosendaal
96f2f71cb1 Fix for #1650
"Clear FGon" didn't call essential EM_fgon_flags(), to rebuild the lookup
table codes for polygons. This causes former fgon faces to become
not selectable
2004-10-16 12:27:16 +00:00
Ton Roosendaal
87663f8996 Bug fix 1649
Add edge/face didn't use correct selection code yet.
2004-10-16 12:20:06 +00:00
Ton Roosendaal
8682084834 Bug fix #1647
Making 'nice' code (split reused code in separate call) caused DupliFrames
option not to work, dupliverts & particles did, but yah, testing eh! :)
2004-10-16 12:05:42 +00:00
Ton Roosendaal
541a55484b fix for #1646
view3d header menu, mesh editmode, "make edge/face" didn't work. not since
it was committed oct last year :)
2004-10-16 11:48:14 +00:00
Kester Maddock
7b2567924b Switch fixed time system. Logic updates should now happen at 30Hz, physics at 60Hz. (By default, use Python to set.) Some actuators still run at framerate (IPO, Action) for nice smooth animation, and an excuse to buy high end hardware.
Keyboard sensors can now hook escape key.  Ctrl-Break can be used from within blender if you've forgotten an end game actuator.

Fixed a stupid bug preventing some actuators working (like TrackTo).
2004-10-16 11:41:50 +00:00
Ton Roosendaal
0639829140 Fix for #1549
This was something users found since tracing got into blender, having
sometimes small 'dots' or bright pixels or missing reflection rays in
an image. Thanks to the very simple sample file I could disect it...
it appeared to be an incomplete check for all numerical exceptions when
you traverse the octree nodes. Very technical, but clear comments are in
the code to explain ;)
2004-10-16 11:29:09 +00:00
Kent Mein
e8b41d139c Martin DeMello's patch to add dxf import code for:
CIRCLE, ARC, ELLIPSE and LWPOLYLINE.

I made some modifications to it to clean it up a bit.

I entend to do some more dxf stuff in  the near future but figured
this is ready to go for now, and trying to clean up a bunch of small stuff
I've had sitting around for awhile. ;)

Kent
2004-10-15 13:04:21 +00:00
Kent Mein
0f5eae2c64 added -h to the commandline args to print usage.
Kent
2004-10-15 12:46:57 +00:00
Stephen Swaney
74aa13e29a fix evil c++ declaration. 2004-10-14 23:57:33 +00:00
Stephen Swaney
4ac4629905 a patch for the Text editor contributed by themeyers.
adds new features for indenting and commenting.

Note: I am not sure if the best menu spot for these features
is under the Select menu, but we can argue about that later.
They do work on a selection, though.

from the mailing list post:

1&2. Added Indent/Unindent under Edit->Select
just select the text you want to indent and go to the menu (
note if nothing is selected Indent will just indent ( tab )
the line the line )

3&4. Added Comment/Uncomment to the same menu
same applies as above

5. Added Tab setting on the menu bar in text editor
Sets the number of spaces a tab ==
changing the setting will change the hole script

6. Added Auto indent
when you hit enter it goes to the next line at the same
tab number and the line above it ( needs more testing and input)
2004-10-14 23:37:04 +00:00
Nathan Letwory
9d579591a3 Make msvc happy by 'improving' order of declaration and removing superfluous layout issues. 2004-10-14 23:34:19 +00:00
Stephen Swaney
8edf8ff5fa bugfix: #1642 Matrix multiplication memory leak
another memory leak plugged.
2004-10-14 23:11:09 +00:00
Ton Roosendaal
6346486995 fix for #1635
Field render, and field option for image texture, had error due to
returns in middle of calls... this bug was there already for long
while, not much used eh ;)
2004-10-14 23:03:12 +00:00
Ton Roosendaal
24cd65efb0 Typo in effect.c, bad testing :) 2004-10-14 22:39:13 +00:00
Ton Roosendaal
61f738e0f3 Bug fix & new feature;
http://www.blender3d.org/cms/Particle_duplicators.443.0.html

Static particle systems now can also duplicate children (Dupli Vert).
Even ipo's for children are evaluated correctly then, nice stuff :)
2004-10-14 22:20:42 +00:00
Stephen Swaney
9b82ff3d00 one teensy comment.
no executable changes
2004-10-14 20:51:20 +00:00
Stephen Swaney
78a810d9af fix bad return types for errors in Matrix_coerce().
EXPP_ReturnPyObjError() should have been EXPP_ReturnIntError().
2004-10-14 19:06:44 +00:00
Stephen Swaney
7dda27fcd7 followup to vector memory leak fixes:
fix for problems with NMesh vertices.
  plug some more leaks in matrix module.
  new vector method newVectorProxy().

In BPy-Land, we have overloaded the meaning of our Vector
type.  One use is for vectors in the traditional mathmatical
sense.  The other legacy use is as a proxy for Blender data.
The recent memory leak fixed have lead to the Vector type
behaving as mathematical vectors.

However, the NMesh module is still using Vector types as a
proxy to manipulate NMVert data.  To support this usage, in
the vector module there is a new factory method
newVectorProxy().  This creates a Vector that references
memory outside the Vector.  Vectors created by
newVectorProxy() do NOT free their referenced memory.  The
newVectorProxy() is used only in bpy code and is not exposed
thru the scripting interface.

Anyone using newVectorProxy() must be aware of object
lifetime and scoping issues because the returned Vector
holds a pointer to memory it does not own.  This works in
the NMVert case since we are referencing memory belonging to
the NMVert object via an NMVert method.
2004-10-14 17:35:16 +00:00
Ton Roosendaal
6fbd4e3e1f Color picker fixes... (bug #1490)
Since color is stored RGB only in Blender, the conversion from and to HSV
causes values to be clipped all the time.
Solution found is adding a persistant hsv storage to the uiBut struct, and
have it working on that only while hsv button is open. Still, after usage
(leaving picker) the conversion will change values to rgb.

Also added; redraw event for editing buttons, to show correct changed
color while using nkey picker
2004-10-14 14:20:24 +00:00
Kent Mein
0d68cafdec Added to the top of the file: struct SpaceOops;
to stop a warning about SpaceOops defined inside of parameter list...

Kent
2004-10-14 13:52:12 +00:00
Kent Mein
a5c2bc3c23 Kenneth Strom's patch to make Fractal Subdivide work in the -
direction as well as the positive.

Kent
2004-10-14 12:14:39 +00:00