Commit Graph

10273 Commits

Author SHA1 Message Date
Nicholas Bishop
d44d203893 == Sculpt Mode ==
* Made partial redraw mode a bit more robust, fixed a couple of potential problem spots
* Fixed display of smooth stroke with partial redraw.
2007-06-25 04:55:09 +00:00
Nicholas Bishop
b7c8eb39ed == Sculpt Mode ==
Removed the draw_flag field from SculptData, moved the two draw flags over to SculptData.flags
2007-06-24 23:02:58 +00:00
Nicholas Bishop
8cf2d5ca4a == Sculpt Mode ==
Added a new input control that smooths the brush stroke.

This option controlled by the menu item Sculpt>Input Control>Smooth Stroke. When enabled, the brush has a delayed effect on the model; a green line is drawn to indicate the smoothed path of the stroke. After ~200 pixels, the first half of the stroke will be applied to the model; the process then repeats, with a new segment of the stroke being applied to the model after every 200 pixels. On mouse up, any remaining portion of the stroke will be applied.

Other changes:
* Added a flags field to SculptData; currently only used for smooth stroke but other flags can be moved into it
* Moved the damaged_rects/verts into SculptSession
* Simplified brush application by moving init_editdata into do_symmetrical_brush_actions
* Removed Averaging from sculpt Input menu; smooth stroke should take its place

TODO:
* Fix display of the smooth line in Partial Redraw mode
* Make the smoothing and delay factors adjustable
* Optimize the stroke application (currently using the old 'dot' style of applying the brush)
2007-06-24 22:28:28 +00:00
Campbell Barton
296758ff01 PyAPI - incorrect docstrings for colorbands 2007-06-23 12:39:22 +00:00
Joshua Leung
25194b5b09 == Action Editor - Keyframe Selection ==
Recoded this again to further simplify it. This method could apply to the NLA editor if keyframes remain in there after a redesign.
2007-06-23 12:09:41 +00:00
Joshua Leung
a01616198a == Action Editor ==
Fixed a few little memory leaks introduced during my recode. They were only likely to occur in a few cases that don't happen very often.
2007-06-23 07:12:09 +00:00
Joshua Leung
1c41d19964 == Auto-Keyframing ==
I've moved the Auto-Keyframing functionality out of the special_aftertrans_update function into two separate functions, which can be called independent of the Transform system. One is for Bones, while the other is for Objects.

This now means that the Shift-S Snapping Tools will now work with auto-keyframing.
2007-06-23 06:56:16 +00:00
Erwin Coumans
ca26aeb7b2 upgrade to latest Bullet 2.53. cross the fingers it doesn't break one of the exotic or less exotic platforms 2007-06-23 05:28:07 +00:00
Erwin Coumans
14ad8c9941 preparation to upgrade to Bullet 2.53 2007-06-23 05:02:31 +00:00
Erwin Coumans
5c8d1352ea bugfix: adding static objects will 'replace' previously added static object in game engine. need to use new motion state. 2007-06-23 04:49:17 +00:00
Campbell Barton
62ac9cba9c (Python Object API)
setting object layers didnt break once the base of an object was found.
DAG update and countall ran even when the object wasnt in the scene.
2007-06-22 13:38:15 +00:00
Joshua Leung
188e3ede4f == NLA/IPO Muting ==
This commit adds a few open/closed 'eye' icons to the NLA editor to toggle IPO-block muting on Object (IPO) channels, and Action Strip muting on Action Strips, like in the Action Editor.
2007-06-22 11:55:00 +00:00
Joshua Leung
aad13c1b87 == IPO Muting ==
It is now possible to temporarily 'mute' and IPO-block or IPO-curve. This functionality has been requested by the Plumiferos team, and is based off Patch #6866 by Juho Vepsäläinen (bebraw).


Usage:
* In the IPO Editor header, there is a toggle button (open/closed eye used for Outliner Visibility restriction) beside the IPO-blocktype menu, when there is an active IPO-block in the IPO Editor.

* In the Action Editor, beside the 'lock' icon for channel protection on Action/Constraint channels, there is the open/closed 'eye' that can be toggled to set the mute status of said channel's IPO-block.

* Also in the Action Editor, you can mute individual IPO-curve channels in a similar manner.
2007-06-22 11:09:31 +00:00
Ken Hughes
133c7fd7c7 Tools
-----
Bugfix #6847: Boolean code was marking some valid faces as "PHANTOM" when the
three vertices were nearly co-linear (according to its tests).  This
introduced holes into one or both meshes which could then result in either
holes in the final results and/or spurrious faces which should have been
split.

This commit removes the code in question until either an alternative test is
coded.
2007-06-21 21:58:04 +00:00
Joshua Leung
3d4a9c1c43 Silenced a few compiler warnings 2007-06-21 11:24:42 +00:00
Joshua Leung
371e52c32f == Clamp To Constraint - Depsgraph Fix Part2 ==
Now when editing the curve that a Bone with a Clamp To Constraint uses as its target, the Bones's position will be updated in realtime to match to changes in the curve. 

This should also work for the FollowPath constraint now too.
2007-06-21 06:23:38 +00:00
Joshua Leung
ba54e09fb7 == Clamp To Constraint ==
Now when editing the curve that an Object with a Clamp To Constraint uses as its target, the Object's position will be updated in realtime to match to changes in the curve. 

I was going to have this working for bones too, but I haven't got that quite working yet.
2007-06-20 12:09:05 +00:00
Joshua Leung
8975e34439 == PyConstraints - 2 Fixes ==
* Error print for getSettings was lacking a newline
* When adding a PyConstraint using Ctrl-Alt-C, the script is now queried to find out whether it uses a target.
2007-06-20 09:58:16 +00:00
Joshua Leung
d9b94275c0 Action Editor:
Removed a little bit of old code I forgot to remove :)
2007-06-20 07:33:25 +00:00
Joshua Leung
0616766f87 == Constraints - Code Cleanup ==
Simplified the code in two functions where checking for targets/subtargets could really have been done using Constraint API methods (constraint_has_target, get_constraint_target).
2007-06-20 07:11:31 +00:00
Joshua Leung
2bc96c07a7 Bugfix #6864:
Copying Displace modifiers by themselves did not work correctly. The code was incorrectly just copying memory for source modifier to the new copy, causing problems due to the ModifierData struct at the start of the DisplaceModifierData struct (linked list pointers still referring to old stack).
2007-06-20 05:23:31 +00:00
Matt Ebb
d3c4ec9e5c When saving render result images from the image editor with
image->save as, default to the scene image type settings (just like 
with F3: save rendered image).

Multilayer is still available in the list but most of the time, 
it's not what you want by default. Too many times I've saved out a  
render and frustratingly ended up with a huge 'filename.png.exr'.
2007-06-20 00:36:53 +00:00
Diego Borghetti
b3996a53c2 Fix segfaul reported by slikdigit in irc. 2007-06-19 22:03:08 +00:00
Campbell Barton
d6330266f2 changed floating point values in python to display one more decimal place- BMAE script needed to display more (as it worked with 2.41) and it seems resionable to add. 2007-06-19 18:40:17 +00:00
Joshua Leung
396cef6062 == NLA Editor - Bugfix 6780 ==
Deleting a marker using DELKEY or XKEY requires undoing action twice. Changed order of deleting markers and deleting keys/strips to be in line with Action Editor.
2007-06-19 12:25:44 +00:00
Joshua Leung
ab8728df2a == Action Editor - Scrolling Fix ==
This fixes a problem introduced in http://lists.blender.org/pipermail/bf-blender-cvs/2007-May/010005.html

Now channels in older files will be in the view again upon loading.
2007-06-19 11:52:14 +00:00
Joshua Leung
3caf086137 == Action Editor - Long Keyframes ==
I've recoded the way long keyframes work a bit, so that more cases are handled accurately. Now, it takes into account the number of IPO-curves that have keyframes in them on the start/end frame of the long-keyframe, instead of just taking the total number of IPO-curves present for the channel being drawn.
2007-06-19 09:46:52 +00:00
Chris Want
e3ed38be6b For a texture, write out the Image.filename instead of Image.name. 2007-06-18 20:03:23 +00:00
Chris Want
0de1b7c651 Change by Martin Capitanio to find Freetype2 on gentoo 2007-06-18 20:02:18 +00:00
Joshua Leung
9a4c02c51d == PyConstraints - Script Template ==
Here is a script template for the "Script Templates" menu in the Text Editor. It provides you with the necessary functions for a PyConstraint set up, and also includes descriptions on what is required in each function.
2007-06-18 11:36:05 +00:00
Joshua Leung
25ec0533a9 == PyConstraints - BPy API Access ==
The BPy Access to PyConstraints. I have not implemented the setter for the PyC-ID-Properties access as I'm not too sure how this should be done.

Also fixed a few typos in the py-docs for the Limit Scale constraint.
2007-06-18 10:39:50 +00:00
Joshua Leung
01e8789f3f == PyConstraints ==
At last! The ability to code constraints in Python. This opens up many interesting rigging possibilities, as well as making prototyping constraints easier.

* A PyConstraint script must begin with the line 
#BPYCONSTRAINT
* It must also define a doConstraint function, which performs the core actions of the constraint.
* PyConstraints use IDProperties to store custom properties for each PyConstraint instance. The scripter can choose which of these ID-Properties to expose to a user to control the behaviour of the constraint. This must be done using the Draw.PupBlock method.

Credits to Joe Eager (joeedh) for coding the original patch on which this is based. I've made heavy revisions to large parts of the patch.

For more detailed information, and some demo scripts, see the following page:
http://aligorith.googlepages.com/pyconstraints2
2007-06-18 07:41:21 +00:00
Campbell Barton
770291b9ea missing decref.. win Window.RedrawAll() pointed out by ken 2007-06-16 13:57:39 +00:00
Campbell Barton
84749aa3ff Python API, more METH_VARARGS to METH_O 2007-06-16 13:17:41 +00:00
Ken Hughes
3e490c0203 Fix a Python memory leak with the armature weakref code. setup_armature_weakrefs() wasnt't deallocating the old list, instead just adding a new one to the dictionary. 2007-06-16 13:01:10 +00:00
Campbell Barton
39a526a963 Python PyMethodDef supports single argument methods (METH_O) but was using METH_VARARGS everywhere and getting the single args from the tuple.
Use METH_O where applicable.
2007-06-16 12:24:41 +00:00
Nathan Letwory
5135ed7b0e * .base makes scons 0.97 puke. It is not needed anyway, so removing. 2007-06-15 06:37:21 +00:00
Nathan Letwory
a41fe79f6e * make sure zlib.pyd is copied on windows 2007-06-14 15:26:40 +00:00
Ken Hughes
34341ce3f1 Fix for very old bug in Boolean code. BSP trees were calculated incorrectly,
which caused faces of convex objects to be classified wrongly.  Also removed
some dead code.  For convex objects, the BSP trees would also be literally
orders of magnitude larger than they were supposed to be (one test with a
5000 face torus reduced the BSP tree size from 5.96 million nodes to just 72.1
thousand).
2007-06-14 14:42:35 +00:00
Juho Vepsalainen
a499da7192 Curve Selection Tool Refactor:
This commit refactors curve selection system to use certain curve selections
functions that encapsulate setting of selection flags. New function to select
adjacent control points was introduced too. Refactoring made it possible to 
simplify certain existing selection functions quite a bit. 
New functionality was delivered as well. Select more/less works now with NURBS 
as expected. Also two new curve selection functions were added: Select Every Nth 
and Select Random. 

See http://wiki.blender.org/index.php/BlenderDev/Curve_Selection_Tools for 
further information.
2007-06-14 14:36:27 +00:00
Joshua Leung
0ed2e0e706 == Armature - Duplicating Bones ==
Duplicating bones now also duplicates the Transform Locks, and IK DOF settings, along with constraints. 

I have noticed a few random crashes while editing armatures recently, that seem to occur after duplicating a chain of bones. I've yet to find the cause though.
2007-06-14 12:29:56 +00:00
Andrea Weikert
5c941fb42e ==== MSVC 7.1 projectfiles ====
- adding verse_method.c to blenkernel.vcproj
2007-06-13 19:25:15 +00:00
Campbell Barton
88cca5dc1a draw_mesh_fancy was using the original meshes stats rather then the derived mesh (that is being drawn)
This should not change teh way it works currently, however modifiers that add faces or edges need this so they render properly.
2007-06-12 05:59:37 +00:00
Campbell Barton
82eab51a29 fix own error - EXPP_getScriptLinks, was returning an unset list. 2007-06-12 05:17:35 +00:00
Nathan Letwory
12d32f5cf9 === Verse ===
* add preliminary verse method support to Blender. This gets really interesting whenever I get Verse Chat completed.
2007-06-11 10:42:38 +00:00
Nathan Letwory
4b05da5612 * update version numbers for scons official stable. 2007-06-11 08:42:54 +00:00
Nicholas Bishop
3026e853b3 == Multires ==
* When loading multires files, clear the temporary connectivity data
2007-06-11 01:30:00 +00:00
Nicholas Bishop
065c39389c == Multires ==
* In add_levels, moved the call to update_levels to the beginning rather than the end. This is slightly faster, as there's one less level to update. Also fixes a bug (introduced in rev. 10836?) that made multires's add_level differ slightly from the subdivide modifier.
2007-06-10 23:31:38 +00:00
Nicholas Bishop
52d6635528 == Multires ==
* Removed two unused structs from multires

* Replaced one-line get_float function with a macro

* During add_level, move the freeing of temp data to after the update_level, so that this data isn't calculated twice
2007-06-10 23:01:23 +00:00
Nicholas Bishop
2494a5ed0d == Multires ==
* Small optimization to multires based on profiling data; calculation of edge boudndaries is now cached along with multires mapping data to improve the performance of the catmull-clark code.

* Removed an unneeded call to create the temporary data when loading files.
2007-06-10 21:51:11 +00:00