Commit Graph

23102 Commits

Author SHA1 Message Date
Sergey Sharybin
991eac85ff Initial implementation of mdisps layer interpolation
Sculpt data shouldn't be lost when making topology changes without
quads<->tris face converison.

General idea:
- Go through all grid points of each corner and convert per-corner
  coordiante to per-face cooredinate
- Apply weights and convert new point to per-corner coordinate
- Use bilinear interpolation to get needed displacement vector

Some additional work was necessery:
- Two neighbour corners could have different displacements along common
  boundary. multires_mdisp_smooth_bounds() makes displacement "symmetrical"
- Point could change it's corner, so displacement vector should be flipped
  in some way. In some cases it's not only flipping, because corner could
  be mapped with some rotation. It's not solved for triangular faces yet,
  so only z-axis displacement would be interpolated for tris.

More limitations:
- Interpolation will give incorrect result after quad<->triangle
  face conversion.
- When face normal was fillped displacement would change it's direction too.
2010-12-13 21:22:30 +00:00
Xavier Thomas
bfe5ae9ff1 Compositor: Add an option to select the YCbCR conversion mode for the YCbCR combine/separate nodes. 2010-12-13 21:17:00 +00:00
Ton Roosendaal
33d98c4d3a Bugfix #25207
Driver fix: typing expression outside Graph Editor didn't tag the 
expression to be re-evaluated. Also missing was notifier for other
editors.
2010-12-13 19:10:35 +00:00
Ton Roosendaal
4d5afa04f8 Bugfix #23420
Compositor/Image viewer
In 2.4x viewer nodes had animation playback. Not restored yet.
However, when loading such older files the viewer never showed
any result.
2010-12-13 18:22:59 +00:00
Ton Roosendaal
d2f84e0f79 Bugfix #25191
F11 pushed a render window to back, but not popped it.
This also works for user prefs btw, not bad ;)
2010-12-13 17:40:06 +00:00
Ton Roosendaal
e3a2622cb5 Small fix in error text returned from baking. 2010-12-13 17:23:03 +00:00
Ton Roosendaal
573b8d0309 Bugfix #25197
Curve follow path: the fcurve modifier got lost after tabbing in out
editmode. Also other non-point related curves would get lost.
2010-12-13 17:10:44 +00:00
Ton Roosendaal
0ea96731d9 Bugfix #25199
Graph editor: submenu for handle type had drawing error.
Seems to be the collumns-separator feature for enum properties?
No time for debugging that, a 5-item menu doesn't need 2 collumns.
2010-12-13 15:21:44 +00:00
Xavier Thomas
d241f2ed93 Fix for imageeditor's scopes not updating when changing the image. 2010-12-13 14:47:31 +00:00
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
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