Commit Graph

7379 Commits

Author SHA1 Message Date
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
Erwin Coumans
5aabafeb99 prevent crashes: some python scripts keep 'global variable' access to destroyed game objects. 2006-12-25 04:11:39 +00:00
Erwin Coumans
e820cdf6a0 fixing some issues: force needs to wake up objects, property sensor issue, island activation issue 2006-12-25 02:02:13 +00:00
Chris Want
66643dbf1f I think this might be a safer way of dealing with the non-OpenEXR
compilation of image.c -- Ton: please check.
2006-12-24 20:19:56 +00:00
Chris Want
1e6c007497 Some more duct tape to make sure that blender[player] still builds
when compiled without OpenEXR.
2006-12-24 16:03:31 +00:00
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