blender.git
7 years agocode cleanup: remove redundant casts
Campbell Barton [Sun, 14 Oct 2012 08:49:01 +0000 (08:49 +0000)]
code cleanup: remove redundant casts

7 years agocode cleanup: remove redundant casts. quiet some qualifier warnings.
Campbell Barton [Sun, 14 Oct 2012 07:40:16 +0000 (07:40 +0000)]
code cleanup: remove redundant casts. quiet some qualifier warnings.

7 years agoFixed missing display buffer and mipmaps invalidation in cases only
Sergey Sharybin [Sun, 14 Oct 2012 06:59:01 +0000 (06:59 +0000)]
Fixed missing display buffer and mipmaps invalidation in cases only
few of selected objects failed to bake.

7 years agoRip-fill mesh tool (option for rip operator)
Campbell Barton [Sun, 14 Oct 2012 04:42:11 +0000 (04:42 +0000)]
Rip-fill mesh tool (option for rip operator)

Alt+V will fill the area inbetween the ripped faces - a bit like extrude.
faces are flipped to match existing geometry and customdata (uv, vcols etc) is copied from surrounding geometry too.

7 years agoBlenderplayer: Fixing a crash on startup when the graphics driver tried to use uninit...
Mitchell Stokes [Sun, 14 Oct 2012 04:22:38 +0000 (04:22 +0000)]
Blenderplayer: Fixing a crash on startup when the graphics driver tried to use uninitialized memory. I had fixed this previously in Swiss, but it looks like I missed grabbing the fix when bringing the GetViewPort() changes into trunk.

7 years agofix for error compiling on some platforms: use ll suffix for 64bit ints in BLI_endian...
Campbell Barton [Sun, 14 Oct 2012 04:11:34 +0000 (04:11 +0000)]
fix for error compiling on some platforms: use ll suffix for 64bit ints in BLI_endian_switch_int64()

7 years agouse safer string copy functions and change the define for FILE_MAX_LIBEXTRA to use...
Campbell Barton [Sun, 14 Oct 2012 03:56:47 +0000 (03:56 +0000)]
use safer string copy functions and change the define for FILE_MAX_LIBEXTRA to use MAX_ID_NAME (now greater then 32).

7 years agoMinor: precision in template_list doc, that only one list is allowed per template...
Bastien Montagne [Sat, 13 Oct 2012 21:32:58 +0000 (21:32 +0000)]
Minor: precision in template_list doc, that only one list is allowed per template...

Note: I should really try to remove this stupid limitation!

7 years agoMake zoom direction consistent all over the editors
Sergey Sharybin [Sat, 13 Oct 2012 16:42:12 +0000 (16:42 +0000)]
Make zoom direction consistent all over the editors

Was discussed in De Balie with lots of artists and we agreed it makes more
sense to behave this way

7 years agoMore UI messages fixes.
Bastien Montagne [Sat, 13 Oct 2012 15:44:50 +0000 (15:44 +0000)]
More UI messages fixes.
Also forgot to translate reports' titles, and change some usages of BKE_reportf to simple BKE_report, when the former is not needed!

7 years agoAdd translation of reports messages (only direct uses of BKE_report(f)/BKE_reports_ap...
Bastien Montagne [Sat, 13 Oct 2012 13:55:14 +0000 (13:55 +0000)]
Add translation of reports messages (only direct uses of BKE_report(f)/BKE_reports_append(f) funcs for now). Already adds quite a bunch of new msgids!

7 years agoAnd more UI messages spell check.
Bastien Montagne [Sat, 13 Oct 2012 13:40:05 +0000 (13:40 +0000)]
And more UI messages spell check.

7 years agoCycles: progressive refine option
Sergey Sharybin [Sat, 13 Oct 2012 12:38:32 +0000 (12:38 +0000)]
Cycles: progressive refine option

Just makes progressive refine :)

This means the whole image would be refined gradually using as much
threads as it's set in performance settings. Having enough tiles is
required to have this option working as it's expected.

Technically it's implemented by repeatedly computing next sample for
all the tiles before switching to next sample.

This works around 7-12% slower than regular tile-based rendering, so
use this option only if you really need it.

This commit also fixes progressive update of image when Save Buffers
option is enabled.

And one more thing this commit fixes is handling display buffer with
Save Buffers option enabled. If this option is enabled image buffer
wouldn't have neither byte nor float buffer until image is fully
rendered which could backfire in missing image while rendering in
cases color management cache became full.

This issue solved by allocating byte buffer for image buffer from
tile update callback.

Patch was reviewed by Brecht. He also made some minor edits to
original version to patch. Thanks, man!

7 years agoFix for wrong cycles tangent in some cases, was missing transform.
Brecht Van Lommel [Sat, 13 Oct 2012 12:11:01 +0000 (12:11 +0000)]
Fix for wrong cycles tangent in some cases, was missing transform.

7 years agocode cleanup: minor edits on recent commit.
Campbell Barton [Sat, 13 Oct 2012 11:23:04 +0000 (11:23 +0000)]
code cleanup: minor edits on recent commit.

7 years agoMore spell check exceptions...
Bastien Montagne [Sat, 13 Oct 2012 11:08:00 +0000 (11:08 +0000)]
More spell check exceptions...

7 years agoLattice Editing: Distortion-Free "Flip" Operator
Joshua Leung [Sat, 13 Oct 2012 10:42:38 +0000 (10:42 +0000)]
Lattice Editing: Distortion-Free "Flip" Operator

This operator (Ctrl-F) allows you to flip the lattice coordinates without
inverting the normals of meshes deformed by the lattice (or the lattice's
deformation space for that matter). Unlike the traditional mirror tool, this
tool is aware of the fact that the vertex order for lattice control points
matters, and that simply mirroring the coordinates will only cause the lattice
to have an inverted deform along a particular axis (i.e. it will be scaling by a
negative scaling factor along that axis).

The problems (as I discovered the other day) with having such an inverted
deformation space are that:
- the normals of meshes/objects inside that will be incorrect/flipped (and will
disappear in GLSL shading mode for instance)
- transforming objects deformed by the lattices will become really tricky and
counter-intuitive (e.g. rotate in opposite direction by asymmetric amounts to
get desired result)
- it is not always immediately obvious that problems have occurred

Specific use cases this operator is meant to solve:
1) You've created a lattice-based deformer for one cartoonish eye. Now you want
to make the second eye, but want to save some time crafting that basic shape
again but mirrored.
2) You've got an even more finely crafted setup for stretchy-rigs, and now need
to apply it to other parts of the rig.

Notes:
* I've implemented a separate operator for this vs extending/patching mirror
transform tool as it's easier to implement this way, but also because there are
still some cases where the old mirroring seems valid (i.e. you explicitly want
these sort of distortion effects).
* Currently this doesn't take selections into account, as it doesn't seem useful
to do so.

7 years agofix for own error, leaving in test code to set the smooth flag.
Campbell Barton [Sat, 13 Oct 2012 10:41:34 +0000 (10:41 +0000)]
fix for own error, leaving in test code to set the smooth flag.

7 years agoadded filter for user installed addons
Gaia Clary [Sat, 13 Oct 2012 10:33:09 +0000 (10:33 +0000)]
added filter for user installed addons

7 years agodifferenciate log message for enabled/disabled modules
Gaia Clary [Sat, 13 Oct 2012 10:31:35 +0000 (10:31 +0000)]
differenciate log message for enabled/disabled modules

7 years agoimprove edge rip when the edge has only 2 other connected edges.
Campbell Barton [Sat, 13 Oct 2012 03:59:06 +0000 (03:59 +0000)]
improve edge rip when the edge has only 2 other connected edges.

common case ripping an edge of the default cube, it didn't run the edge size check.

7 years agostyle cleanup: spelling
Campbell Barton [Sat, 13 Oct 2012 03:54:27 +0000 (03:54 +0000)]
style cleanup: spelling

7 years agoadd support for ripping off a single face from a single vertex when the vertex has...
Campbell Barton [Sat, 13 Oct 2012 01:46:57 +0000 (01:46 +0000)]
add support for ripping off a single face from a single vertex when the vertex has 3 surrounding verts & faces.

7 years agoBugfix [#32865] Usercounts for World Textures not decremented after preview
Joshua Leung [Sat, 13 Oct 2012 01:19:23 +0000 (01:19 +0000)]
Bugfix [#32865] Usercounts for World Textures not decremented after preview
render

When adjusting settings for world textures (with Both/World preview modes),
every tweak would result in the usercount of the texture increasing. As a
result, before long the texture would claim to have over 100 users. Fortunately,
this only appeared to be just a cosmetic issue (i.e. no real memory leak here),
though it was a bit unsettling.

NOTE: this is still a bit glitchy, as now we have flickering when updating
texture settings - the texture still temporarily has a second user during
preview rendering.

7 years ago* Fix small bug in Python operator example; improved example of modal operator
Jiri Hnidek [Fri, 12 Oct 2012 18:19:39 +0000 (18:19 +0000)]
* Fix small bug in Python operator example; improved example of modal operator

7 years agoTemplates:
Thomas Dinges [Fri, 12 Oct 2012 18:10:15 +0000 (18:10 +0000)]
Templates:
* UI Panel: Add examples for different button sizes.

7 years agoquiet some -Wshadow warnings
Campbell Barton [Fri, 12 Oct 2012 14:35:10 +0000 (14:35 +0000)]
quiet some -Wshadow warnings

7 years agocode cleanup: video playback move frame step into the PlayState struct.
Campbell Barton [Fri, 12 Oct 2012 14:03:43 +0000 (14:03 +0000)]
code cleanup: video playback move frame step into the PlayState struct.

7 years agofix for own error in copy_as_script(), imports were incorrect.
Campbell Barton [Fri, 12 Oct 2012 04:00:41 +0000 (04:00 +0000)]
fix for own error in copy_as_script(), imports were incorrect.

7 years agooptimization for PyObject -> ID-property sequence conversion, use PySequence_Fast.
Campbell Barton [Fri, 12 Oct 2012 03:59:50 +0000 (03:59 +0000)]
optimization for PyObject -> ID-property sequence conversion, use PySequence_Fast.

7 years agoquiet clang static checker warning by returning an error for invalid situation gettin...
Campbell Barton [Fri, 12 Oct 2012 03:24:47 +0000 (03:24 +0000)]
quiet clang static checker warning by returning an error for invalid situation getting an IDProp mapping from a PyObject.

also print the path installed to when installing an addon.

7 years agoremove BLI_noise from BLI_blenlib.h, not that many files need this.
Campbell Barton [Fri, 12 Oct 2012 00:18:32 +0000 (00:18 +0000)]
remove BLI_noise from BLI_blenlib.h, not that many files need this.

7 years agofix for many RNA definitions having soft/hard ranges swapped, make this BLI_assert...
Campbell Barton [Thu, 11 Oct 2012 23:46:12 +0000 (23:46 +0000)]
fix for many RNA definitions having soft/hard ranges swapped, make this BLI_assert() on debug builds.

7 years agoget the width and height of the font at once when drawing auto-key,
Campbell Barton [Thu, 11 Oct 2012 23:42:26 +0000 (23:42 +0000)]
get the width and height of the font at once when drawing auto-key,
also move BLF'g global font init into its own static function.

7 years agoRevert part of own r51193 (now I know where Courant comes from...), and add another...
Bastien Montagne [Thu, 11 Oct 2012 18:41:07 +0000 (18:41 +0000)]
Revert part of own r51193 (now I know where Courant comes from...), and add another exception to UI messages spellchecker! Thanks to Lockal for pointing this.

7 years agoRemoved duplicate include of stdio.h
Joshua Leung [Thu, 11 Oct 2012 10:19:38 +0000 (10:19 +0000)]
Removed duplicate include of stdio.h

At least on mingw, this doesn't seem to be needed.

7 years agoOSX/cmake: after osl librenew with globals patch, forcing oiio is not longer needed
Jens Verwiebe [Thu, 11 Oct 2012 10:15:37 +0000 (10:15 +0000)]
OSX/cmake: after osl librenew with globals patch, forcing oiio is not longer needed

7 years agoAuto key warning - Stripping down to basics
Joshua Leung [Thu, 11 Oct 2012 09:53:17 +0000 (09:53 +0000)]
Auto key warning - Stripping down to basics

Now just a static icon + text display in corner of view. No blinking. No
red/orange text. No window borders.

7 years agoLimit Distance Constraint - jpbouza Feature Request
Joshua Leung [Thu, 11 Oct 2012 08:26:49 +0000 (08:26 +0000)]
Limit Distance Constraint - jpbouza Feature Request

The Limit Distance constraint is now allowed to use the owner/target space
settings. Previously this wasn't exposed it didn't seem sensible/useful.
However, this can be useful when dealing with dependencies between bones and the
armature gets scaled.

Usage notes:
- It is advised to select the same space for both owner and target, otherwise
the comparisons are meaningless

7 years agostyle cleanup
Campbell Barton [Thu, 11 Oct 2012 03:25:19 +0000 (03:25 +0000)]
style cleanup

7 years agofix [#32829] Crash when making linked Mesh with UV Map local
Campbell Barton [Thu, 11 Oct 2012 00:56:34 +0000 (00:56 +0000)]
fix [#32829] Crash when making linked Mesh with UV Map local

7 years agostyle cleanup:
Campbell Barton [Wed, 10 Oct 2012 23:44:07 +0000 (23:44 +0000)]
style cleanup:

also add helper makefile targets:
* tbz - makes a tar.bz2 of an svn export
* test_style_qtc - outputs style checks in qtc task format.

7 years agoCycles: per-BSDF normal input and new Bump node.
Brecht Van Lommel [Wed, 10 Oct 2012 15:56:43 +0000 (15:56 +0000)]
Cycles: per-BSDF normal input and new Bump node.

Each BSDF node now has a Normal input, which can be used to set a custom normal
for the BSDF, for example if you want to have only bump on one of the layers in
a multilayer material.

The Bump node can be used to generate a normal from a scalar value, the same as
what happens when you connect a scalar value to the displacement output.

Documentation has been updated with the latest changes:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes

Patch by Agustin Benavidez, some implementation tweaks by me.

7 years agoquiet compiler warnings from recent merge.
Campbell Barton [Wed, 10 Oct 2012 14:28:47 +0000 (14:28 +0000)]
quiet compiler warnings from recent merge.

7 years agoCycles: make anistropic BSDF / tangent work without UV map, based on generated
Brecht Van Lommel [Wed, 10 Oct 2012 14:21:58 +0000 (14:21 +0000)]
Cycles: make anistropic BSDF / tangent work without UV map, based on generated
coordinates map to a sphere.

7 years agoworkaround for feedback loop when viewing-selected/all with a locked camera.
Campbell Barton [Wed, 10 Oct 2012 13:36:53 +0000 (13:36 +0000)]
workaround for feedback loop when viewing-selected/all with a locked camera.
the camera could try include its own boundbox in its view.

now just skip the camera if 'All Regions' and lock view option is enabled.

7 years agoGoogle Summer of Code project: "Smoke Simulator Improvements & Fire".
Daniel Genrich [Wed, 10 Oct 2012 13:18:07 +0000 (13:18 +0000)]
Google Summer of Code project: "Smoke Simulator Improvements & Fire".

Documentation & Test blend files:
------------------
http://wiki.blender.org/index.php/User:MiikaH/GSoC-2012-Smoke-Simulator-Improvements

Credits:
------------------
Miika Hamalainen (MiikaH): Student / Main programmer

Daniel Genrich (Genscher): Mentor / Programmer of merged patches from Smoke2 branch
Google: For Google Summer of Code 2012

7 years agoCycles: Anisotropic BSDF enabled, with tangents now computed from the active UV map.
Brecht Van Lommel [Wed, 10 Oct 2012 13:02:20 +0000 (13:02 +0000)]
Cycles: Anisotropic BSDF enabled, with tangents now computed from the active UV map.
It's using the Ward BSDF currently, which has some energy loss so might be a bit
dark. More/better BSDF options can be implemented later.

Patch by Mike Farnsworth, some modifications by me. Currently it's not possible yet
to set a custom tangent, that will follow as part of per-bsdf normals patch.

7 years ago- Ctrl+NumpadDel is now view-selected (all regions), ... was view cursor.
Campbell Barton [Wed, 10 Oct 2012 12:54:36 +0000 (12:54 +0000)]
- Ctrl+NumpadDel is now view-selected (all regions), ... was view cursor.
- Ctrl+Home: is now view-all (all regions).

7 years agofix error changing the view with a lock-camera-to-view on and smooth-view disabled.
Campbell Barton [Wed, 10 Oct 2012 12:30:47 +0000 (12:30 +0000)]
fix error changing the view with a lock-camera-to-view on and smooth-view disabled.

7 years agoadd `All Regions` option to view_all (homekey), de-duplicate functions with view...
Campbell Barton [Wed, 10 Oct 2012 12:22:45 +0000 (12:22 +0000)]
add `All Regions` option to view_all (homekey), de-duplicate functions with view-selected.

7 years agocheck addons are enabled before disabling them (would cause python exceptions when...
Campbell Barton [Wed, 10 Oct 2012 11:37:38 +0000 (11:37 +0000)]
check addons are enabled before disabling them (would cause python exceptions when removing a disabled addon).

7 years agooption for view3d-selected to use all regions (nice for viewing selected in quad...
Campbell Barton [Wed, 10 Oct 2012 11:36:24 +0000 (11:36 +0000)]
option for view3d-selected to use all regions (nice for viewing selected in quad-view),

currently not assigned to any keys.

7 years agominor refactor, move view selected rv3d specific logic into its own static function.
Campbell Barton [Wed, 10 Oct 2012 10:05:56 +0000 (10:05 +0000)]
minor refactor, move view selected rv3d specific logic into its own static function.

7 years agoIts silly to use "verify index" because it will add non existing and remove them...
Ove Murberg Henriksen [Wed, 10 Oct 2012 08:50:56 +0000 (08:50 +0000)]
Its silly to use "verify index" because it will add non existing and remove them afterwards.

7 years agofix error setting quadview when there is no camera in the scene, the view would glitc...
Campbell Barton [Wed, 10 Oct 2012 08:47:53 +0000 (08:47 +0000)]
fix error setting quadview when there is no camera in the scene, the view would glitch/jump when accessing afterwards.

7 years agofix for crash when entering fly mode in a camera view that has no camera (rare but...
Campbell Barton [Wed, 10 Oct 2012 08:46:52 +0000 (08:46 +0000)]
fix for crash when entering fly mode in a camera view that has no camera (rare but possible situation).

7 years agoGraph Editor: Added a filtering option for Drivers mode to only show F-Curves
Joshua Leung [Wed, 10 Oct 2012 08:46:07 +0000 (08:46 +0000)]
Graph Editor: Added a filtering option for Drivers mode to only show F-Curves
with errors

This filtering option is useful when rigging and you want to figure out if any
of your drivers are not functioning, and/or which one(s) are not, so that you
can go through fixing them. It saves you from having to check on each one
individually, or going into the console to try to infer which ones are not
working.

7 years agoChanging clear weight code from "assigning 0" to "removing".
Ove Murberg Henriksen [Wed, 10 Oct 2012 08:29:13 +0000 (08:29 +0000)]
Changing clear weight code from "assigning 0" to "removing".
Its less efficient but better practice.
+ Some style clean.

7 years agoFix #32780: Maya keymap selection issues
Sergey Sharybin [Wed, 10 Oct 2012 08:07:28 +0000 (08:07 +0000)]
Fix #32780: Maya keymap selection issues

Maya keymap used LMB press to select object and also used tweak event
of LMB for border select. This lead to selecting object under the cursor
before border select could start.

This could be pain when working on huge scenes.

Solved by switching selection from LMB press to release.

7 years agoCosmetic: Changed label of the 'Install Addon...' Button to 'Install from File...'
Gaia Clary [Wed, 10 Oct 2012 08:04:04 +0000 (08:04 +0000)]
Cosmetic: Changed label of the 'Install Addon...' Button to 'Install from File...'

7 years agoColor Management: fixed color management-less texture rendering
Sergey Sharybin [Wed, 10 Oct 2012 05:56:49 +0000 (05:56 +0000)]
Color Management: fixed color management-less texture rendering

There was a missing check for whether color management enabled or not when
converting byte textures to linear space.

This commit also fixes wrong texture preview rendering, which was applying
sRGB transform twice, making procedural textures bright. This will make
float textures being previewed dark (in a linear space) but that's how it
used to behave in pre-OCIO color management.

7 years agouse __restrict for string functions args so the compiler can assume they dont overlap.
Campbell Barton [Wed, 10 Oct 2012 04:47:53 +0000 (04:47 +0000)]
use __restrict for string functions args so the compiler can assume they dont overlap.
also avoid comparing int/size_t in for loops.

7 years agorefactor foreachScreen functions for clipping, now the projection clipping flag is...
Campbell Barton [Wed, 10 Oct 2012 04:03:22 +0000 (04:03 +0000)]
refactor foreachScreen functions for clipping, now the projection clipping flag is passed down directly rather then converting the enum into a flag, also fix own recent crash lasso seleting in object mode with pose objects.

7 years agocode cleanup: split `foreach` object data iterator functions out of drawobject.c...
Campbell Barton [Wed, 10 Oct 2012 03:13:02 +0000 (03:13 +0000)]
code cleanup: split `foreach` object data iterator functions out of drawobject.c (since they are used for selection too), into their own file: object_iterators.c

7 years agoobject center selection now uses floats, also fix own error in circle selection in...
Campbell Barton [Wed, 10 Oct 2012 01:54:02 +0000 (01:54 +0000)]
object center selection now uses floats, also fix own error in circle selection in recent refactor.

7 years agorefactor screen foreach functions to accept float[2] arguments rather then int pairs.
Campbell Barton [Wed, 10 Oct 2012 01:22:19 +0000 (01:22 +0000)]
refactor screen foreach functions to accept float[2] arguments rather then int pairs.
overall means less converting between float and int (and short in some cases).

7 years agotransfer weight's now operates on selected vertices (when vertex select is enabled).
Campbell Barton [Tue, 9 Oct 2012 22:55:05 +0000 (22:55 +0000)]
transfer weight's now operates on selected vertices (when vertex select is enabled).

7 years agocode cleanup:
Antony Riakiotakis [Tue, 9 Oct 2012 18:56:02 +0000 (18:56 +0000)]
code cleanup:

Move smart stitch drawing code inside a draw callback and use
ED_region_draw_cb_activate instead of explicitly checking for this
specific operator in the main uv drawing function.

7 years agoCycles: camera motion blur enabled.
Brecht Van Lommel [Tue, 9 Oct 2012 18:37:14 +0000 (18:37 +0000)]
Cycles: camera motion blur enabled.

Still more work needed to get object motion blur ready.

7 years agoGeneralization of node dependency sorting, avoid using the sock->link pointer. This...
Lukas Toenne [Tue, 9 Oct 2012 17:30:33 +0000 (17:30 +0000)]
Generalization of node dependency sorting, avoid using the sock->link pointer. This pointer only works for sockets that follow the standard 1-to-n connectivity (an output can be linked to multiple inputs, an input can only have one connection). Future node trees may implement 1-to-1 or n-to-1 linking.

7 years agoFixed wrong preset settings for motion tracking
Sergey Sharybin [Tue, 9 Oct 2012 16:29:27 +0000 (16:29 +0000)]
Fixed wrong preset settings for motion tracking

7 years agoFix cycles task manager calling pthread_join() twice. I haven't seen any bugs
Brecht Van Lommel [Tue, 9 Oct 2012 14:28:29 +0000 (14:28 +0000)]
Fix cycles task manager calling pthread_join() twice. I haven't seen any bugs
from this but best to fix anyway as it causes undefined behavior. Pointed out
on irc by dslammu, thanks!

7 years agocode cleanup: make header defines more consistent, JOYSENSOR header guard had a typo...
Campbell Barton [Tue, 9 Oct 2012 13:36:42 +0000 (13:36 +0000)]
code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too.

7 years agoBugfix [#32703] elbeem's isSimworldOk() will never return FALSE
Daniel Genrich [Tue, 9 Oct 2012 13:09:03 +0000 (13:09 +0000)]
Bugfix [#32703] elbeem's isSimworldOk() will never return FALSE

Fixed as suggested by Campbell, thank you!

7 years agoBugfix [#32677] Cloth Pinning Does Not Obey Weight Map
Daniel Genrich [Tue, 9 Oct 2012 12:59:20 +0000 (12:59 +0000)]
Bugfix [#32677] Cloth Pinning Does Not Obey Weight Map

Problem occured when having more than one weight map available.

7 years agostyle cleanup: also made functions static
Campbell Barton [Tue, 9 Oct 2012 12:41:37 +0000 (12:41 +0000)]
style cleanup: also made functions static

7 years agoAdding weightpaint transfer tool.
Ove Murberg Henriksen [Tue, 9 Oct 2012 12:25:10 +0000 (12:25 +0000)]
Adding weightpaint transfer tool.
From: https://svn.blender.org/svnroot/bf-blender/branches/meshdata_transfer

Bachelor project at Narvik university collage (Norway).
By Ove M Henriksen (Cyborgmuppet)

Thesis will be published at Cyborgmuppets blender page.

Thanks for letting me participate!

7 years agoRevert part of 51209 -- MOUSEZOOM inversion should be done in lots of other
Sergey Sharybin [Tue, 9 Oct 2012 11:38:42 +0000 (11:38 +0000)]
Revert part of 51209 -- MOUSEZOOM inversion should be done in lots of other
places as well, but it's quite large change to be done before 'a' release.

For now ignore zoom inverse for 2d view to keep things consistent,
would be re-implemented for all areas after this.

7 years agoFix #32824: Color management configuration check was missed on file link/append
Sergey Sharybin [Tue, 9 Oct 2012 11:31:25 +0000 (11:31 +0000)]
Fix #32824: Color management configuration check was missed on file link/append

7 years agoFix based on code review Issue 6347064 meshdata_transfer
Ove Murberg Henriksen [Tue, 9 Oct 2012 11:29:29 +0000 (11:29 +0000)]
Fix based on code review Issue 6347064

7 years agopatch [#31919] limit the number of bone deform weights per vertex. Many game engines...
Campbell Barton [Tue, 9 Oct 2012 10:56:35 +0000 (10:56 +0000)]
patch [#31919] limit the number of bone deform weights per vertex. Many game engines require a limit of 4.
from Kesten Broughton (kestion)

Usage: In weight paint mode, select the mesh to have its weights culled. Click on "Limit Weights" button. A sub-panel will appear "Limit Number of Vertex Weights" with a slider field "Limit" which you can set to the appropriate level. The default level is 4, and it gets executed upon pressing "Limit Weights" so you will need to do an "undo" if your max bone limit is above 4. The checkbox "All Deform Weights" will consider all vertex weights, not just bone deform weights.

7 years agosvn merge ^/trunk/blender -r48592:HEAD
Ove Murberg Henriksen [Tue, 9 Oct 2012 10:53:20 +0000 (10:53 +0000)]
svn merge ^/trunk/blender -r48592:HEAD

7 years agoAutokey warning - trying with a slight "calmer" color
Joshua Leung [Tue, 9 Oct 2012 10:41:51 +0000 (10:41 +0000)]
Autokey warning - trying with a slight "calmer" color

Now it uses the same color used for indicating keyframes instead of using
"error" indications.

7 years agoAutokey warning - Only show for the active region
Joshua Leung [Tue, 9 Oct 2012 10:36:07 +0000 (10:36 +0000)]
Autokey warning - Only show for the active region

In response to some of the feedback, I've taken a second look at the situation
when multiple views are open, and indeed in that situation having it display in
every region and blinking was quite overwhelming (admittedly, I've mainly been
testing on single-view setups). Now it only shows for the region that was used
for initiating the transform.

7 years agoMotion Tracking; expose View All and Center to Current Frame to View menu of graph...
Sergey Sharybin [Tue, 9 Oct 2012 10:33:24 +0000 (10:33 +0000)]
Motion Tracking; expose View All and Center to Current Frame to View menu of graph view

7 years agoMotion Tracking: move keyframe settings to per-tracking object settings
Sergey Sharybin [Tue, 9 Oct 2012 10:33:18 +0000 (10:33 +0000)]
Motion Tracking: move keyframe settings to per-tracking object settings

7 years agoStyle cleanup - replace #define lists with enums
Joshua Leung [Tue, 9 Oct 2012 10:20:25 +0000 (10:20 +0000)]
Style cleanup - replace #define lists with enums

7 years agoOSX zoom pinch was using inverted direction
Sergey Sharybin [Tue, 9 Oct 2012 09:38:05 +0000 (09:38 +0000)]
OSX zoom pinch was using inverted direction

7 years agoAnother refactor for 3D view's edit Transform panel. Main changes:
Bastien Montagne [Tue, 9 Oct 2012 09:14:37 +0000 (09:14 +0000)]
Another refactor for 3D view's edit Transform panel. Main changes:
*Get rid of the magic numbers for median arrays, use defines instead, should make things a bit more clear and easy to edit (though there are still a bit of "array magic" on median here and there).
*Restore and extend use of RNA prop when a single (control)point of curve or lattice is selected, to allow keyframing (was added by sergey for curve radius in r41494, see [#29122], and reverted by myself in previous refactor r44599).

7 years agoRNA minor fixes:
Bastien Montagne [Tue, 9 Oct 2012 08:40:20 +0000 (08:40 +0000)]
RNA minor fixes:
*Bezier points' softbody weight was called just "weight", when it is "weight_softbody" for NURBS ones, made it the same!
*Added "weight_softbody" to Lattice points as well.

7 years agopatch [#31709] Text editor: scroll margin column along with text
Campbell Barton [Tue, 9 Oct 2012 06:15:07 +0000 (06:15 +0000)]
patch [#31709] Text editor: scroll margin column along with text
by Sebastian Nell (codemanx)

The margin ignored horizontal scrolling.

7 years agorename BGE KX_GameObject attrs
Campbell Barton [Tue, 9 Oct 2012 06:03:57 +0000 (06:03 +0000)]
rename BGE KX_GameObject attrs
* group -> group_parent
* members -> group_children

so its more clear what direction the relationship is.

7 years agopatch [#31875] Patch to get scene access through a game object
Campbell Barton [Tue, 9 Oct 2012 05:58:09 +0000 (05:58 +0000)]
patch [#31875] Patch to get scene access through a game object
from Jay Parker (battery)

7 years agofix for r51198, text wasn't flashing (gcc4.7, 64bit linux)
Campbell Barton [Tue, 9 Oct 2012 03:44:29 +0000 (03:44 +0000)]
fix for r51198, text wasn't flashing (gcc4.7, 64bit linux)

7 years agocode cleanup: quiet -Wreorder
Campbell Barton [Tue, 9 Oct 2012 03:14:38 +0000 (03:14 +0000)]
code cleanup: quiet -Wreorder

7 years agoapi changelog for 2.64 and 2.63 (which I missed last release)
Campbell Barton [Tue, 9 Oct 2012 01:07:08 +0000 (01:07 +0000)]
api changelog for 2.64 and 2.63 (which I missed last release)

7 years agoMade the autokeying warning optional by adding a user pref for this
Joshua Leung [Tue, 9 Oct 2012 00:59:40 +0000 (00:59 +0000)]
Made the autokeying warning optional by adding a user pref for this

By default, this is enabled, so that newbie users who are most likely to be
caught short by this will get the benefits of this option, while seasoned
animators are likely to know where to go to turn things off (i.e. the scratch-
an-itch urge is quite a powerful motivating force...)

7 years agoAnd more UI messages fixes...
Bastien Montagne [Mon, 8 Oct 2012 21:03:35 +0000 (21:03 +0000)]
And more UI messages fixes...

7 years agoMinor UI messages typo fixes.
Bastien Montagne [Mon, 8 Oct 2012 20:25:07 +0000 (20:25 +0000)]
Minor UI messages typo fixes.