Commit Graph

49420 Commits

Author SHA1 Message Date
Ton Roosendaal
6402aedc1a Bugfix #25178
Armature edit mode: x-mirror: "switch bone direction" now flips the
mirror bone too. It leaves the mirrored bones selected too, so
you get good visual feedback things happened there.
2010-12-13 13:50:20 +00:00
Campbell Barton
7a581f95d0 check if a path can be created to a property before showing keyframe items in menus since they only give an error when accessed. 2010-12-13 11:39:11 +00:00
Janne Karhu
7bf5d9449c "Fix" for [#25184] Forces for growing hair - update inconsistency - as discussed with Jahka on Saturday on IRC
* New option to "Regrow hair" for each frame.
* This was perhaps more a feature request, but there was a similar useful feature called "animated hair" in particles at some point.
* The previous behavior for hair growing was inconsistent to say the least, so this is a nice option to have.
2010-12-13 10:45:24 +00:00
Sergey Sharybin
c85adcc2e4 Use mdisps layer from edit_mesh when adding/removing multires modifier
when object is in edit mode.
2010-12-13 10:24:05 +00:00
Janne Karhu
4cd06a6526 Fix for [#25185] Toggling hair dynamics without deleting cache leaves hair disattached when mesh animation is controlled by deformers - discussed with Jahka on IRC on Sat 2010-12-13 09:39:14 +00:00
Campbell Barton
a4b410af3d Expose access to PROP_ENUM_FLAG from bpy.props.EnumProperty(), this is exposed as a python set(). The default value is also a python set() so multiple booleans can be used in the 1 property.
Also added PROP_ENUM_FLAG support to operator printouts.
2010-12-13 09:10:16 +00:00
Joshua Leung
25bf9e38f3 Bugfix #25188: Can't assign "add driver" to hide properties of bones
This was set to being not-animatable in r33397. However, I think there
are some valid use cases where controlling layer visibility may be a
"too heavy handed" approach.
2010-12-13 09:04:04 +00:00
Campbell Barton
02ec64ca46 fix for error in recent commit. 2010-12-13 08:44:07 +00:00
Joshua Leung
d09bc78e6b Reshuffled AnimData reading functions in writefile.c as per an old
comment I'd left in there before this code had been merged back from
NLA-SoC branch
2010-12-13 08:08:09 +00:00
Campbell Barton
6ef85af300 exceptions in registering properties were not properly handled, allowing a single error stop the main module registration loop.
worst case 1 script error could load blender without a UI.
2010-12-13 07:54:35 +00:00
Campbell Barton
39e3a75978 fix for transform operator giving '<UNKNOWN>' enum value when logged, now pass on the context for operator string representation. 2010-12-13 06:54:25 +00:00
Joshua Leung
1474b32456 Lattices now have AnimData
This allows manual (point by point) animation of their control verts,
although many other settings cannot really be animated with any
visible effects yet. Interestingly, lattices also had IPO block
pointers, though they were never really used (AFAIK).

Todo:
- Animation Editor support has yet to be added. I've got a few other
things to add to, so will group those changes together.
2010-12-13 06:31:49 +00:00
Campbell Barton
dec4789571 option to reverse cycle through render slots (Alt+J). 2010-12-13 05:02:23 +00:00
Campbell Barton
2ca6e5dd01 multi-dimensional array resolving for rna paths.
eg, "matrix[3][2]" could be used as a driver.

Test from python
  bpy.context.object.path_resolve("matrix_world[2][3]")

Before this was always treated as a 1 dimensional array.
2010-12-13 02:33:14 +00:00
Campbell Barton
19d0736862 bugfix [#23395] Mirror + Front Faces Only + Grab = Scaling oddity
sculpt normal was used un-initialized, this also affected snake/hook brush.
2010-12-12 23:02:19 +00:00
Campbell Barton
433eeee41f clipboard setting background check correction. 2010-12-12 21:28:07 +00:00
Thomas Dinges
040112d6ae Fix for compile on windows:
*Variable declaration after return statement
2010-12-12 20:21:59 +00:00
Ton Roosendaal
32d82da9e4 Bugfix #25183
Copy constraints pose mode: didn't update constraint flag to denote
colored bone drawing. Also notifier was missing for redraw.
2010-12-12 19:22:24 +00:00
Ton Roosendaal
ba2edc007b Bugfix #25179
Armature properties: layer buttons now show which ones are in use,
like object layers.
2010-12-12 18:16:54 +00:00
Ton Roosendaal
826cf81d34 Unlinking material crashed, missing NULL check. 2010-12-12 17:59:48 +00:00
Sergey Sharybin
1185d70f8f Fix #25177: Skeleton Sketching - deleted sketches don't disappear immediately
Added notifier ND_SKETCH for handling such actions
2010-12-12 16:15:49 +00:00
Ton Roosendaal
d47ef94d1a Armature pose: removed the "Confirm" dialog for clearing
loc/rot/size properties.  (same as object mode)
2010-12-12 16:06:04 +00:00
Campbell Barton
ee73c96e90 - fix for rna show_brush variable shadowing its parent classes with a flag which is now unused.
- getting clipboard RNA variable would crash blender in background mode.
2010-12-12 14:28:23 +00:00
Ton Roosendaal
03305de86d OS X Cocoa: added QT "Animation" codec.
Thanks to Jens Verwiebe for providing diff and test
2010-12-12 13:45:35 +00:00
Tamito Kajiyama
3189797833 Fix for incorrect vertex normals in the case of smooth faces with
the R_TRANSFORMED flag enabled.  Now vertex normals are properly
transformed by ObjectInstanceRen::nmat[3][3] and normalized.  It is
noted that in the case of R_TRANSFORMED flat faces, surface normals
are transformed and normalized by RE_vlakren_get_normal().

The bug was reported by Stéphane Grabli via personal communication.
Thank you Stéphane for the careful code review!
2010-12-12 13:16:35 +00:00
Campbell Barton
4f343642b1 isect_seg_seg_v2_point was modifying the value of line vectors passed.
this could be confusing later on, now swap the pointers rather then changing their values.
2010-12-12 01:36:10 +00:00
Campbell Barton
1ad15c37aa avoid possible errors, surround bit shifted defines with brackets. 2010-12-12 01:33:12 +00:00
Sergey Sharybin
448d24e7a0 New math util funcitons:
- equals_v2v2
- project_v2_v2v2
- isect_seg_seg_v2_point
which would be necessery for my further multires interpolation commit

M_Geometry_LineIntersect2D now uses isect_seg_seg_v2_point(). Behaviour of this
function was changed a bit -- it haven't returned intersection point in several
cases when two segments are making angle.
2010-12-11 21:27:39 +00:00
Ton Roosendaal
194449d038 Sequencer:
Dropping in image/movie/sound strips was broken; it dropped
things in wrong location (frame 0), and without giving images proper
length.

The file path setting code for the operators here is complex...
2010-12-11 20:01:34 +00:00
Ton Roosendaal
02be76be29 Drag/drop fix:
Outliner icons of ID blocks can be dragged, but it also caused an
activate of the item. This prevented using outliner for dragging
into name buttons. Now outliner activates on mouse-release, waiting
for potential drags to happen.
2010-12-11 17:55:54 +00:00
Ton Roosendaal
8a32c6468e 2.4 feature back:
For constraints that have 'disabled' flag (because it has invalid
input) the name was drawn in red. Easy to recognize constraints that
stopped working.
2010-12-11 17:47:36 +00:00
Ton Roosendaal
1d1c8bb21b Small fix:
Material Properties: adding new materials didn't create a new preview
icon for it.
2010-12-11 16:06:25 +00:00
Janne Karhu
63a508408d Added some explanation to pointcache->step value as suggested by troubled on irc. 2010-12-11 13:51:04 +00:00
Janne Karhu
f03735552b Fix for [#22967] UI stops updating
* Close event probably happens when drawable is set to other window and this messes up drawing.
* Also fixes #25071 and possibly #22477 (somebody with osx has to re-test)
2010-12-11 12:24:23 +00:00
Campbell Barton
5f5814f45f - ignore calls to WM_cursor_wait() in background mode (crashes saving blend files)
- rename curve enum value align CENTRAL to CENTER
2010-12-11 11:11:32 +00:00
Dalai Felinto
b4b636386f BGE BugFix: [#25106] modelview matrix incorrect after using VideoTexture - affecting mouse.position. Patch by Benoit Bolsee (ben2610) 2010-12-11 00:04:01 +00:00
Campbell Barton
c0c4d9c14c fix [#25170] The 3d view properties panel median values use Blender units when set to use imperial.
unit settings were working for vertex location but not median selection.
2010-12-10 23:31:03 +00:00
Ton Roosendaal
e11601be37 Bugfix #25153
graph editor:
- option "extend mode" requires channel-selection. Moved pulldown menu
  from Key to Channel instead
- hotkey SHIFT+E for same operation now works both in channel list as in
  main view.
2010-12-10 18:48:20 +00:00
Ton Roosendaal
9aace59708 IRC report fix:
Text edit mode (3d): brought back the ALT+Backspace mode for
typing accented characters. Works with an operator property,
so the hotkey for it is free to define.

Example: type 'a', alt+backspace and then 'o'
works to combine characters with ' ` ~ o / and ^
2010-12-10 13:31:59 +00:00
Campbell Barton
5854cfa5b8 fix for error in recent commit, wasn't masking out the non unit subtype flags. 2010-12-10 13:15:11 +00:00
Janne Karhu
f610c9b8a2 Bug fix: child particles weren't always updated correctly
* Calling update_children(..) is very light if there's nothing to update, so it doesn't matter if it's called every time the particle system is updated.
2010-12-10 10:34:12 +00:00
Janne Karhu
fe19e5336b Fix for [#25095] Particle systems and object with collision modifier bug
* Collisions didn't take emitter object layer into account
2010-12-10 08:29:46 +00:00
Campbell Barton
736ef55e74 fix [#25155] Glare node > Simple star > Rotate 45 is always applied
from acob F (raccoon)
2010-12-10 04:39:53 +00:00
Campbell Barton
b27f52ce24 bugfix [#25154] .MXF files should be included as a known video file type in the sequencer
[#25159] Vertex locations dont read correctly and are not labeled correctly in the properties bar.

- non rna buttons can now have units set.
- calls with invalid units system now raises an assert().
- include .mxf in filter.
2010-12-10 04:10:21 +00:00
Campbell Barton
b4081bfc7b patch [#25027] formatting mathutils.geometry module docs for sphinx
from Luka Bonavita

See:
http://www.blender.org/documentation/250PythonDoc/mathutils.geometry.html
2010-12-10 00:20:32 +00:00
Campbell Barton
2ed82275b5 transforming pose bones while the animation was playing would crash. 2010-12-10 00:10:43 +00:00
Campbell Barton
d9f131f2f0 tag unused variables. 2010-12-10 00:00:01 +00:00
Diego Borghetti
545cc4803e Change the BLF_aspect function to handle 3d text.
This is need to properly handle 3d text (dalai work on GE), before
the BLF_aspect only take one argument, and the result was a call to:
	glScalef(aspect, aspect, 1.0)

Now the three value are store in the font (x, y and z) and also
need to be enable using BLF_enable(BLF_ASPECT).

By default all the code that don't have BLF_ASPECT enable work with
a scale of 1.0 (so nothing change to the current UI).

I also remove all the call of BLF_aspect(fontid, 1.0) found in
the editors, because is disable by default, so no need any more.

Campbell the only thing to check is the python api, right now
I modify the api to from:
	BLF_aspect(fontid, aspect)
to:
	BLF_aspect(fontid, aspect, aspect, 1.0)

This is to avoid break the api, but now you need add the BLF_ASPECT
option to the function py_blf_enable and in some point change
py_blf_aspect to take 3 arguments.
2010-12-09 22:27:55 +00:00
Ton Roosendaal
3ee53d7b5f Related to previous commit:
I still have to learn more of the recent changes in code :)

Didn't know the handle type options became a menu for Curve edit mode. 
Providing much-used tools non-modal (direct) really should have 
preference. Pull down is not very accessible here though, will
check on it later. :)

This restores H, Shift+H, V and alt+H for handle setting.
2010-12-09 19:06:45 +00:00
Ton Roosendaal
41acfb1907 Bugfix #25150
Graph editor: hotkeys for handles restored; they work immediate 
and non modal now (menu was ugly and slow). Uses similar options
as 3d curve editing, but not toggling 'aligned'
HKEY: sets aligned
SHIFT+H: sets auto
ALT+H: sets free handle
VKEY: vector handle
2010-12-09 18:31:40 +00:00