Commit Graph

4150 Commits

Author SHA1 Message Date
Daniel Dunbar
b3f0facfbe - shouldnt be a trailing comma after include 2005-09-24 15:50:56 +00:00
Ton Roosendaal
843bc28d37 Bug fix #3098
Grmble... and now the feature ALT+J 'join triangles' broke. :)
Also found out the Fkey option didn't work anymore on 2 triangles (makes 1
quad too). Luckily we got people testing eh!
2005-09-24 15:46:08 +00:00
Ton Roosendaal
e5b9f62c6e bugfix #3100
Hrms... previous commit here to make sure faces are not added 'double',
caused a part in removedoubles not to work well, removing too many
faces. Solved it more proper now.
2005-09-24 15:36:25 +00:00
Stephen Swaney
94aa843626 Patch #3099 - bugfix for #3097.
a little tweak for arg parsing.

Contributed by Ken Hughes.  Thanks!
2005-09-24 15:28:59 +00:00
Ton Roosendaal
0ce3341aaa Created a new sub-context ("tab") for all physics related button panels.
There we can find now Particles, Fields & deflectors, Soft Body and Fluids.
This also as preparation for more work on the particle side (becomes two
panels).

Also renamed panels, and made sure the name "Soft Body" is spelled every-
where the same!

It uses an icon as was designed long ago already. Needs some thinking...
2005-09-24 15:10:08 +00:00
Ton Roosendaal
abe9799c47 Made sure in vpaint, wpaint and tpaint the "draw extra wire" shows identical
as for non-paint drawmodes. I guess this exception was from period before
we had subsurfed paint drawing... right daniel?
2005-09-24 14:27:32 +00:00
Ton Roosendaal
1a82b405fd Older files, saved with old IKs, crashed sometimes on do_versions.
This whole backward conversion stuff is getting nuts! :)
2005-09-24 14:19:37 +00:00
Ton Roosendaal
e282f49904 Error in derivedmesh... OBACT undefined of course. :) 2005-09-24 13:55:39 +00:00
Ton Roosendaal
e1c56fc201 Made WeightPaint use shaded mode. This thanks to the preparations as done
by daniel before. :)
Note; the shaded display uses smooth normals by default, because thats how
the derived mesh works!

Daniel; I've changed the G_WEIGHTPAINT hack in derivedmesh code... no idea
how this could work even. Still ugly though.
2005-09-24 13:49:55 +00:00
Jiri Hnidek
ac4dde3477 - one line bug fix: when user changed position of keys in Ipo Curve Editor,
then position of keys weren't redrawn in Timeline
2005-09-24 12:42:30 +00:00
Ton Roosendaal
7cf9300d4d Old error... on ctrl+clicking new bones, the envelope bone distances were
not correctly flushed for connected bones.
2005-09-24 10:34:50 +00:00
Ton Roosendaal
6b33e12b90 Bug fix #3094
Playback of sequencer sound crashed in combination with dupliverted
Objects. (confirmed in osx only btw).

Found out there's old not-needed code in the update_for_newframe() call,
that was intended to do updates for Manipulators (calling countall()).
In countall(), the entire duplilists were generated over, just for
counting the totals.

First step was removing the countall from update_for_newframe, and added
a count_duplilist() call which doesn't generate the full duplilist. That
made Blender not crashing anymore, but gives "Error totblock", without
printing the block names even...

The weird thing also was that the crash showed severe memory corruption in
the malloc library, when combining audio scrubbing (SDL) and duplilists.

I now suspect there's a remaining issue with DerivedMesh, but for that I
need help from Daniel.
2005-09-24 09:05:48 +00:00
Nils Thuerey
4fb0cccc68 - merged latest version of fluid solver
(fixed shadowed variables warnings, removed cfgparser.hpp,
	added cfgparser.h, removed debugging output)
- added support for env. var BLENDER_ELBEEMDEBUG to enable
  debugging output again
- fixed missing triangle display (marching cubes produced v3=0 triangles)
- fixed geometry init bug (nearest intersection check
  for intersecting objects was messed up)
- changed position of derived mesh creation in DerivedMesh.c
  (for some reason the useDeform code is necessary, without it or
	 with useDeform=0 nothing is displayed)
- 3dviews now update every 2 seconds to show simulation progress
- note: mesh_strip_loose_faces(me); in ./source/blender/blenkernel/intern/mesh.c:937
  not necessary anymore?
2005-09-23 14:42:14 +00:00
Ton Roosendaal
f12a551213 Bugfix #2746
In Surface editmode, solid draw  mode, curves are drawn in wire now
(where in invisible). Its a simple fix, it shouldn't give issues with
the Nurbana work. :)
2005-09-23 08:29:32 +00:00
Ton Roosendaal
00d26ddf48 Bugfix #2948
For using the Fkey (add face) editmesh tool:
prevented triangles being made that are partially a quad face already.

Tools in editmode don't like such situations (tria->quad for example), also
subsurf hates it. :)
2005-09-23 08:12:52 +00:00
Ton Roosendaal
367c91bf34 Bug report #3092
Excluded the 3D cursor from being clipped with the new ALT+B clipping.

Also added a refresh for the object that gets (Pkey) separated in mesh
editmode, might solve issue reported by Campbell.
2005-09-23 07:28:15 +00:00
Ton Roosendaal
abb66762f1 Bugfix #3089
PoseMode rotate now also supports "Around individual Centers" for rotating.
2005-09-22 20:11:21 +00:00
Joseph Gilbert
942eb67b40 Warnings fix for windows. 2005-09-22 19:48:26 +00:00
Ton Roosendaal
aec7821c2d Bugfix #3085
When you move the mouse, while dragging numbers in buttons (or sliding),
and release it over another button, the release event was passed on to that
button. It happened with Radiosity buttons for example.

Reason; buttons with return event 0 are passing on events to other buttons.
This is needed for LABEL or ROUNDBOX buttons, to prevent them blocking
events when there's another button inside.

Made sure all these number/slider buttons returning B_NOP now.
2005-09-22 19:47:31 +00:00
Toni Alatalo
d2304e5abb the missing menu selection for the newly added Curve RVKs 2005-09-22 19:41:30 +00:00
Ton Roosendaal
18e50e166e Bugfix #3075
Wave Effect (and build etc) was being converted while the code later on
was reading existing modifiers (and unlinking the converted data).
2005-09-22 19:12:53 +00:00
Ton Roosendaal
d9fa984f35 More properly coded version for adding edges... now only do_versions()
reads from the old mface->edcode flag to set edge drawing.

ALso; added a pointer check in draw_mesh_object(), here the derivedmesh
gives NULL on reading regression file lostride.blend. Zr needs to check!
2005-09-22 17:52:41 +00:00
Ton Roosendaal
0f6194e5bc Bugfix #3077
Radiosity didn't add edges block, on "Replace Meshes". Caused wireframe
not to draw, but also crashes like for join().

Also: added patch that sets the drawflags in edges derived from the
ones set in faces. This ensures the conversion to be done correct.

TODO: this edges call also used in other areas in code, that has to be
catched and done differently.
2005-09-22 17:00:58 +00:00
Jiri Hnidek
7cd510f2d8 - interactive joining of two screen areas
- user can interactively select, what screen are will be "kept alive" and
   what will be destroyed
 - screenshot:

   http://e-learning.vslib.cz/~hnidek/pics/interactive_joining_of_scrareas.jpg
2005-09-22 12:45:19 +00:00
Alexander Ewering
8a1266661e Courtesy of Shaul Kedem:
Option to play sequence strips (Movie, Image, Scene) in reverse.
New toggle in the NKEY buttons for sequence strips.

Thanks Shaul!
2005-09-21 20:28:44 +00:00
Stephen Swaney
5bac916e83 Part of Bpy Cleanup: change attribute access to use tp_getset.
for these modules.  Adds some new convenience funcs to gen_utils.

This is internal change only and presents little change to the
BPy  API except for cleanup of some inconsistencies.

A big contribution from Ken Hughes.  Thanks!
2005-09-21 19:48:40 +00:00
Nils Thuerey
e1fe7c88ec - fixes elbeem SConscript file for python2.3
- added temporary fix for 128+ resolutions
2005-09-21 13:30:39 +00:00
Ton Roosendaal
10a790041b Orange request; get RVK (relative vertex keys) work for Curve objects.
Sir yes sir!
2005-09-20 21:18:37 +00:00
Jiri Hnidek
61c341a152 - intrr said, that if(strlen(marker->name)>0) is a bit cumbersome ...
I hope, that current solution will not provoke him ;-)
2005-09-20 17:28:23 +00:00
Jiri Hnidek
ff22c1de20 - name of marker is printed only when strlen(marker->name) is bigger then
zero
 - bug fix (feature request): name of marker isn't pushed out of window,
   when timeline window isn't very high (thanks Matt for bug report)
2005-09-20 16:36:07 +00:00
Ton Roosendaal
bb59977d79 Bugfix #3041
Missing updates for Textured objects in 3d window, using copy buttons.
2005-09-20 10:26:23 +00:00
Ton Roosendaal
0746e7edb3 Bug fix #3044
Undid Daniels' commit (version 1.42) for this file, which claimed to fix
"free baked softbody". Result was that baked softbodies couldn't be read
from a file (always were freed).

I tested the free bake, and it works properly. Daniel: your move!
2005-09-20 10:21:30 +00:00
Ton Roosendaal
256a59c36e Bug fix #3052
Syntax highlight in Text Window crashed with lines > 2000 chars. I now just
skip the highlighting code for these cases, it remains a bit weak code...
2005-09-20 09:43:03 +00:00
Ton Roosendaal
3ef1f0f3e3 Made EditMode armature border-selecting smarter.
Rule now is:
- If there's points in the border, only the points get selected (and an
  entire Bone when both points are in border)
- If no points in the border, the tip gets selected for connected Bones,
  the entire Bone gets selected for non-connected Bones.

OK OOPz, check this! :)
2005-09-20 08:48:06 +00:00
Ton Roosendaal
820bcb4be8 Bug fix #3070
<blush>Missing "2*" caused AO tables to be only initialized half</blush>
Result was bad AO quality in render, and unpredictable brightness. This bug
happened in previous commit, when fixing random table issues.
2005-09-20 08:06:03 +00:00
Mika Saari
f210e88263 Coding style from spaces to tabs in files related to Unicode Font Object.
Function strlen changed to wcslen in editfont.c in ALT-U (undo) functionality.
2005-09-19 17:58:51 +00:00
Chris Burt
6183bdf1b8 Added id strings to the tops of buttons_*.c files which were missing their
correct format. CVS expands $Id$ to the format you usally see at the tops
of files and these only had $Id: which CVS ignores.
2005-09-19 13:26:17 +00:00
Chris Burt
ed674ba6f9 Added 'Radial' blend texture type for created colored radial gradients
like that you might find on a CD. Special thanks to use Phlip in
#blenderchat for help on the math. Thanks Philp!
2005-09-19 13:00:44 +00:00
Alexander Ewering
4074832f90 Add #ifdef INTERNATIONAL around #include, potentially fixes compilation 2005-09-19 10:15:26 +00:00
Ton Roosendaal
bf0ef10179 Bugfix #2971
Alpha error in unified render, causing mist and non-ztransp alpha and 'env'
materials not to render correct.
2005-09-19 07:53:08 +00:00
Alexander Ewering
4bfbb978d2 Bug #2930:
Fix Amiga IFF loading for little-endian platforms
2005-09-19 00:12:43 +00:00
Alexander Ewering
743bf0c7bb Looking at it, I could improve drawing of selection at least
*slightly* for TextOnCurve. It draws with errors, but it's at least
possible to remotely guess the selection :-)
2005-09-18 23:50:23 +00:00
Alexander Ewering
9db14ce9b3 Disabling underlining for text objects with "TextOnCurve", because it can
never work correctly with it, the way it is currently implemented.

The selection won't draw correctly either with TextOnCurve, and this is
really asking a bit much..

What to do...
2005-09-18 23:44:30 +00:00
Jean-Luc Peurière
493c941016 the fluidsim UI and blender interface files 2005-09-18 13:28:42 +00:00
Jean-Luc Peurière
e2d577de9e initial commit of the fluid simulator.
Ton reviewed and gave his blessing.
Zr, can you have a look ?

see :
http://projects.blender.org/tracker/?func=detail&atid=127&aid=3039&group_id=9

for initial comments.

N_T : the solver itself (elbeem) needs some works to get rid of
warnings
2005-09-18 13:27:12 +00:00
Ton Roosendaal
9e3468bde2 NLA strips that had an internal repeat, didn't use correct timing to be
rendered with MBlur or Fields.
This is a fix for now, but I've already noticed several pending issues for
Blender's internal time control (time ipos, global time control, startframe
offsets, etc). That's for another time! (pun not intended :)
2005-09-18 12:24:14 +00:00
Ton Roosendaal
7c8e636979 Small fixes, based on bugreports;
- Toolbox item for shaded mode had wrong hotkey
- Added countall() for select menu stuff (in 3d header, groupmenu)
  That way the stats in infoheader are updated.
- Tooltip was wrong for X-axis mirror mode Armatures
2005-09-18 11:20:05 +00:00
Jean-Luc Peurière
4803b14675 compatibility fix for Os X tiger with make.
add export USE_OSX10.4STUBS = 1 to your user-def.mk if compile fails
on missing definitions like _printf$LGDB

those are parts of the 10.4 sdk.

This is interim fix as scons dont need this and we should be able
to acheive same result with make. investigating further on this.
2005-09-18 11:19:53 +00:00
Brecht Van Lommel
0804d66f79 - Imagepaint code cleanup:
- Move UVTEXTTOOL variables into global Gip struct (like Gvp for
    vertex paint). This will probably be moved into SpaceImage later,
    so it is saved with the .blend file.
  - Disable tool drawing. a better solution needs to be found.
  - Panel button layout is still the same, this will change.

- Removed the NAN_TPT define, it has no use anymore.
2005-09-16 20:17:09 +00:00
Alexander Ewering
7c29e6d551 And this time, the right file. 2005-09-15 22:06:31 +00:00