Commit Graph

4979 Commits

Author SHA1 Message Date
Nils Thuerey
7095d8a11f - minor solver fix for msvc compilation
- added pop up menues for fluid sim bake with no
  fluid objects or without valid output dir settings
- fixed 3d view redraw for fluidsim buttons
2005-10-10 11:31:06 +00:00
Nils Thuerey
d3d8441f67 - fixed fluidsim inflow speed init
- fixed intersecting fluid objects init
- added MSVC6 fixes from bjornmose (thanks!)
2005-10-10 08:52:42 +00:00
Nils Thuerey
328eeaf10b - added option to switch off compiling elbeem to scons files (set USE_FLUIDSIM=true)
in this case only the new blenderdummy.cpp and utilities.cpp have to be compiled
- restructured gui:
   * domain options split up into 2 sections
	 * added compressibility and refinement settings
	 * added inflow/outflow object types
- increased progress bar by 1
2005-10-10 06:59:47 +00:00
Daniel Dunbar
4cea576ced - silly test inversion, thanks to Stephan Kassemeyer for noticing 2005-10-09 21:01:57 +00:00
Daniel Dunbar
8abb59b0ce - bug fix, paste clipboard on windows didn't free buffer 2005-10-09 18:47:07 +00:00
Daniel Dunbar
7a742d9f89 - bug fix #2940, at some point assumption that mesh_get_derived_...
returned NULL in editmode was invalidated which caused a crash in
   particles (was freeing subsurf cache). I can't remember but hope
   that I didn't intentionally break this assumption for some
   reason. :/
2005-10-09 18:38:40 +00:00
Daniel Dunbar
8649197925 - bug fix for #2948, made ccgSubSurf bail (completely) when it encounters
an inconsistent mesh. I would really like this to be corrected at some
   other stage, probably on loading, but at least things shouldn't crash
   now.
2005-10-09 18:18:11 +00:00
Daniel Dunbar
f105f96175 o another warning fix for msvc 2005-10-09 16:59:10 +00:00
Daniel Dunbar
af8b623002 o some warning fixes (compare of int to NULL, missing prototype) 2005-10-09 16:57:49 +00:00
Jens Ole Wund
b9e6e0c2ec make compiling with free ms vc7 toolkit easier
hum .. do we need that ODBC .. looks like no
2005-10-08 22:40:58 +00:00
Joseph Gilbert
4af7d8db30 -fix for AngleBetweenVecs
* correctly finds zero length vectors now
2005-10-07 15:24:32 +00:00
Ton Roosendaal
03be0d343d Quickly re-enabled drawing of Text object in editmode.
Simple fix... but I am in a three meeting session in Stockholm now, can
not do full tests, hope it works. :)
2005-10-06 21:43:56 +00:00
Matt Ebb
9b010e4762 * Added a Select -> Inverse for object mode, available
in the 3d view header and toolbox.
2005-10-05 13:08:07 +00:00
Alexander Ewering
d6f1390a32 Missing file, must have slipped between 2 of the phone calls :) 2005-10-04 21:46:48 +00:00
Alexander Ewering
784a99b9b0 Beware, coded between 10 phone calls and 20 sudden surprises, but I still
hope it's somehow usable :-)

Colourpicker update:
-------------------

1) Converted numbuts to sliders and made the colourpicker wider. Sliders
   are more useful for something like RGB and HSV because they're fixed
   range values

2) Added a hex button for entering HTML-like color (#RRGGBB, can be
   entered both with and without the hash sign).

   This should completely replace the former strange NKEY functionality
   in buttonswindows, and even add hex support for buttons which didn't
   have it before.

Please test thoroughly, I never coded something in a hurry like this.

There are small rounding errors still... Maybe someone finds the
reason? :)
2005-10-04 21:23:19 +00:00
Jens Ole Wund
42bd456060 added elbeem though it won't compile without modifications
thus i did not add to dependencies but still a nice reminder to build it at times
2005-10-04 20:39:31 +00:00
Ken Hughes
5f6dbf846b remove non-standard __FUNCTION__ use 2005-10-04 20:27:25 +00:00
Matt Ebb
b6817b55e8 * Added from tuhopuu: icons in ok/confirmation popups
( http://mke3.net/blender/interface/controls/error_ok_icons.png )

A bit nicer and quick to visually recognise at a glance
2005-10-04 20:17:30 +00:00
Ton Roosendaal
5b25951013 Drivers cannot drive channels of own Object, added error warning for it. I
might allow this once, but it's a lot of new complexities then.
It also means you cannot drive one Bone with another Bone in same Pose.
2005-10-04 20:17:10 +00:00
Jens Ole Wund
38ee277db1 adding mesh.c .h files to project 2005-10-04 20:07:21 +00:00
Johnny Matthews
fe6badc186 Another little fix for non-prop edgeslide 2005-10-04 18:50:58 +00:00
Ton Roosendaal
375056def5 Added (temporal) fix for crashes with the new cool "show modifier deform in
editmode" feature. This specific fix only patches the case with armature
deformed meshes & vertex groups.

Note that while in editmode, new created vertices have no weights or
groups assigned, so the result will be unpredictable. This feature should
actually only be allowed for moving vertices around I guess...
2005-10-04 18:04:49 +00:00
Ton Roosendaal
d8c17fcf8b Bugfix #3188
Enter Vpaint or Wpaint did not redraw headers of all 3d windows, so the
mode menu indicator didn't update.
2005-10-04 17:43:41 +00:00
Ton Roosendaal
ecddc0739b Posemode, ALT+R,G,S didn't work always, this because SHIFT+mouse selecting
accidentally could unselect the object itself.

It can be that older saved files still show this issue, then just select
another object, and select the armature again. :)
2005-10-04 17:40:22 +00:00
Ton Roosendaal
4a0d86aac8 Small fix; browse Vertex Weight groups in Edit panel, didn't update display
of 3d object.
2005-10-04 15:58:25 +00:00
Ton Roosendaal
0e22b501db Duplicate Objects updated links in drivers wrong (the new object became a
driver). Now drivers are only corrected on duplicating when the whole Ipo
got copied a well.
2005-10-04 15:30:51 +00:00
Ken Hughes
ac668ea561 Added Mesh.New() method; can now create new meshes within the module
Changed Object.link() to allow link objects with both BPython-type meshes
Changed Object.getData() to allow retrieving both types of BPython-type meshes

Added new mesh types to Types module
2005-10-04 15:17:27 +00:00
Ton Roosendaal
772459f15c Shape Keys now can be controlled with Vertex Weight groups as well!
Just fill in the name of a Vertex group in the Shape Panel, and this
Shape will then become blended with the reference Shape.

It is useful for example for a symmetrical modeled head, make a
copy of that Shape, and use two Vertex Groups to make it asymetric.
Of course the Shapes update nicely while Weight Painting.

Also new; since the Vertex group names reside on Object level, you might
want to copy these names to the other Objects that have the same Mesh.
That's a new button "Copy to Linked" in the first Edit Panel.
2005-10-04 15:00:28 +00:00
Ton Roosendaal
e5eea31629 Thought I committed it before... this is the fix for Python API version
of "library append", which keeps the current .blend file name.
2005-10-04 14:53:55 +00:00
Matt Ebb
583ebd75be * Doubled the maximum shadow buffer size limit in the shading buttons.
Now, more than ever!
2005-10-04 14:19:29 +00:00
Ken Hughes
b777b23e07 Bugfixes for #3102, #3104
- Fix incorrect usage of PySequence_Fast_GET_ITEM()
- make EXPP_setFloatRange() convert its argument to float instead of short
2005-10-03 22:06:16 +00:00
Ton Roosendaal
b4c85d58f6 Bugfix #3137
In UV Faceselect, the button "Set vertex color" needed Mesh update flush.
2005-10-03 21:29:45 +00:00
Ton Roosendaal
e006662a5b Bugfix #3141
Ending localview didn't correctly restore selection, so oops or outline
were not updated.
2005-10-03 21:17:33 +00:00
Ken Hughes
33fcdf2ada Bugfix #2650.
Calling ipo.delCurve() with a curve that's not been displayed in the
Ipo curve editor caused a segfault.
2005-10-03 21:05:41 +00:00
Ton Roosendaal
7c199946ec Bugfix #3143
CTRL+click adding bones now respects X-axis mirror edit too.
2005-10-03 20:53:54 +00:00
Joseph Gilbert
6cb422b886 Update for thin mesh
*warnings fixes
*projectfile update
2005-10-03 20:48:43 +00:00
Kent Mein
bfea10e659 Small code cleanups by Stephane SOPPER...
remove extra ;   and move a variable declaration to top of function.

Kent
2005-10-03 20:24:10 +00:00
Ton Roosendaal
3a8d10a713 Brought back Outliner operations!
Since clicking on outliner items activates/selects, and not all outliner
elements allow selection (like scene, mesh, material, etc) there's another
selection method needed.

It works by leftclicking (click-drag works too) outside of the outliner
icons or texts. This allows rapid selecting, without any change in the
other windows.

Then press Wkey or RightMouse for an operations menu. Based on the
selection you get a menu with options. Currently available;

- Objects: Select/Deselect/Delete
- Materials: Unlink
- Textures: Unlink
- Bones: Select/Deselect/Hide/Unhide

Notes:
- mixed selections give an error.
- selection doesn't flush down into closed outliner items.
- selection state is persistant (saved in files), and unique per
  Outliner window, so can be used as sortof temporal grouping.

Hotkey SHIFT+A: select/deselect all open outliner items

The system can be easily expanded with a lot of interesting options, of
course.
2005-10-03 19:50:05 +00:00
Ton Roosendaal
eb698196d0 World AO table was freed, but a pointer not NULLed correctly, causing a
memory error on end render.
2005-10-03 19:39:34 +00:00
Ken Hughes
f2af563f92 Added new BPython thin mesh module 2005-10-03 19:36:15 +00:00
Ton Roosendaal
c7f4016349 Commit I did sept 22 gave returnvalues to buttons, but that should not be
on buttons in popup menus (like postproduction settings etc)

Error was that the menu returned immediate now.
2005-10-03 19:30:50 +00:00
Willian Padovani Germano
080b7f0902 BPython bug fixes:
- #2781, reported by Ed Blake: crash on undo when there were active space handlers. Space Handler script links belong to screen areas, which do not get saved on undo. Thanks Ton for pointing out the function that restores ui pointers gone bad.

- Applied patch #2822 by Ken Hughes for bug #2647 ("Setting a Face UV"), reported by Campbell Barton.

- #3022, reported by Timothy Wakeham: "Blender.BGL.glDrawPixels crashes when drawing more pixels then buffer size". Made glDrawPixels check buffer dimensions.

- #2882, reported by Campbell: crash in nmesh.getMaterials(arg == 0 or 1) when nmesh came from GetRawFromMesh(). Raw nmeshes are not linked to Blender meshes, so the method doesn't support these options (getting mat info from the actual mesh) for it.

- #2817, reported by Tod Koeckeritz: Dir_Depth var was not being decremented in BPY_Menus.c, causing dir depth limits to be reached prematurely.

- #2954, reported by Daniel Holtz: "Python scripts crash hard with valid windows paths". Blender.Load() was not meant for background mode, now it's been update to support it, using BKE_read_file instead of BIF_read_file in this case. Also found another issue with command line scripts using Blender.Load() that could crash Blender: trying to free the Text when it wasn't available anymore (loading a new .blend already removed it). There are still issues with one case, though, causing a crash on start or "Memoryblock winopen: double free" at end, when running a script that is already a Blender Text (only if the script calls Blender.Load, of course). Will investigate.

- #2897: reported by Timothy Wakeham: object.setMaterials was asking the length of a Python list w/o confirming first if the passed obj was really a list.

Thanks all for the help and for being patient (long delay, again).
2005-10-03 19:12:11 +00:00
Ken Hughes
fde63008a5 Documentation for new Python thinmesh module 2005-10-03 18:23:04 +00:00
Ton Roosendaal
3eb1f04509 A fix for the menu button yesterday broke something else... the menu button
should return a non existing event instead. :)
Thanks elubie for reporting!
2005-10-03 17:10:18 +00:00
Ton Roosendaal
15c5fb7e41 NLA window:
Insert a NLA strip makes it size 100 frames if the actual action is smaller
than 2 frames, otherwise you cannot even select it :)
2005-10-03 15:48:17 +00:00
Matt Ebb
2e8d8f6b8f * Added copying curve resolution settings to the copy attributes (ctrl c) menu 2005-10-03 14:44:48 +00:00
Ton Roosendaal
bec1e25720 Adding Drivers in Actions now update live as well.
The main change is that an Action now always updates Poses  on transform,
unless you are editing the Pose itself. Please test!
2005-10-03 14:40:42 +00:00
Toni Alatalo
9459f7c1be added getting names of shapes/KeyBlocks to bpy api so mikasaari can continue with his lipsync script (where names of phonemes are as names of shapes/keyblocks). 2005-10-03 14:28:08 +00:00
Ton Roosendaal
12dc565786 New! Edit mode curve now draws solid extrusions, bevelcurves and tapers.
Fix: when unlinking an Action from Armature, the ipo window still allowed
adding drivers, causing crashes.
2005-10-03 14:13:47 +00:00
Ton Roosendaal
45edb9cecb IpoWindow, Action curve update.
When no Ipo existed yet for an Action Channel (Bone), you could not add
curves with CTRL+click or Drivers. This was due to antique action code
state... it's still messy, no time for big cleanup here yet. At least
this works now. :)

(Also: removed test prints of previous commit)
2005-10-03 13:03:25 +00:00