Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
3fb1f2986f Bugfix #5541
Composite: Scale Node didn't correctly pass on 1-channel buffers when no
scaling happened, resulting in crashes.
2006-12-28 12:07:11 +00:00
Ton Roosendaal
ebdc0d04a5 Bugfix #5540
Datbrowse return event was accidentally cleared, so browsing did not work.
(Commit of last week for image refactor).
2006-12-28 11:31:22 +00:00
Ton Roosendaal
6f6051d455 Preview render in 3D window used wrong clipping... 2006-12-28 11:14:08 +00:00
Campbell Barton
2feea3dcc3 made scn.objects more flexible... you can now things like...
scn.objects.selected = [] # deselect all
scn.objects.selected = scn.objects # select all
scn.objects.context = [ob1, ob2...]

Added epydoc examples and updates importer scripts to use this de-select-all method.
2006-12-28 11:09:36 +00:00
Nicholas Bishop
356ea2ff28 Added numerical input for sculptmode propset 2006-12-28 08:24:37 +00:00
Nicholas Bishop
4098977569 Holding control while using sculptmode propset now snaps to multiples of 10 2006-12-28 07:49:08 +00:00
Nicholas Bishop
f3948a5575 Fixed bug #5533, was allocating memory by totvert rather than totface 2006-12-28 07:33:39 +00:00
Nicholas Bishop
57b8310e9d Added numerical display of sculptmode propset in preperation for numerical input 2006-12-28 07:04:05 +00:00
Campbell Barton
8ea2b66810 Made it possible to copy modifiers from the python API
ob1.modifiers = ob2.modifiers
2006-12-28 06:47:56 +00:00
Campbell Barton
ab06e52343 Mech cleanup use new edge_keys
continual script stuff, minor stuff..

fix for bad return in group.
Added back group.objects.append/remove but print deprectaed warning. also some epydoc changes.
2006-12-28 05:00:35 +00:00
Martin Poirier
c063e01f06 === Bug Fix ===
Fix for bug [ #5522 ] inaccurate rotation

Entering very high/low values using numeric input in a rotation (+/- 360000 and more/less) resulted in incorrect rotations. Fixed by clamping the actual rotation between -180 and 180 before converting to radians (just to be clear, the clamping already happened and is inevitable, now, it just happens earlier).
2006-12-28 03:11:21 +00:00
Joshua Leung
482b864a5b A few little cleanups in keyframing code
* Added a few missing undo-pushes for a few keyframing options
* Made inserting visual rotation keyframes for objects use Mat4ToEul
2006-12-28 03:04:54 +00:00
Joshua Leung
819b5d51f6 == Armature Centering Tools ==
After all these years, it is now possible to (re)center armatures like you
can do with meshes and curves.

At the moment, you can only access this functionality from the menus
(Spacebar->Transform) as the armature button panels are pretty
crowded.
2006-12-27 23:30:59 +00:00
Joshua Leung
434e6d22eb Minor code cleanups of posemode bone snapping code 2006-12-27 21:56:00 +00:00
Nicholas Bishop
77ed6f94c4 Added checks in sculptmode for mirror modifiers with Do Clipping enabled, this now works as expected for all brushes 2006-12-27 21:41:25 +00:00
Nicholas Bishop
ca4d431456 When calculating brush size, pressure should be ignored for grab brush 2006-12-27 20:21:07 +00:00
Nicholas Bishop
57df3fb1b4 Switching editmode on then off again with multires enabled should update the edge visibility 2006-12-27 20:08:29 +00:00
Ken Hughes
a5c188b4a6 Python API
----------
Bugfix. Refactor from a few months ago broke ob.loc; it only accepted a tuple
of 3 floats instead of a list.  Make it accept both types now.
2006-12-27 18:39:39 +00:00
Campbell Barton
4d74f07043 added Draw.Normal() for the normal rotating sphere button, mostly the same as the ColorPicker in code and syntax. 2006-12-27 11:58:03 +00:00
Ton Roosendaal
38f168c3d3 Bugfix #5430
"Delete object" didn't correctly clear all pointers in Object NLA modifiers
2006-12-27 10:21:33 +00:00
Brecht Van Lommel
d24597c8a3 Fix for bug #5523:
A crash on rendering with multiple UV layers, layer names weren't always
getting copied correct.
2006-12-27 10:20:29 +00:00
Joshua Leung
ad1cc8a8fc == Editmode Bone Snapping ==
I've often found it very annoying that with both ends of a bone selected,
they would both get snapped to the snapping point. This means that the bone
becomes zero-length, hence disappears from view and gets deleted upon
leaving editmode.

Now, when both ends of the bone are selected, only the head of the bone gets
snapped to the snapping point. The tail will get offset by the same amount
that the head gets offset by, thus preventing zero-length bones.
2006-12-27 10:02:27 +00:00
Campbell Barton
84f60b19c8 weightpaint_clean, option to clean all vgroups
weightpaint_envelope_assign - can update active vgroup only
weightpaint_normalize - fixups
BKE_plugin_types - made the max length 32 ratehr then 16 so you can fill the text space in pupBlock
2006-12-27 09:31:28 +00:00
Nicholas Bishop
11e035b0fc Checking the sculptmode state should include the sculpt session 2006-12-27 07:43:48 +00:00
Joshua Leung
65bfa3b05f == PoseMode Bone Snapping ==
Bugfix for my previous snapping commit. In some cases, bones still
didn't snap correctly (parentless 'root' bones). That was because those
cases assumed that constraints had no effect on those bones.
2006-12-27 05:48:49 +00:00
Ken Hughes
20a656db1d Python API
----------
Perform better param checking on Curve bevel and taper objects so that an
curve can't use its own object.  Also stick a big warning in the docs for
Curve.setTotcol(), which seems to be an extremely dangerous method.
2006-12-27 05:30:32 +00:00
Campbell Barton
9afe662c12 renameing datablocks was imposing a name limit on the python side.
This isnt needed because the limit is alredy being set by rename_id()
some other minor changed- use None returning maro
2006-12-27 05:04:20 +00:00
Joshua Leung
ed2f161c72 == Copy Rotation Constraint - Bugfix #5519 ==
Now, when only one axis toggle is on and click on it, all of the other
toggles will not be turned on.

For this to work, I've moved the version patches in the drawing/evaluation
code for this constraint to the file-reading code.
2006-12-27 05:00:43 +00:00
Erwin Coumans
76b6a6611c normalize hitnormal 2006-12-26 23:03:36 +00:00
Erwin Coumans
14d60ca000 -fixes in player: draw physics debugging, only render frames when actually updated, fix with hierarchies not properly build (causing crashes) 2006-12-26 22:02:31 +00:00
Ken Hughes
7b14c36a18 Python API
----------
Bugfix: make Constant mp_subscript method return key error if key not found
in dictionary.
2006-12-26 21:12:34 +00:00
Ken Hughes
e6381a04d6 Python API
----------
Bugfix: fix my own over-optimization in insertIpoKey(), allow IPOKEY_LOCROT
and IPOKEY_LOCROTSIZE to again set rotation and size Ipo curves.
2006-12-26 19:47:34 +00:00
Ken Hughes
df2fd95faa Python API
----------
Bugfix for at least one annoying "DeprecationWarning: integer argument
expected, got float" followed by garbage printed to the console.  The message
happens when PyArg_Parse() is called to parse an integer but is passed a
float.  This happens in a few other places, bun unfortunately I can't fix
them all right now.
2006-12-26 19:13:13 +00:00
Ken Hughes
d2d86d34d3 Python API
----------
Correct some typos in Ipo API documentation.
2006-12-26 15:07:49 +00:00
Roland Hess
445746696b Little commit to curb a tiny bit of the complaining about how easy
it is to accidentally quit Blender and "lose" your work.

Even though there is quit.blend, Ton said he had no problem
with at least removing plain of 'q' for quit.

Quit Blender hotkey is now Ctrl-Q.
2006-12-26 12:51:55 +00:00
Ton Roosendaal
87286dad82 Bugfixes #5314 and #5424
- removed the "\" from pulldown menu, and replaced with readable "or"
  (makes it for translation systems easier to parse)
- the theme menu, area type chooseer menu, "Timeline" didnt draw in the
  button due to bad pupmenu_col() code with using 'seperators'. Fixed it
  by just adding another separator for now.

Both fixes reviewed and provided by Juho. Thanks!
2006-12-26 11:26:10 +00:00
Ton Roosendaal
d109129663 Bugfix #5498
Textbutton: SHIFT+Arrow selections did not work proper when the amount of
text in a button was more than its width could display. Now still doesn't
work OK 100% (when selection itself goes outside of button view).

Also: removed the very bad SELWIDTH define (but->selend - but->selsta).
That's not making readable code!
2006-12-26 10:18:38 +00:00
Ton Roosendaal
e4511c805f Ancient bug: when subdividing the screen many times, it gives a crash when
the amount of subwindows reaches 128 (64 areas+headers).

Added a warning instead of crash!
2006-12-26 09:19:19 +00:00
Ton Roosendaal
10137426a6 Bugfix #5487
New glDrawArrays() code used an array size of '1' for drawing Surface
curves/polys. Seems to crash in Linux...
2006-12-26 08:46:58 +00:00
Campbell Barton
46924d32f4 Camera.c refactor, moved to getsetattrs. deprecated get/set functions. and added access to all camera settings.
cam.type now uses 'ortho' and 'persp' rather then 0 and 1

group.c and object.c, minor cleanup
2006-12-26 07:00:32 +00:00
Geoffrey Bantle
0aebc13199 -> Further work to improve triangle conversion tool:
The improved triangle to quad conversion is now better integrated
into Blender in several respects. First of all the code makes distinctions
between 'simple' pairs and 'complex' pairs. Simple pairs are an island of
exactly two selected triangles that are joined by an edge. These simple pairs
are subject to the old 2.42 rules for joining triangles. Complex pairs are part
of larger islands of selected triangles and their conversion is controlled by
several parameters that can be individually tweaked via new buttons located
in the "Mesh Tools" panel of the editing buttons. Furthermore the tool deals
with any arbitrary combination of simple and complex islands in a consistent and
logcial way.

The code has also been drasitcally cleaned up and should address the open
bugs in the tracker regarding alt-j. However as part of cleanup the tool has
been made somewhat slower to insure a consistent mesh structure. This is a
limitation of the exist_face() function in editmesh and will have to be adressed
at a later date.
2006-12-26 02:00:56 +00:00
Campbell Barton
470f91b506 object_cookie_cutter - use edge keys
widgetwizard - made a mistake in last commit, works and also dosnt creash with bug.
https://projects.blender.org/tracker/index.php?func=detail&aid=5289&group_id=9&atid=125
Can others test so we can close?

Object_join was messing up object usercounts
2006-12-26 01:45:58 +00:00
Nicholas Bishop
b27785c4df Fixed a number of crashes occuring when loading saved files with sculpt mode active. (mostly missing checks for a sculpt session.) 2006-12-25 23:52:17 +00:00
Nicholas Bishop
3fe44bf83a Update sculpt object when switching mesh shapes in the IPO editor 2006-12-25 23:16:22 +00:00
Ken Hughes
576c5b85b6 Python API
----------
Add .materials attribute to BPy Curve API.  Also clean up Mesh.materials
documentation.
2006-12-25 21:15:53 +00:00
Nicholas Bishop
6b64ccdca1 Sculptmode now works properly with shape keys (Merry Christmas.) Fixes bug #5499, Sculpt mode don't works correctly with Shape Key. 2006-12-25 19:11:20 +00:00
Ken Hughes
a2b3eb56f2 Python API
----------
Change "requiresd" to "required" in getChildren() documentation.
2006-12-25 15:07:16 +00:00
Campbell Barton
2a9fab55ba PyAPI driverExpression:
added "ipocurve.driver = 2" to set the curve to use driver python expressions.
added ipocurve.driverExpression - the string to run.
2006-12-25 10:44:28 +00:00
Campbell Barton
859b7f207e modified scripts from using older/depricated Python API commands, deprecated scn.getChildren() in the docs. 2006-12-25 09:17:23 +00:00
Nicholas Bishop
dd5077060e Cleanup of the SDNA SculptData struct. Moved a lot of data that isn't saved into a separate SculptSession struct (outside of SDNA.) 2006-12-25 08:52:57 +00:00