Commit Graph

8574 Commits

Author SHA1 Message Date
Joshua Leung
b34f1eeff6 == TrackTo Constraint ==
Now this constraint has the space-conversion buttons too (by special request of joeedh).
2007-07-15 04:31:47 +00:00
Joshua Leung
af55d208f4 == Constraints System ==
After just over a week of coding, I've finished doing a major refactor/cleanup of the constraints code. In the process, quite a few old kludges and ugly hacks have been removed. Also, some new features which will greatly benefit riggers have been implemented.

=== What's New ===
* The long-awaited ``ChildOf Constraint'':
This allows you to animate parent influences, and choose which transformation channels the parent affects the child on (i.e. no translation/rotation/scaling). It should be noted that disabling some combinations may not totally work as expected. Also, the 'Set Inverse' and 'Clear Inverse' buttons at the bottom of this constraint's panel set/clear the inverse correction for the parent's effects. Use these to make the owner not stick/be glued to the parent.
* Constraint/Target Evaluation Spaces:
In some constraints, there are now 1-2 combo boxes at the bottom of their panel, which allows you to pick which `co-ordinate space' they are evaluated in. This is much more flexible than the old 'local' options for bones only were.
* Action Constraint - Loc/Rot/Size Inputs
The Action Constraint can finally use the target's location/rotation/scaling transforms as input, to control the owner of the constraint. This should work much more reliably than it used to. The target evaluation should now also be more accurate due to the new space conversion stuff.
* Transform - No longer in Crazy Space (TM)
Transforming objects/bones with constraints applied should no longer occur in Crazy Space. They are now correctly inverse-corrected. This also applies to old-style object tracking.

=== General Code Changes ===
* solve_constraints is now in constraints.c. I've removed the old `blend consecutive constraints of same type' junk, which made the code more complex than it needed to be.
* evaluate_constraint is now only passed the constraint, and two matrices. A few unused variables have been removed from here.
* A tempolary struct, bConstraintOb, is now passed to solve_constraints instead of relying on an ugly, static workobject in some cases. This works much better.
* Made the formatting of constraint code consistent
* There's a version patch for older files so that constraint settings are correctly converted to the new system. This is currently done for MajorVersion <= 244, and SubVersion < 3. I've bumped up the subversion to 3 for this purpose. However, with the imminent 2.45 release, this may need to be adjusted accordingly.
* LocEulSizeToMat4 and LocQuatSizeToMat4 now work in the order Size, Rot, Location. I've also added a few other math functions.
* Mat4BlendMat4 is now in arithb. I've modified it's method slightly, to use other arithb functions, instead of its crazy blending scheme. 
* Moved some of the RigidBodyJoint constraint's code out of blenkernel, and into src. It shouldn't be setting its target in its data initialisation function based + accessing scene stuff where it was doing so.

=== Future Work ===
* Geometry to act as targets for constraints. A space has been reserved for this already. 
* Tidy up UI buttons of constraints
2007-07-15 03:35:37 +00:00
Ken Hughes
0f692d999a Python API
----------
Remove unused variable declaration which caused gcc warnings.
2007-07-13 14:38:44 +00:00
Campbell Barton
4f240c7982 Revision: 11257 from 2.44 stable 2007-07-12 20:49:36 +00:00
Ken Hughes
229e4674f8 Python API
----------

Fix uninitialized variable in MEdge_setSel.
2007-07-12 15:32:15 +00:00
Kent Mein
e19519ec40 Added only's to the tooltips
Kent
2007-07-12 15:18:14 +00:00
Kent Mein
735fc305ff Removing the double negitives in the tooltips talked about last night.
Kent
2007-07-12 14:46:14 +00:00
Campbell Barton
bfb9603cb4 From stable
Revision: 11237
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11237
Author:   campbellbarton
Date:     2007-07-12 13:05:31 +0200 (Thu, 12 Jul 2007)

Log Message:
-----------
PyObject_IsTrue was missing a check for an error return value in many cases.
2007-07-12 11:51:21 +00:00
Kent Mein
e7c15b97e2 Little typo found by Renato Perini
I hate the wording of these tooltips but can not think
of something better currently so I'm just fixing the spelling.

Kent
2007-07-11 21:18:37 +00:00
Kent Mein
8c96c15c92 Added a flush after fprintf
This is patch [#6921] Make error printing a bit more reliable
from GSR
http://projects.blender.org/tracker/index.php?func=detail&aid=6921&group_id=9&atid=127

Kent
2007-07-11 18:45:39 +00:00
Joshua Leung
fb9b3022d3 Bugfix #6931:
I-Key on Fields not working for Empty Object. Was wrongly only checking for Meshes.
2007-07-11 10:13:59 +00:00
Robert Holcomb
f628b9c442 One more time....I misunderstood the guidance about values as inputs for
the math node.  Now it functions with two values as inputs (no image 
neccissary).  Kinda back where it started ;)
2007-07-11 03:33:28 +00:00
Robert Holcomb
c313f6db86 After chatting with Broken about grs comments on the default behavior
of the nodes, I realized I had strayed from the path of enlightened blending 
by causing the math node to create an output the size of the larger of the 
two inputs.  

It has been corrected create the output the size of the 
first image, and in its abscense the second image.  In the event of 
nether input containing image data the node does not function.  I also 
added some early out checks at the beginning of the function to speed it 
up a tad in these cases and commented the code a bit more.
2007-07-11 03:00:39 +00:00
Robert Holcomb
5e8ed4f088 Updated Contributor line in GPL header to reflect original source. This
closes patch #6215-Normalize.
2007-07-11 01:03:39 +00:00
Kent Mein
9f3670ce9f Removed comments with non ascii chars...
I left the link that points to documentation on the web so not really needed 
anyway.

Kent
2007-07-10 19:34:41 +00:00
Kent Mein
9298357670 This is patch [#6929] Interpolation Methods
http://projects.blender.org/tracker/index.php?func=detail&aid=6929&group_id=9&atid=127
Its a subset of patch [#6766] Transform Sequencer effect

It adds 3 image functions for different types of interpolation.
For people that like pictures:
http://wiki.blender.org/index.php/User:Damiles#Interpolations_Algorithms

Patch provided by David Millán Escrivá (damiles)

Kent
2007-07-10 19:13:03 +00:00
Diego Borghetti
209407a7e1 Fix regression reported by Early Ehlinger on ML.
Original bug:
	https://projects.blender.org/tracker/?group_id=9&atid=127&func=detail&aid=3760

Code remove in revision 6654:
	http://projects.blender.org/plugins/scmsvn/viewcvs.php/trunk/blender/source/blender/src/renderwin.c?root=bf-blender&r1=6491&r2=6654

and return in revision 6839 (without the point checking):
	http://projects.blender.org/plugins/scmsvn/viewcvs.php/trunk/blender/source/blender/src/renderwin.c?root=bf-blender&r1=6835&r2=6839
2007-07-10 15:24:48 +00:00
Kent Mein
8198ea61be Update to the translation code. Patch provided by dripstone.
Basically move stuff out of filesel.c and into language.c and changes
when exactly it does the conversion.  It was doing it when not needed for
some machines.  It probably still needs work but its slowly getting better.

I also removed some commented out code.

Kent
2007-07-10 15:10:32 +00:00
Robert Holcomb
9a07d9cd98 Fixed typo. Ooops. 2007-07-10 02:33:00 +00:00
Robert Holcomb
b89ba8636c Added normalize compositing node. 2007-07-10 02:27:37 +00:00
Robert Holcomb
1d66563d95 Committed patch fixing bug #6900. Math node now has reflective
behavior.
2007-07-10 02:06:10 +00:00
Joseph Eagar
4f01085709 =ID Property update=
ID Properties weren't being duplicated (by shift-D or any of the other
duplication functions).  So now ID properties are duplicated in the 
main copy_libblock function, which (as far as I can check) covers all
ID-contained ID properties.

I also updated the constraint system to copy pyconstraint ID properties
on shift-D.

This would probably be a good thing to add to the stable branch, btw.
2007-07-09 20:42:14 +00:00
Kent Mein
052a15d4b4 Was a missing -DWITH_FFMPEG here so I added it.
Kent
2007-07-09 16:17:33 +00:00
Ken Hughes
1d1faacdff Bug #6924: Add WITH_FFMPEG compilation switch when WITH_BF_FFMPEG is true for
scons.  

Can someone verify that other build systems are also including this?
2007-07-09 16:03:26 +00:00
Ken Hughes
db2cc09913 Correct comments in example for Python Ipo module doc.
Remove redundant description of yafrayGIMethod in Python Render module doc.
2007-07-07 17:33:46 +00:00
Joshua Leung
9116a62336 == Action Editor Bugfixes ==
Resolved Issues:
* My drawing cleanup commit the other day broke shapekey keyframe selection - was using wrong filter for Action Editor data
* Removed the old hack to limit vertical scrolling so that shapekeys were visible. It wasn't really needed anymore, and was causing problems with HomeKey.

Unresolved Issues:
* Vertical placement of sliders is slightly off
* In a test file I obtained, shapekey sliders don't work immediately after the file is loaded.
2007-07-06 09:59:18 +00:00
Erwin Coumans
fb622c7c3c //someone reversed axle direction conventions inside Bullet (axle winding), so need to compensate to keep game blender vehicles working the same. 2007-07-06 04:45:57 +00:00
Campbell Barton
cff039bc58 Ipo doc correction thanks to kempoller 2007-07-05 11:28:11 +00:00
Joshua Leung
d846d9db9f Bugfix: 'Random' crashes after duplicating bones
This commit should fix some seemingly random crashes broken and I have been experiencing while editing armatures.

A backtrace revealed that autosave was choking on the PoseChannels that didn't have a Bone assigned to them. This was caused by the bone duplication code making a new PoseChannel for a duplicated bone, but that new bone not getting assigned to the PoseChannel yet, as the user was still in EditMode.
2007-07-04 07:07:12 +00:00
Campbell Barton
727216f9e1 was missing a decref and leaking ram when building the static particle list 2007-07-03 16:04:41 +00:00
Juho Vepsalainen
3904e29a6f Fix for bug #6907:
Compile was broken due to two variable names being inappropriate. I renamed
them fixing the issue.
2007-07-03 14:49:41 +00:00
Joshua Leung
4e1fcd42cf Icons Bugfix:
Remove a single annoying 1x16 unwanted pixel column from one of the icons I added earlier today.
2007-07-03 11:53:17 +00:00
Juho Vepsalainen
b5db6b0820 "Render to image editor" to render to Buttons Window as the last alternative:
"Render to image editor" renders to Buttons Window only if no other suitable
windows are available. Other window types are prioritized before Buttons
Window.
2007-07-03 11:39:36 +00:00
Matt Ebb
b21e895d03 * Added a bit more 'padding' around the node sockets, so there's a
larger area to drop the noodle connection on. This helps a lot when 
working with lots of nodes and the view zoomed out to maximum.
2007-07-03 07:39:17 +00:00
Matt Ebb
f12ed164b7 * Added a hotkey (T) for the sculpt mode flatten brush
(part of this commmit snuck in the last one)
2007-07-03 07:30:42 +00:00
Matt Ebb
427d6fc21d * Removed the 'Beautify Fill' confirmation. None of the other fill
tools have them any more, it was an annoying historical artifact
from before undo.
2007-07-03 07:24:55 +00:00
Matt Ebb
cb82b297ad * Added the invisible 'Bone envelopes to vertex groups' command to
the 3D View Weight Paint -> Paint menu.
2007-07-03 07:22:28 +00:00
Joshua Leung
b6ccafc501 == Action/IPO Mute Icons ==
Added new defines for the icons used to show this, on the request of Matt Ebb. For now, the eye icons have simply been duplicated to the new spaces, but 'more descriptive' icons should be made.
2007-07-03 01:23:30 +00:00
Joshua Leung
2929e8f65a == Constraints/Arithb Code ==
* Formatting 'fixes' for more consistency with rest of code
* Moved Mat4BlendMat4 from constraint.c to arithb.c/h
2007-07-03 00:58:38 +00:00
Joshua Leung
d65816c49a == Action Editor ==
Some cleanups of the Action Editor drawing methods. These now make use of the filtering stuff I added for the backend cleanup.

Unfortuantely I still cannot get Blender's ui widgets to really work properly, so that toggle icons can have tooltips. There were some severe scaling issues.
2007-07-02 12:04:22 +00:00
Campbell Barton
39e4dc6202 replace PyInt_CheckExact with PyInt_Check, same for floats and strings so subclass and C/subtypes work.
was reported as a bug a while ago.
2007-07-01 05:41:23 +00:00
Joshua Leung
129290fbe1 readfile.c - fixed a indentention on a few lines 2007-06-30 03:26:18 +00:00
Campbell Barton
f6090e814a reversing unintentional changes. 2007-06-30 00:18:10 +00:00
Campbell Barton
7b05c1023d mixed decloration, own Lattice typo's 2007-06-30 00:00:04 +00:00
Campbell Barton
d31999767b same as 2.44 stable - missing NULL checks. 2007-06-29 13:46:15 +00:00
Campbell Barton
e192e7e024 remove unneeded checks from the python API 2007-06-29 08:59:26 +00:00
Campbell Barton
684869fd74 patch from harkyman to make it possible to extend images to span more frames in the sequencer.
Link includes example script
https://projects.blender.org/tracker/?func=detail&aid=6893&group_id=9&atid=127
2007-06-29 05:33:43 +00:00
Kent Mein
cdb07720ed Code cleanup's done by bedraw
This is patch #6886
https://projects.blender.org/tracker/index.php?func=detail&aid=6886&group_id=9&atid=127

removes some unused define's and some code that is no longer used and fixes some
formatting issues.

Kent
2007-06-28 15:57:54 +00:00
Campbell Barton
85bbc4c3e2 Mesh.c - added missing error checking for vert ranges and that verts are valid.
Mesh.c - removed unneeded checks for creating ints.
Text3d.c - own error - setting the 3d text didnt work, 1 liner fix.
2007-06-28 13:46:42 +00:00
Kent Mein
470dda4a21 This is a fix for game engine bug #6667
http://projects.blender.org/tracker/index.php?func=detail&aid=6667&group_id=9&atid=306

I moved some of the X11 initation code down a little bit so that
if you run gameplayer with no args or gameplayer -h 
it will not crash even if you do not have X11 present.
(All it does is print usage)

Kent
2007-06-27 15:08:31 +00:00