Commit Graph

7776 Commits

Author SHA1 Message Date
26eef30c1e updated epy doc reference to 2.43, fix broken link. 2007-01-31 21:30:27 +00:00
c82574e04a Bugfix
Environment map type "load" which was not used for material, but on sky,
crashed when the envmap file could not be found.
2007-01-31 11:49:30 +00:00
1e8e779e6a Bugfix for #5603 - event que 'stuck' when holding down shift modifier
when sculpting

This bug was caused by the main event queue overflowing. This commit fixes the
bug by increasing the size of the main event queue from 256 events to 4096
events.
2007-01-31 11:24:13 +00:00
9eb240282b Bugfix, report from studio Manos;
This tweaks the dependency rules for Scenes/Objects a bit. Here is the
rule:

- Each Scene has own dependency graph, and only solves dependencies for
  objects in the scene

- However, when using multiple linked Scene-sets, the *current* scene is
  allowed to have dependencies to objects in a 'set'.
  This works by first calculating the sets, then the current scene.

Example: the current scene can have lights with a track/location
constraint to a character in a set.
2007-01-31 10:59:39 +00:00
Stephen Swaney
f5a48dfd31 Bugfix for #5000
Setup for Armature weak ref list was missing from some places where
we execute py code.  This confused the interpreter and gave random
attribute/tuple parse errors.
Changed name of weak ref list to "__arm_weakrefs" to avoid name
collision with user variables.
2007-01-31 03:12:26 +00:00
9cf602b949 3ds_export - enabled textures as an option since it works with some appliactions (only way to get textured models from blender to google sketchup)
3ds_import - added option to disable recursive image searching (could be slow somtimes)
export_obj - when making group/object names only use both object and mesh name when they differ.
weightpaint_clean, weightpaint_grow_shrink - minor updates.
Render.py - own error in epydocs.
2007-01-31 01:18:51 +00:00
9ce5dd4cc4 == Multires ==
Fixed bug #5815, Multires mesh UVs get lost (or crashes!) when adding additional UV layers

* Switching to Face Select mode adds a UV layer automatically, was missing code there to add the layer to multires as well
* Adding/Deleting a customdata layer on a multires mesh should update the multires data first
2007-01-30 23:07:57 +00:00
3ab085a5b6 =Python bugfix=
Armature code had missing NULL pointer check that crashed when used in pydrivers.
2007-01-30 22:38:43 +00:00
3be758d1db == Armature Path-Drawing ==
This adds a little paranoia check for some values used by path drawing
which may be uninitialised in older-files causing an infinite loop.
2007-01-30 21:43:01 +00:00
65f00ae3e0 == Retopo ==
Removed a retopo line that could cause a crash on freeing editmesh.
2007-01-30 21:22:46 +00:00
Ken Hughes
f0e18a8b94 Python API
----------
Fix typo in Constraint API examples
2007-01-30 17:55:39 +00:00
531dc2d2b6 === Transform Snap ===
Missing distance calculation in Snap Closest when only one element was selected made it not work correctly for rotations.
2007-01-30 16:07:54 +00:00
ff75e7d302 === UV Transform ===
[ #5880 ] Crash on editing UVs

Caused by late check for 3d view in transform snap.
2007-01-30 15:48:09 +00:00
a42c8533aa Bugfix for #5843 - Wave modifier wont run with negative speed
This is mainly a problem with the interface - it's not clear what effect the
"Time sta:" (more correctly, the time offset) value will have when the speed
is negative. I have updated the UI to change the "Time sta:" button to "Time
end:" when the speed is negative.
2007-01-30 11:11:20 +00:00
d5e69a8349 Bugfix #5875
The global "total object" counter in Blender kernel was still using short!
Crash can happen when using this counter for allocating selection data.
2007-01-30 10:49:56 +00:00
dcc834f3fa updated render settings to support recent changes.
options like saveBuffers are available from Python and threads can be set from 1 to 8
usefull for python based renderfarms.
2007-01-30 03:02:58 +00:00
9c1ae55017 Bugfix:
Calculate Paths for Armatures didn't work if called from the WKEY menu
before doing so from the Armature Visualisations panel. Was caused by
the absence of version-patches for older-files where the settings used for
path calculation were uninitialised.
2007-01-30 01:04:39 +00:00
478f229541 Patch / Bugfix #5876
Composite: Defocus node crashed when scene has no camera.
2007-01-29 20:43:42 +00:00
ca2bb396a3 Should have read it closer when I made the inital change.
was doing if PLUGIN_VERSION ==2 || PLUGIN_VERSION == 5
when what we want is in the range of 2 - 5

Kent
2007-01-29 20:43:27 +00:00
25d017b338 bugfix #5872
Crash when in sculptmode, add armature, switch to object mode.
2007-01-29 19:26:11 +00:00
1f35fd7929 = Addendum to UVProject's multiple UV handling - "Override Image" button =
* Added an "Override Image" button to the UVProject modifier; this overrides
  faces' currently assigned image with the one given in the modifier panel.
  This provides some of the functionality previously provided by the "Add UVs"
  button - you still need to add a UV layer manually, but you only need to
  change the image in one place.
* Note that the "Override Image" option uses the bit position previously used
  by the "Add UVs" option, so old files which had "Add UVs" enabled will now
  have "Override Image" enabled.
2007-01-29 16:28:11 +00:00
2a47217cba = Updating the UVProject modifier to handle multiple UV layers =
* Removed the "Add UVs" option from the UVProject modifier
* Added a UV layer menu to the UVProject modifier
* Refactored the Displace modifier UV layer menu code to allow the UVProject
  modifier to share it
* Added two CustomData functions to facilitate getting layers by name
2007-01-29 15:10:55 +00:00
2d361fca0d Bugfix #5873
3D texture paint crashed when no Image window was opened... the damn global
variables!
2007-01-29 14:49:15 +00:00
73a0e8c75e == IPO Transform Bugfix ==
When scaling in the IPO-editor, axis-clamping was not respected still
(in order to preserve the old behaviour of flipping over the x/y axis).
However, now there is a mirroring tool for IPO curves, so the old
behaviour is no longer needed.This makes things more consistent.
2007-01-29 05:09:14 +00:00
cdefd31397 The channel keyer was not scaling the YCC color space properly for the exec function to make an impact on it. 2007-01-29 04:08:40 +00:00
Stephen Swaney
d89a7388ea Bugfix for #5846 erratic error with in "ob.getData(mesh=1)"
It looks like the changes for bug
  #5000 Changin EditMode in Script wrecks memory
break the python interpreter.

Since this is critical, I have #ifdef'ed those out of
BPY_interface.c and Window.c.  Did not touch Armature.c.
The ifdefs are tagged with /* bug 5000 */

This means bug #5000 is back in play.  Interesting to note
that according to #5846, only scripts run from the script menu
and not via Alt-P were broken.
2007-01-29 01:27:07 +00:00
aa8b917587 == Retopo ==
Added a missing undo push for CKEY in retopo paint.
2007-01-28 21:26:39 +00:00
f354b9c697 == Sequencer ==
Fixes bug #5858 (Render to dv skips frames. OSX and Linux PPC).
Caused by stupid ffmpeg dv multiplexer. PAL-fix is easy, NTSC needs varying
buffer sizes...
2007-01-28 18:45:53 +00:00
47d3624439 Fix for bug #5861:
Minimize stretch incorrectly stitched together UVs.
2007-01-28 18:37:12 +00:00
c92fae004a === Transform Snap ===
Replace references to "Gears" in the header by "Grid". This is more consistant with the rest of the UI and even if I like gears better, grid, I think, is what people expect.
2007-01-28 15:41:11 +00:00
d34cd388b8 Changed Displace modifier UV layer selection UI code to use a temporary
variable in the DisplaceModifierData structure, rather than a global variable.
This fixes a bug in layer selection when more than one Displace modifier is
applied to an object.
2007-01-28 14:48:38 +00:00
378a28fee4 == Sequencer ==
Bugfix: when ipo-frame-locking is turned off, make the ipo cursor show up
 at the correct position and set CFRA correctly, if changed within IPO.
 (avoids very annoying snapping...)
2007-01-28 13:43:46 +00:00
d5da8ea1c7 bugfix #5865
IpoWindow: panel properties didn't show the "Visible curves" box values
unless you clicked curve once.
2007-01-28 13:43:22 +00:00
5943ad8f65 update to the md2 importer.
* moved from NMesh to Mesh
* made newstyle classes (use less memory)
* optimized mesh creation
* Animation now imports and plays (Bugfix for 5834)
+ other small tweaks

Added mesh.key - was missing from docs
2007-01-28 12:33:04 +00:00
c7718d2bcd - bugfix in Sculpt (irc reported): using a Texture Brush, and then unlink
the texture (in texture buttons) crashed painting. Reason was reading
  a NULL pointer.

- fix for bufix: commit by Ken Hughes accidentally deleted a bugfix
  (yafray render doesn't support bake, and should return)

- tooltip fix
2007-01-28 12:20:07 +00:00
c45e057062 Plumiferos reported bug:
When weights in Meshes are extremely small (< 0.01) normalizing them
can give overflows, thanks to float precision limit.
This is still unsolved, but for now the limit had to be set smaller...
(reason is that Plumiferos uses mixed lattice and vertex-group deform)

Also: running Blender in debug (-d) will print subversion now.
2007-01-28 11:44:32 +00:00
1aa0077ae0 reverting creator.c to previous version since my earlier commit updated it unintentially 2007-01-28 05:45:58 +00:00
f306efab08 Added type checking to color space splitting nodes and hsv node. Will uncommit pipeline.c and creator.c since committed in error. 2007-01-28 05:34:17 +00:00
907d19b93d made Mesh.Get('foo') raise an error when foo dosnt exist rather then returning None (to work like other modules)
also update Metaball.Get() to be less messy - still functions the same.
2007-01-28 04:58:22 +00:00
8b157988a0 ==Tooltip Adjustment==
Minor tweaks to a few of the material buttons tooltips.
2007-01-27 18:47:46 +00:00
5d4b81b688 == Retopo ==
Fixed bug #5829, Exiting editmode with TAB key toggles RETOPO

* Moved the retopo_mode setting to ToolSettings.
* Renamed the other retopo_mode to the (more accurate) retopo_paint_tool
2007-01-27 18:11:07 +00:00
901313be99 Removed an unneeded struct declaration committed by mistake in joeedh's
Displace modifier fix.
2007-01-27 17:58:21 +00:00
3a60699429 == Multires ==
Fixed bug #5820, changing multires in edit mode turns the mesh black

* Added a call to recalc_editnormals when building an editmesh from a multires mesh.
2007-01-27 17:45:23 +00:00
893e93bb5f Fix for a segfault in the new Displace modifier UV layer selection code:
If the "UV" texture coordinate option is selected while no UV layers exist,
the UV layer name in the modifier is blank. This is not a problem while no UV
layers exist, but if a UV layer is added the modifier code attempts to use
UV coordinates without handling the missing layer name correctly, leading to a
segfault. This only occurs when the modifier stack is recalculated before a
modifier UI redraw, as the UI redraw updates the layer name.

This fix handles a missing UV layer name by setting it to the active UV layer.
2007-01-27 13:33:56 +00:00
735b426344 Two fixes:
- when rendering a scene, all composite trees of other trees should get
  signalled the render output changed. This only happened with a composite
  active in render.

- the Mix node "A" option only works in Composite, as accidentally visible
  for shader trees.
2007-01-27 10:08:16 +00:00
8f075f9518 minor tweaks from testing scripts. correction in my last commit. 2007-01-27 04:58:09 +00:00
853785782e Updated docs not to use Object.New() in examples, use scn.objects.*
Bugfix from ZanQdo, MOT files wouldent load in lightwave. also made some minor improvements.
2007-01-27 02:15:14 +00:00
c7b50435da == Multires ==
* Switching levels in editmode should flush selection changes so that face selection is drawn correctly.
2007-01-26 23:35:37 +00:00
4494b829b0 =Displace modifier fix=
This commit fixes displace modifier to propery support arbitrary uv
layers.  This seemed like a fairly big usability bug,
as displace modifiers would use the active UV layer (and thus could change when
you changed the active layer).  The modifier UI code now uses a menu for browsing
the uv layers, however only the uv layer name is actually stored, so that 
adding/deleting layers won't mess up displace modifiers.  

Whenever a displace modifier has an invalid UV name (for whatever reason) the 
UV name is set to the active layer.  This is checked both in the UI code and 
in the modifier exec code, so all bases are covered. For deleting a layer, this 
required upgrading the layer delete code in the UI to properly preserve the 
active layer, to prevent unwanted behaviour. I hope this is an ok solution.

Brecht, Ben you might want to look over and make sure I didn't break anything.  I don't
think I did, I tested as thouroughly as I could.
2007-01-26 21:06:49 +00:00
Ken Hughes
40d49dec02 Bugfix for render baking: preserve AO and Ray trace settings when doing
Ambient Occlusion, and check that world is enabled.
2007-01-26 20:35:57 +00:00