Commit Graph

47594 Commits

Author SHA1 Message Date
Ken Hughes
0ea46ec202 - Bugfix #3194: calling curve.appendNurb() with any number of float param
other than 4 or 5 caused segfault (thanks for catching, Cam)
2005-10-16 16:39:11 +00:00
Ken Hughes
6418c07905 - Bugfix #3127: gives Python ability to do "reload()" on Blender Text scripts
(not really a bug, just adding a missing capability)
2005-10-14 17:26:57 +00:00
Ken Hughes
0bafc02ecc - perform typechecking before calling EXPP_check_sequence_consistency
- change experimental methods for Mesh Tools "Subdivide" and "Smooth" to
  object methods.  if compiled, you can use mesh.subdivide() and mesh.smooth()
2005-10-13 20:47:15 +00:00
Ton Roosendaal
88f6295dc6 Two very easy crash fixes, one more proper pointer check, and a check
for a division by zero. Sorry... but i can't stand such known issues to be
in an official build. :)
2005-10-12 20:36:11 +00:00
Ken Hughes
3c568fd3bb - swapped MFace.flag and MFace.mode code; they were reversed (thanks, Cam)
- fixed bug in MFace_getFlags(): was accessing wrong field
2005-10-11 23:18:53 +00:00
Ton Roosendaal
d85bbbdf20 Whoa! I get what the derivedmesh is about! :P
Fixed bugreport on crashing vertex duplicators in editmode. Apparently it
was not coded with new mesh/modifier support. And now it does, quite fun!

One day picture for quick people:
http://www.blender.org/bf/rt.jpg

Daniel; could you check the commit diff below?
2005-10-11 22:10:17 +00:00
Ton Roosendaal
7e09c71c8b Orange bugreport; Only Shadow lamp crashed on rendering preview.
Bug caused due to fix a couple of weeks ago for this kind of lamp type...
2005-10-11 21:10:49 +00:00
Ton Roosendaal
4bb748d972 Bugfix #3163
Materials; using "Stencil" option, didn't work properly for multiply, and
other related filters. This is a very old issue, but now I found the good
way to fix it! :)
2005-10-11 20:47:45 +00:00
Ton Roosendaal
7a45609dc2 Almost-sure-fix for crashes after joining meshes or curves. Was caused by
not updating depsgraph, and still evaluating it.
2005-10-11 19:54:15 +00:00
Ton Roosendaal
63e02e0436 Found a crasher in editing text; load file with text, enter editmode for
it and reload. I could fix the crash quickly, but it still gives not freed
memory errors.

More important; this code is VERY BAD! Not sure who added all this *goto*
stuff, but it's not acceptable code that way... (kernel, font.c)

The hacks in editfont.c are very bad too. I really hope Alexander and/or
Mika will clean up before we officially release!
2005-10-11 19:09:27 +00:00
Willian Padovani Germano
5c31e9f2b5 Scripts updated:
- Discombobulator by Evan R and DirectX8 Exporter by Ben Omari.

BPython:
- Crashed Blender while testing discombobulator: obj.setMaterials() was not checking if the passed obj had valid obj->data. If the object had been created and not linked yet to a mesh, a crash would happen when trying to sync ob and me material lists. Now an error is returned. Also made obj.setMaterials accept an empty list, since obj.getMaterials can return that.

Thanks to the script authors for the updated versions and special thanks to Tom (LetterRip) for collecting info about updated and new scripts, sending me updates I had missed, etc.
2005-10-11 19:05:56 +00:00
Ton Roosendaal
1f0b9b3167 Bugfix #3170
Drawing axes in Armature editmode, draw type 'envelope' didnt work.
2005-10-11 16:57:55 +00:00
Ton Roosendaal
68924061ce Another fix for the heuristic code to prevent adding overlapping faces...
(report #3167). Now hope I covered all! :)
2005-10-11 16:49:57 +00:00
Ken Hughes
3035625992 - force setResolu() to update all NURBS belonging to a curve 2005-10-11 15:51:27 +00:00
Ton Roosendaal
432f51647d Bugfix #3164
Very rare; a bugreport with a fix patch! Coolness, thanks Bill Currie!
(Segfault due to using un-initialized displaylist in Boolean code)
2005-10-11 15:27:28 +00:00
Stephen Swaney
cf620b95d5 Updates and corrections to the BPy doc. Patch #2975
A large chunk of documentation goodness from Campbell Barton (ideasman).
Thanks!

Note that any mispellings, errors, or inconsistencies are due to
my ham-fisted editing.
2005-10-11 15:11:39 +00:00
Ken Hughes
a84a75cfc3 -Bugfix #3174: incorrectly counting number of face vertices 2005-10-11 14:35:43 +00:00
Ton Roosendaal
bcbaffc8c2 Look, in one commit!
- test build alpha splash
- version update to 239 in code
- release names are 2.40-alpha1

Note about release names; this is really an alpha still, not a release
candidate, so cannot call it 2.40-pre either.
Naming conventions is a discussion still... hope this works as a compromise
for now.
2005-10-11 14:04:57 +00:00
Ken Hughes
0ff2691c5d - Fix compiler errors under MSVC free toolkit (thanks lguillaume) 2005-10-11 13:36:07 +00:00
Ken Hughes
5380db502e - added Mesh.MVert(); can now create 'thick' vertices which don't wrap mesh
- implemented slice operations (get/set) for vertex list; allows script
  writers to manipulate lists of vertices (using 'thick' vertices)
- fixed problem in mesh.faces.extend() which allowed the creation of
  "Eeekadoodle" faces
- added mesh.update() method; (possibly) temporary fix to allow updating DAG
2005-10-11 04:09:08 +00:00
Willian Padovani Germano
b970eadedf Scripts:
- updating some bundled scripts, thanks to authors Jean-Michel Soler, Campbell Barton and Anthony D'Agostino.

BPython:
- removing wrong fix from BGL.c's glDrawPixels.

note: applied guitargeek's setName patch to Blender.Key, but saw that he updated it with more functionality and assigned to stivs, so I won't commit this old version.
2005-10-11 02:32:58 +00:00
Ton Roosendaal
93a4f6a876 Depsgraph now adds all NLA strip driver relations. This makes the demo file
on the orange.blender.org blog (controller2.blend) work with the jaw driver
2005-10-10 21:36:37 +00:00
Ton Roosendaal
22653580ea Fix request from Orange;
When using vertex weight groups to control Shapes, the vertexgroup also
worked when no IpoCurve was assigned to channel (channel defaulting to 1).

This now only works with a Pinned Shape. For relative key situations it was
not useful. :)
2005-10-10 20:14:12 +00:00
Joseph Gilbert
28e585b058 -Another fix for mathutils.anglebetweenvecs()
* test dot before clamping
2005-10-10 19:50:53 +00:00
Ton Roosendaal
48f69653c8 Added stub, so game engine player compiles again 2005-10-10 19:34:35 +00:00
Ton Roosendaal
28f0eeaf61 Ack! Recently the get_ipocurve was added in the game engine, for baking
physics. This creates very bad dependencies... tsk!

comments indicate it though;

//quick hack
//todo, before 2.38/2.40 release, Erwin

Hrms... :)
2005-10-10 18:57:55 +00:00
Ton Roosendaal
4bd9775936 Stupid me! Committed in wrong console with wrong dir... here's the rest of
all files for the Ipo/Action/NLA makeover...
2005-10-10 18:05:30 +00:00
Joseph Gilbert
9b8868532a -mathutils fix
* cos takes -1 to +1
2005-10-10 17:57:53 +00:00
Ton Roosendaal
7f62678571 Missing include file made file not compilable...
ALso fixed midsing bracket.
2005-10-10 17:55:56 +00:00
Ton Roosendaal
87365d8d40 Stage two of the giant animation recode project; Ipo/Action/NLA cleanup
-> Note; added 2 new c files (split editipo.c). MSVC needs upgrade.

Impatient people can check the goodies in CMS:
http://www.blender3d.org/cms/Action_and_NLA_editor.706.0.html

Most work was on trying to unwind the spaghetti for editing ipos. Too much
history and bad design got added here. Most evident changes:
- made generic 'context' for detecting which Ipo is being edited, or to
  assign ipos or to retrieve ipo curves.
- made generic insertkey() for all ipo types, including actions
- shuffled a lot of code around to make things more logical. Also made
  sure local functions are not exported

It is far from ready... when action/nla was added in Blender, a lot of
duplicate code was generated. That's for another time.

Now the goodies;
- made Actions to allow any Ipo type
- made NLA to define active actions, for Action window too
- corrected timing for active action, so it shows the 'real time', as
  defined in NLA editor.

I did update python code, but that would require testing. Testing is
needed for this commit in general, too many changes happened on all
levels of the animation system. :)
Will keep track of all reports this evening, hopefully it doesnt break
the pre-release schedule!
2005-10-10 17:42:48 +00:00
Joseph Gilbert
ef06c33dd5 Patch for mathutils
* fixed another issue with anglebetweenvecs
2005-10-10 15:28:59 +00:00
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
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
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
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