Commit Graph

7340 Commits

Author SHA1 Message Date
Campbell Barton
c5de881413 added CustomData_add_layer_named, same as CustomData_add_layer but accepts a name. saves Mesh.c having to look up the data after adding (just to rename it) 2006-12-24 11:15:54 +00:00
Campbell Barton
1be58e7a8d initial python support for dealing with multires meshes.
Can only change levels and values at the moment. adding and removing is still needed.

multires: bool
multiresLevelCount: int
multiresDrawLevel: int
multiresEdgeLevel: int
multiresPinLevel: int
multiresRenderLevel: int
2006-12-24 10:51:31 +00:00
Alexander Ewering
edf18ca767 Uncommitted the stub again.
Can anyone who knows more than me add a correct stub for this?
Blenderplayer doesn't link for me because it can't find that
symbol...
2006-12-24 10:29:05 +00:00
Nicholas Bishop
acd521d0f8 Fixed bug #5506 retopo - ctrl-click extrude doesn't work for the first vertice. 2006-12-24 09:45:49 +00:00
Campbell Barton
b72bfbd923 replaced id->us++ with id_us_plus(id); so any indirect libdata isnt lost on reload.
added camera.dofDist to the python camera module
2006-12-24 03:25:53 +00:00
Campbell Barton
1c6f41a27a Added CustomData_get_named_layer_index to customdata to get a layer index by name, only used in Mesh.c at the moment.
cleanup Mesh.c, updated the epydocs
2006-12-23 23:33:03 +00:00
Ken Hughes
a4a031e434 Python API
----------
Bugfix submitted through bf-committers: Ipo.getNBezPoints() could cause
segfault due to incorrect check for end-of-list.
2006-12-23 18:16:20 +00:00
Campbell Barton
bef18061ec Select Grouped editdata- minor fix in the menu.
Updated Python Mesh API to support UV and Color layers with names.
Similar to vertex group's

renamed a function in customdata.c CustomData_free_layers -> CustomData_free_layers_active and made CustomData_free_layers accept an index, this is needed so python could free layers that arnt active.
2006-12-23 17:07:02 +00:00
Ken Hughes
d66f828c9b Python API
----------
Bugfix #5492: correctly distinguish curves and surfaces in Curve iterator.
2006-12-23 15:30:50 +00:00
Brecht Van Lommel
6d4aadaa5f Addition to last imagepaint fix. Not only can image be NULL, but also
it cannot be assumed that an image window exists, when doing 3d texture
painting.
2006-12-23 14:26:08 +00:00
Ton Roosendaal
2933f6b9e6 Bugfix #5444
Additions in passrendering broke Baking a bit; what did not work was having
a full render + AO. Was missing a new flag initialize...
2006-12-23 12:58:25 +00:00
Ton Roosendaal
79ed63acbc Bugfix, irc collection:
ImagePaint crashed with using the new Brushes, NULL pointer check needed
2006-12-23 12:40:20 +00:00
Alexander Ewering
1ba244605f Add a stub for IMB_exr_close() so blenderplayer compiles again
(I hope I did this right - works for me at least)
2006-12-23 12:19:18 +00:00
Ton Roosendaal
397b09e477 Bugfix #5476
Lattice deforming a Particle system only supported regular parent relation-
ship, not modifiers.
2006-12-23 11:56:22 +00:00
Ton Roosendaal
8eb1d00e0d Bugfix #5497
Imagewindow: new Jkey (swap render rects) feature didn't correctly support
the Curves panel.
2006-12-23 11:22:20 +00:00
Brecht Van Lommel
67630324d3 Preserve multiple UV and vertex color layers in NMesh. 2006-12-23 10:37:50 +00:00
Ton Roosendaal
e2ab16fae7 Bugfix #5481
After an ESC or render error, the render buffers in compositor were not
tagged to be released. Causing crashers.
2006-12-23 09:50:07 +00:00
Nicholas Bishop
7f6e10ff54 Added two menu items to sculpt mode for controlling how much tablet pressure affects brush strength and brush size. 2006-12-23 05:40:58 +00:00
Martin Poirier
8dcf6c2602 === Transform Snap ===
==== Rotation Snap ====

Bug fixes. "Should learn to test properly" * 100

It works ok now, not just when rotating around the Y axis...
2006-12-23 01:55:13 +00:00
Campbell Barton
ea837b25e3 Added Draw.BeginAlign(), Draw.EndAlign()
added align to a few scripts where it looks nice.
2006-12-23 00:56:40 +00:00
Martin Poirier
1ad1522d10 === Transform Snap ===
==== Rotation Snap ====

Snap is no longer limited to Translation, it works in Rotation too.

There's some bugs left with rotation snap when using constraints, I'll be ironing that next.

==== Bug Fixes ====

* Fix manipulators to always use Grid.
* Fix initialization bug (took two transform call to do a correct snap init when changing between Grid and Snap)
2006-12-23 00:52:34 +00:00
Nicholas Bishop
48b62511bf Fix for bug #5372, multires - adding new multires level in Edit Mode causes odd behaviour
Also fixed a memory leak with multires+deformverts in editmode.
2006-12-22 23:02:10 +00:00
Campbell Barton
30cc7499c3 setting/getting mcol by index was flipping red/blue. works now. 2006-12-22 22:57:05 +00:00
Ken Hughes
e56f2b4b9d Python API
----------
Obligatory Englishization of BPy API documents. :-)
2006-12-22 22:05:06 +00:00
Campbell Barton
ed47053fa6 Arnaure.Get() now raises an error when the name dosnt exist. added warning in docs.
Image - added img.fields, img.fields_odd, img.antialias, also updated the docs. replaced Py_BuildValue with faster list creation for getPixel functions.
2006-12-22 21:23:27 +00:00
Ton Roosendaal
080ecf33c1 Bugfix #5491
Ztransp Mask issue: now I did all this work to solve the exceptions, but
forgot the most simple case: regular alpha-over :)

This solves for example AA issues in ztransp-hair over solid faces.
2006-12-22 12:43:40 +00:00
Joshua Leung
fcd3ea7875 == Snap Bones To Location in PoseMode ==
Now the Snap To Location (Shift S) tools for bones in pose-mode
work correctly. Previously, only one of these tools was implemented,
but it only worked in some cases.


This fixes item #4874 in Todo Tracker. Was patch #5012.
2006-12-22 09:05:37 +00:00
Ton Roosendaal
e7d916b6e6 Bugfix #5489
Variable "osatex" was hanging in cases, giving weird noisy results
in cases (like when you use extreme high frequency image texture).
2006-12-22 08:30:19 +00:00
Brecht Van Lommel
18e81ecafa Bugfix: UV texture layer without vertex color layer did not display correct
in the game engine.
2006-12-22 08:23:25 +00:00
Brecht Van Lommel
058ceb0b94 Added Vertex Color material node, making render engine support for multiple
vertex color layers actually useful.
2006-12-22 08:10:29 +00:00
Brecht Van Lommel
d892aac06b Fix: active face was lost switching between faceselect mode and editmode. 2006-12-22 07:45:01 +00:00
Nicholas Bishop
73382364a3 Disallow applying modifiers that change mesh topology while multires is active 2006-12-22 07:42:30 +00:00
Brecht Van Lommel
d11b6949d8 Made multiple UV layers work with fastshade. 2006-12-22 07:41:29 +00:00
Campbell Barton
9197b25490 removed typo from Render
added extFromFormat to BPyRender to get the extension for a format
2006-12-22 07:07:20 +00:00
Campbell Barton
1849da92bc document render constants,
these should NOT be set in the Module, very messy!
35 constants are stored in Blender.Scene.Render.* rather then there own dicts arranged by usage.
2006-12-22 05:27:06 +00:00
Campbell Barton
60a2977dcf adding ob.activeMaterial - allows you to get/set the active material for an object. 2006-12-22 04:46:37 +00:00
Campbell Barton
79fd2a2ae4 filename was being copied into a string only the length of the max file. 2006-12-21 22:30:30 +00:00
Campbell Barton
0325ee8f22 boxpack2d - python 2.3 compat fix, thanks brecht
gen_utils - needed to include BKE_library.h
off_import - use ed.key
2006-12-21 21:56:11 +00:00
Martin Poirier
39c0f6dd83 === Transform Snap ===
The circle drawn around the snap point is now truely constant regardless of zoom and size of the window. That size if linearly proportional to the vertex size (bigger vertex -> bigger circle).
2006-12-21 20:45:57 +00:00
Ton Roosendaal
120ac48728 Another Image recode fix: the Composite backdrop option didn't work when
no viewer images was generated before.
2006-12-21 20:03:25 +00:00
Ton Roosendaal
ac37a15675 "Save Buffers" fix: when you ESC from rendering, it now saves empty
tiles in the file, that read back fast as black. This also solves
crashes on partial written files, when trying to read them.
2006-12-21 19:37:53 +00:00
Ton Roosendaal
67769dc080 Made new Defocus node compile happily in MSVC 2006-12-21 18:23:30 +00:00
Ton Roosendaal
e61dec0767 Defocus Composite Node, by Alfredo de Greef
Log:
http://www.blender3d.org/cms/Composite__Defocus.836.0.html

An incredible quality composite effect, might be slow but worth waiting
for!
2006-12-21 18:11:07 +00:00
Ken Hughes
5329e0d035 Python API
----------
Silence gcc warnings in Mesh API code.
2006-12-21 16:05:43 +00:00
Ken Hughes
7679634ff8 Python API
----------
Bugfix: Scene.objects.new() didn't check string inputs correctly.
2006-12-21 16:05:01 +00:00
Ton Roosendaal
af60771eca Fix for threads usage. This solves the hanging 'render baking', cauused
by yesterdays commit.

Now a designater LOCK_IMAGE is used for all image write/read.
2006-12-21 15:44:46 +00:00
Ton Roosendaal
bb6dc38f89 Picker buttons: the 'sample' option crashed. Caused by yesterdays commit.
Reason: I had to make the "BUT" type in Blender to use callbacks *after* the
uiBlock was freed, because in Blender several of these callbacks invoke
drawing, which isn't possible while a block is being evaluated.
2006-12-21 15:30:43 +00:00
Brecht Van Lommel
72d484a872 Fix compile error for last commit. 2006-12-21 14:25:52 +00:00
Ton Roosendaal
e4663acd76 UnPack data fix:
Now uses original filename for unpacking, instead of the Blender ID name.
That latter was a nice idea, but because of its 20 char maxname limit
not working well.
2006-12-21 14:00:18 +00:00
Brecht Van Lommel
47bc3d1208 Added names to UV and vertex color layers, and display them as a list.
Added support for multiple UVs in the render engine. This also involved
changing the way faces are stored, to allow data to be added optionally
per 256 faces, same as the existing system for vertices.

A UV layer can be specified in the Map Input panel and the Geometry node
by name. Leaving this field blank will default to the active UV layer.

Also added sharing of face selection and hiding between UV layers, and at
the same time improved syncing with editmode selection and hiding.

Still to do:
- Multi UV support for fastshade.
- Multires and NMesh preservation of multiple UV sets.
2006-12-21 13:47:27 +00:00