Commit Graph

7870 Commits

Author SHA1 Message Date
bda8c6528e remove BKE_array_mallocn.h, replace use with BLI_array.h, also removed
ifdef'd code which has since been moved into another file.
2012-01-17 16:03:49 +00:00
25e3b647b1 New pchan to pose matrices computes. Fixes [#27898] Bone snap to cursor fails and [#29461] Selection-to-Cursor works strange with bones with TrackTo constraint. Also fixes some inconsistant behavior of no Inherit Rotation/Scale options.
WARNING: This commits modifies how translated unconnected child bones with *no Inherit Rotation option* are positionned. This means that if you open a posed/animated armature using such (corner-case) setup, you'll have to adjust manually the locations of such bones: now, disabling Inherit Rotation/Scale will no more move the bone, only affecting its rotation/scale.

Many thanks to Bassam Kurdali (slikdigit) for his advices and tests of the patch!

-----

Dev notes : the pchan_to_pose_mat() func was added to BKE_armature.h, which computes two matrices to get the pose transformations (pchan) of the bone directly in pose (i.e. armature object) space. The first matrix is the rotation/scaling parts, the second one is for location.

That new function is used by (hence deduplicating and simplifying their code):
* The pose evaluation code (where_is_pose_bone()).
* The interactive transformation code (add_pose_transdata(), in transform_conversion.c).
* The snap to cursor/grid code (through armature_loc_pose_to_bone()/armature_mat_pose_to_bone()).
2012-01-17 13:30:20 +00:00
c150d0084f patch [#29859] UTF-8 support for text editor.
This also fixes cursor movement in the beginning of line and adds do_versions block for converting text files with old extended ascii encoding into UTF-8.
2012-01-16 16:23:25 +00:00
e1dd245a1e more keymap edits
- make sure defaults are not assumed (so reuse last settings doesnt
override)
- replace 0/1 for TRUE/FALSE defines.
2012-01-16 16:12:03 +00:00
3123ad12a3 middle mouse jump scrolling for text window. 2012-01-16 10:48:52 +00:00
db2a453f32 use a look for paint brush switching keys 2012-01-16 10:05:53 +00:00
acb9b46617 use TRUE/FALSE for boolean keymaps, no functional changes 2012-01-16 09:51:04 +00:00
4bce60e25f went over all keymaps to check for cases where defaults were assumed
(which could be wrong if the previous setting was used).
2012-01-16 09:42:29 +00:00
0a5ff84acc fix for defaults not being set for object mode hide and delete keymap. 2012-01-16 09:12:34 +00:00
ab0cbaa7dc Allow camera 1:1 and center camera view to run from menu's. 2012-01-16 06:57:37 +00:00
ae9b4b81cb opengl render save ignored alpha settings. also some FILE_MAX defines missed last commit. 2012-01-16 06:43:58 +00:00
ea467d3228 use FILE_MAX instead of 240 or comment where define cant be used. 2012-01-16 05:52:33 +00:00
dc8b219726 Minor sculpt/paint cleanups.
Added some comments, constified a param, and moved a couple things
around.
2012-01-15 23:43:54 +00:00
23806a2b7d support for quick jump to scroll area with middle mouse clicking on scroll area (become used to this for qt and gtk apps) 2012-01-15 17:26:30 +00:00
0c2f08d35a fix crash when calling bpy.ops.render.render('INVOKE_DEFAULT') from the python console. 2012-01-15 14:19:32 +00:00
73b04af45d Another fix for previous own fix... 2012-01-15 13:51:32 +00:00
f37d1b7b4e Color channels now can be disabled for the whole frame in clip editor 2012-01-15 13:31:58 +00:00
58601362b7 Fixed incorrect behavior of 2d stabilization preview in clip editor when proxied resolution is used 2012-01-15 13:31:40 +00:00
1a0de15cb5 remove some unused DNA members 2012-01-15 11:53:14 +00:00
522a3b43ae modify the weight paint and vcol functions not to modify the color in place and instead return a new color.
also fix for error in last commit, the brushes alpha wasnt set for weight paint info struct.
2012-01-15 07:46:59 +00:00
52decb3c31 vertex/weight paint
- store brush_alpha() result so it doesnt need to be called for each vertex when paitning.
- use _pressure suffix rather then _final to show the pressure has been applied.
- weight paint was needlessly calculateing the test weight when multipaint was enabled.
2012-01-15 07:15:15 +00:00
783213b8fc minor cleanup to weightpaint code, move color & weight blending into own function (was duplicated), also add enum for vpaint blend modes. 2012-01-15 06:29:08 +00:00
30e759c75b Fix all remaining unified paint settings uses of current Scene.
Things like brush size and strength accessors now take a scene
parameter rather than guessing about which Scene's unified paint
settings to use.

Setting the size/strength through RNA can now be done separately for
the brush or the UnifiedPaintSettings.

The UI python code required updating to check whether the
size/strength controls should use brush or UnifiedPaintSettings RNA.

Radial control also required some updates to switch between the two
RNA sources.
2012-01-14 23:54:51 +00:00
046bf80881 Fix [#29894] Selection in sequence editor does not de-select other strips
Another bunch of fixes for select keymaps (sequencer, node, nla, graph, action).
2012-01-14 22:59:51 +00:00
93017790bc Fix [#29891] Stupid select all behaviour.
More "Reset ops properties" stuff, in select C keymaps this time.

Also ARMATURE_OT_select_inverse -> ARMATURE_OT_select_all(action='INVERT'). Left the select_inverse op code, though, it’s not using the same algo as INVERT of select_all ???
2012-01-14 21:19:41 +00:00
13ffef9c4a fix for weight paint when the mirror vertex was allocated (would free the original verts weight).
was an error in own recent commit.
2012-01-14 18:52:34 +00:00
e322537c13 fix [#29890] Extend selection doesn't clear (3D view edge loop select and node editor node select)
caused by own use-last-settings, will be more of these, need to go over all keymaps.
2012-01-14 17:56:44 +00:00
0d5595befb add utility function to BLI_math_color - rgb_to_luma, rgb_to_luma_byte, also use rgb_to_grayscale in more places. 2012-01-14 17:14:23 +00:00
6e72a7c113 replace operator to toggle handles with generic wm operator 2012-01-14 16:26:08 +00:00
635fba3a66 replace ANIM_OT_time_toggle operator with generic WM_OT_context_toggle operator 2012-01-14 14:17:12 +00:00
4f3de6a741 adjust view3d api function for getting user region to also return view3d since most callers need this too. 2012-01-14 12:24:25 +00:00
fca385ca9a - opengl render in quadview wasn't using camera.
- minor change to FTOCHAR use.
2012-01-14 11:21:00 +00:00
d14ac69c8c ensure functions are not used within FTOCHAR macro since they run 2-3 times.
brushes were doing curve lookups within this macro for example.
2012-01-14 10:33:16 +00:00
9fb9451321 Fix UV Editor selection (due to bug #29875, "extend" was no more reset when using keymap).
Yet I wonder how much of these remain (and why some, like e.g. selection in 3D views, did not have that problem)… This is a bit fuzzy, imho.
2012-01-14 08:59:11 +00:00
e5da7be972 fix for own error making button outlines darker. 2012-01-14 07:46:21 +00:00
0c4e0965cc make sequencer use standard select operator with action property, remove select_inverse operator. 2012-01-14 07:23:57 +00:00
166a37532f remove *.select_inverse operators where the *.select_all operator has an invert option. 2012-01-14 06:58:03 +00:00
75f8d5fc66 use single property lookups in transform operator initialization & fix error with last-settings, so texture translate doesn't apply to the grab key. 2012-01-14 04:42:41 +00:00
c5023e4bb9 Fix #29879: ctrl+B border select with handles in the graph editor not selecting
the right keys/handles.
2012-01-13 17:25:24 +00:00
cb145fad01 Fix #29878: running bpy.ops.render.opengl() from console not starting new line
or printing output.
2012-01-13 15:35:36 +00:00
2cde9bb99c Bugfix: Editing baked cache in particle mode for Softbody and Cloth now shows changes in 3dview without having to exit + enter editmode. 2012-01-13 15:14:08 +00:00
12520b4e06 Fix #29873: transform with individual origins not working in edge select mode. 2012-01-13 14:56:41 +00:00
e06d82227c adding metaballs and lamps in local mode was broken. 2012-01-13 10:14:48 +00:00
0527c4923d alpha value for button triangles ignored the alpha value (was no way to change alpha of Tick in boolean option button). 2012-01-13 09:26:06 +00:00
74aede4d71 Fix #29824: Error writing frame if 3D scene starts after first frame of animation and output is H264
Issue was caused by incorrectly set PTS value frames came form Scene strip renderer.
This value used to be calculated from RenderData current and start frame which
lead to non-uniformuly counting which totally confuses encoder.

Switch append_avi and append_ffmpeg to use current frame from rendering scene
(which was already passing to this functions and was used mostly for logging)
and start frame of rendering scene (it's new parameter added). This allowed to
calculate correct PTS value easily and get rid of global static sframe variable
in writeavi.c file.
2012-01-13 09:20:13 +00:00
425f634eeb fix for weight paint wire draw leaving GL_BLEND enabled (made pose bones draw with low alpha) 2012-01-13 08:38:26 +00:00
80c7190373 'uw' was used in weight paint code for previous deform weight, renamed to 'dw_prev' 2012-01-13 08:18:22 +00:00
153be23dbe give a more useful error when attempting to opengl render in background mode.
add some tips to the python docs.
2012-01-13 06:59:16 +00:00
264e132cfa fix [#29832] Weightpainting with "x-mirror" and "auto normalize" fails for center bones
normalize function simply wasn't called on the mirror vertex.

also fix 3 other bugs / inconsistencies

* when mirror is enabled, center verts get themselves as the mirror vertex, wpaint code didn't check for this case, mirroring the vertex to it self (would work, but unneeded).
* normalizing after painting would scale the active weight too, now keep the painted weight and adjust others when normalizing.
* VP_ONLYVGROUP wasn't respected for mirror (mirror vertex group would always be added).
2012-01-13 05:52:34 +00:00
6fee7963ce another minor weightpaint change, dont pass do_auto_normalize as a bool arg to do_weight_paint_normalize_all(), just check before calling. 2012-01-13 02:25:15 +00:00