9 years agosvn merge ^/trunk/blender -r43085:43092
Campbell Barton [Tue, 3 Jan 2012 07:33:11 +0000 (07:33 +0000)]
svn merge ^/trunk/blender -r43085:43092

9 years agoRemesh Modifier:
Thomas Dinges [Tue, 3 Jan 2012 04:03:41 +0000 (04:03 +0000)]
Remesh Modifier:
* Fix for Campbell's "option to build without remesh modifier for cmake and scons" commit, this broke scons!

9 years agoerror in recent commit - disallow selecting hidden verts.
Campbell Barton [Tue, 3 Jan 2012 02:45:03 +0000 (02:45 +0000)]
error in recent commit - disallow selecting hidden verts.

9 years agofix [#29761] Texture painting with interpolation ignores use alpha
Campbell Barton [Tue, 3 Jan 2012 02:26:32 +0000 (02:26 +0000)]
fix [#29761] Texture painting with interpolation ignores use alpha
reporter - Shawn Zilbert (enigmatic) included patch.

9 years agosvn merge ^/trunk/blender -r43062:43085
Campbell Barton [Tue, 3 Jan 2012 02:16:52 +0000 (02:16 +0000)]
svn merge ^/trunk/blender -r43062:43085

9 years agoBugfix [#29629] UV animation stops working forever if Edit mode entered
Joshua Leung [Tue, 3 Jan 2012 02:11:11 +0000 (02:11 +0000)]
Bugfix [#29629] UV animation stops working forever if Edit mode entered
Thanks Sergey for the patch!

This bug, and many like it would arise because at some point a F-Curve would get
detected as being unable to be resolved (when trying to display its name in an
Animation Editor), so gets tagged as being "disabled". It was assumed that such
channels usually belonged to deleted data or stuff that wouldn't be able to be
resolved again for a long time. However, in cases like UV settings, they may
only be unavailable temporarily.

As a compromise, this patch clears this disabled flag if a channel is found to
be now working when (in the process of finding out its name when redrawing an
Animation Editor) it can be resolved, in the same place where the disabling was
taking place. This doesn't work fullproof in tests I've done, but should be
nicer than before.

9 years agoFix #29695: cycles particle emitter not being properly hidden.
Brecht Van Lommel [Mon, 2 Jan 2012 19:44:13 +0000 (19:44 +0000)]
Fix #29695: cycles particle emitter not being properly hidden.

9 years agoFix #29740: missing cycles viewport update with animated node socket values.
Brecht Van Lommel [Mon, 2 Jan 2012 19:44:07 +0000 (19:44 +0000)]
Fix #29740: missing cycles viewport update with animated node socket values.

9 years agoRemove some silly variable copies that stuck around from a previous refactor.
Nicholas Bishop [Mon, 2 Jan 2012 19:01:16 +0000 (19:01 +0000)]
Remove some silly variable copies that stuck around from a previous refactor.

9 years agoreplace:
Campbell Barton [Mon, 2 Jan 2012 17:15:24 +0000 (17:15 +0000)]
  CTX_data_pointer_get_type(C, "object", &RNA_Object).data
with api call:

... since getting the context object is such a common operation.

9 years agoweight paint buttons now work in weight paint vertex select mode
Campbell Barton [Mon, 2 Jan 2012 16:59:46 +0000 (16:59 +0000)]
weight paint buttons now work in weight paint vertex select mode

9 years agoFix #29746: cycles crash with border render.
Brecht Van Lommel [Mon, 2 Jan 2012 16:20:18 +0000 (16:20 +0000)]
Fix #29746: cycles crash with border render.

9 years agopy scripts - replace bad uses of len(),
Campbell Barton [Mon, 2 Jan 2012 16:18:39 +0000 (16:18 +0000)]
py scripts - replace bad uses of len(),
checking if the collection is True is faster since it only checks if it has at least one item, rather then going over all items.

9 years agoFix #29755: cycles crash with array modifier that can produce material indices
Brecht Van Lommel [Mon, 2 Jan 2012 15:51:49 +0000 (15:51 +0000)]
Fix #29755: cycles crash with array modifier that can produce material indices
that are out of bounds.

9 years agonicer string delimiter handling for Ctrl+Left/Right arrows, py console could use...
Campbell Barton [Mon, 2 Jan 2012 15:27:01 +0000 (15:27 +0000)]
nicer string delimiter handling for Ctrl+Left/Right arrows, py console could use this functon too.

9 years agoFix #29738: missing includes in RNA, patch by Dan Eicher.
Brecht Van Lommel [Mon, 2 Jan 2012 13:45:42 +0000 (13:45 +0000)]
Fix #29738: missing includes in RNA, patch by Dan Eicher.

9 years agodont save MFace's from BMesh, this means they stay used but only for tessface cache.
Campbell Barton [Mon, 2 Jan 2012 12:37:58 +0000 (12:37 +0000)]
dont save MFace's from BMesh, this means they stay used but only for tessface cache.
also saves on undo memory and disk space.

9 years agoFixes two crashers for games, with GHOST under SDL:
Alex Fraser [Mon, 2 Jan 2012 12:35:06 +0000 (12:35 +0000)]
Fixes two crashers for games, with GHOST under SDL:
- Fixes SDL fullscreen mode for game engine (blenderplayer). Mode switching (resolution changes) not supported yet though.
- Fixes embedded game engine exit.
See patch tracker [#29748].

9 years agoMode switching for GHOST under X11: adds the ability to change screen resolutions...
Alex Fraser [Mon, 2 Jan 2012 12:25:14 +0000 (12:25 +0000)]
Mode switching for GHOST under X11: adds the ability to change screen resolutions in the blenderplayer on GNU/Linux.
Code ported from Quake 2.

9 years agoAdded OpenMP multithreading for SPH particle systems.
Alex Fraser [Mon, 2 Jan 2012 12:10:50 +0000 (12:10 +0000)]
Added OpenMP multithreading for SPH particle systems.

9 years agoSPH particle simulation fixes:
Alex Fraser [Mon, 2 Jan 2012 11:46:02 +0000 (11:46 +0000)]
SPH particle simulation fixes:
 - Using correct frame to update particle system tree for SPH simulation (i.e. psys_update_particle_bvhtree(psys, cfra)).
 - Increased SPH neighbour count to 512 - this greatly reduces BVH tree search bias, and makes simulations more symmetrical.
Adaptive time step improvements:
 - Fix for relative velocities based on previous state (fixes fast-moving particle clusters).
 - Only reporting on element size once per time step. Prevents incorrect Courant number from being calculated when using multiple-step integration.

9 years agoslice and iterator access for matrix.col/row so you can do...
Campbell Barton [Mon, 2 Jan 2012 09:04:37 +0000 (09:04 +0000)]
slice and iterator access for matrix.col/row so you can do...

  a, b = mat.col[0:2]


  for a in mat.col: ...

9 years agofix for crash in the modifier stack when applying a deform modifier after a construct...
Campbell Barton [Mon, 2 Jan 2012 06:53:09 +0000 (06:53 +0000)]
fix for crash in the modifier stack when applying a deform modifier after a constructive modifier, also sync minor edits with trunk.

9 years agoEdit BMesh --> Mesh conversion code was using its own face filling functions, replace...
Campbell Barton [Mon, 2 Jan 2012 03:52:10 +0000 (03:52 +0000)]
Edit BMesh --> Mesh conversion code was using its own face filling functions, replace this with a call to mesh_recalcTesselation() once everything else is converted.

gives an overall 3x speedup running bmesh_to_mesh_exec() on suzzane subsurf level 5 (applied).

also removes duplicate code.

9 years agopicky formatting edits
Campbell Barton [Mon, 2 Jan 2012 03:27:08 +0000 (03:27 +0000)]
picky formatting edits

9 years agosvn merge ^/trunk/blender -r43033:43062
Campbell Barton [Mon, 2 Jan 2012 02:57:36 +0000 (02:57 +0000)]
svn merge ^/trunk/blender -r43033:43062

9 years agoremove Id's that crept in
Campbell Barton [Mon, 2 Jan 2012 02:13:31 +0000 (02:13 +0000)]
remove Id's that crept in

9 years agoleft out one tiny word...
Tom Musgrove [Sun, 1 Jan 2012 22:23:08 +0000 (22:23 +0000)]
left out one tiny word...

9 years agopart of line missing in Jens commit, this fixes compile on non Apple platforms, thank...
Tom Musgrove [Sun, 1 Jan 2012 21:19:40 +0000 (21:19 +0000)]
part of line missing in Jens commit, this fixes compile on non Apple platforms, thanks to Lockal in IRC for pointing it out

9 years agoOSX: fix compile by conditional unsupported flags
Jens Verwiebe [Sun, 1 Jan 2012 16:46:08 +0000 (16:46 +0000)]
OSX: fix compile by conditional unsupported flags

9 years agoFix [#29556] shrinkwrap generates spikes if vertices fall exactly on the edge
Bastien Montagne [Sun, 1 Jan 2012 16:37:01 +0000 (16:37 +0000)]
Fix [#29556] shrinkwrap generates spikes if vertices fall exactly on the edge

bvhtree_ray_tri_intersection now using isect_ray_tri_epsilon_v3 with FLT_EPSILON. All devs I asked (incuding ones in physics/painting areas) were rather OK with this change, and better to do it now, with more than one month to detect regressions, if any!

9 years agoFixed names of VertexWeight modifiers RNA structs, in RNA_access.h (probably forgotte...
Bastien Montagne [Sun, 1 Jan 2012 16:09:32 +0000 (16:09 +0000)]
Fixed names of VertexWeight modifiers RNA structs, in RNA_access.h (probably forgotten when they were renamed, before the merge in trunk, and was never noticed as they are not used...).

Also removed the $ID$ from remesh modifier header, and quited a gcc warning.

9 years agouse `props` all over for operator properties vars
Campbell Barton [Sun, 1 Jan 2012 13:09:58 +0000 (13:09 +0000)]
use `props` all over for operator properties vars

9 years ago__func__ define for msvc since its not c99 compat
Campbell Barton [Sun, 1 Jan 2012 10:27:53 +0000 (10:27 +0000)]
__func__ define for msvc since its not c99 compat

9 years agorna_xml module - write colors as hexadecimal values, also swap import/export order...
Campbell Barton [Sun, 1 Jan 2012 10:05:04 +0000 (10:05 +0000)]
rna_xml module - write colors as hexadecimal values, also swap import/export order of key config buttons, since they didnt match other uses where import is first.

9 years agorna api - set hard min/max for colors which are float properties but internally use...
Campbell Barton [Sun, 1 Jan 2012 09:39:43 +0000 (09:39 +0000)]
rna api - set hard min/max for colors which are float properties but internally use chars to 0/1.

9 years agouse __func__ for makesrna.c error prints rather then the function name (no functional...
Campbell Barton [Sun, 1 Jan 2012 09:19:22 +0000 (09:19 +0000)]
use __func__ for makesrna.c error prints rather then the function name (no functional changes)

9 years agopep8 edits
Campbell Barton [Sun, 1 Jan 2012 08:52:54 +0000 (08:52 +0000)]
pep8 edits

9 years agotheme import/export - uses generic rna_xml py module.
Campbell Barton [Sun, 1 Jan 2012 08:12:51 +0000 (08:12 +0000)]
theme import/export - uses generic rna_xml py module.

9 years agoadd the ability to read from XML into RNA for rna_xml module
Campbell Barton [Sun, 1 Jan 2012 08:09:30 +0000 (08:09 +0000)]
add the ability to read from XML into RNA for rna_xml module

9 years agoinitial rna <> xml module, copied from, not yet functional
Campbell Barton [Sun, 1 Jan 2012 04:37:08 +0000 (04:37 +0000)]
initial rna <> xml module, copied from, not yet functional

9 years agoFix blenderplayer build (by adding missing bad level call stubs)
Andrew Wiggin [Sat, 31 Dec 2011 17:46:42 +0000 (17:46 +0000)]
Fix blenderplayer build (by adding missing bad level call stubs)

9 years agoOpenexr path change for scons (win)
Alexander Kuznetsov [Sat, 31 Dec 2011 17:15:47 +0000 (17:15 +0000)]
Openexr path change for scons (win)

9 years agoCycles code refactoring: change displace kernel into more generic shader
Brecht Van Lommel [Sat, 31 Dec 2011 15:18:13 +0000 (15:18 +0000)]
Cycles code refactoring: change displace kernel into more generic shader
evaluate kernel, added background shader evaluate.

9 years agoFix [#29728] Explode Modifier Causes Crash.
Bastien Montagne [Sat, 31 Dec 2011 15:10:38 +0000 (15:10 +0000)]
Fix [#29728] Explode Modifier Causes Crash.

The problem was in fact in recent BLI_edgehash changes: a typo in the new macro EDGE_ORD made v0 > v1, instead of v0 < v1. This caused the bug in explode modifier, which (ab)uses that ordering feature a bit…

9 years agoremesh now working for bmesh
Campbell Barton [Sat, 31 Dec 2011 12:58:03 +0000 (12:58 +0000)]
remesh now working for bmesh

9 years agosvn merge ^/trunk/blender -r43009:43033
Campbell Barton [Sat, 31 Dec 2011 12:03:36 +0000 (12:03 +0000)]
svn merge ^/trunk/blender -r43009:43033

9 years agoFix for compilation error when compiling dualcon with mingw
Sergey Sharybin [Sat, 31 Dec 2011 11:08:04 +0000 (11:08 +0000)]
Fix for compilation error when compiling dualcon with mingw

9 years agoCode cleanup: do not use check for nan when doing check for finite due to
Sergey Sharybin [Sat, 31 Dec 2011 11:03:32 +0000 (11:03 +0000)]
Code cleanup: do not use check for nan when doing check for finite due to
finite() would be FALSE in case of nan to.

Thanks to Campbell for this information.

9 years agoFix: Material "Vertex Color Light" option didn't apply vertex alpha.
Miika Hamalainen [Sat, 31 Dec 2011 10:46:21 +0000 (10:46 +0000)]
Fix: Material "Vertex Color Light" option didn't apply vertex alpha.

9 years agoDynamic Paint:
Miika Hamalainen [Sat, 31 Dec 2011 10:28:36 +0000 (10:28 +0000)]
Dynamic Paint:
* Fix: Smudge and brush velocity settings didn't work for "image sequence" surfaces unless any paint effect was enabled.
* Adjusted some property ranges.

9 years agoChanging KX_FontObject to look for a "Text" game property instead of a "text" propert...
Daniel Stokes [Sat, 31 Dec 2011 09:37:19 +0000 (09:37 +0000)]
Changing KX_FontObject to look for a "Text" game property instead of a "text" property to match with bitmap font usage.

9 years agoMinor code cleanup after resolving conflicts
Sergey Sharybin [Sat, 31 Dec 2011 09:30:39 +0000 (09:30 +0000)]
Minor code cleanup after resolving conflicts

9 years agoTag object with object solver constraint to recalc when changing value of
Sergey Sharybin [Sat, 31 Dec 2011 08:26:59 +0000 (08:26 +0000)]
Tag object with object solver constraint to recalc when changing value of
tracking object scale.

9 years agoDo not set scene's camera on camera solving and cursor snapping
Sergey Sharybin [Sat, 31 Dec 2011 08:26:32 +0000 (08:26 +0000)]
Do not set scene's camera on camera solving and cursor snapping

9 years agofix [#29734] Crash after bpy.ops.file.direrectory_new()
Campbell Barton [Sat, 31 Dec 2011 03:52:07 +0000 (03:52 +0000)]
fix [#29734] Crash after bpy.ops.file.direrectory_new()

9 years agofix [#29735] Blender crashes with ACCESS_VIOLATION when snapping cursor to camera
Campbell Barton [Sat, 31 Dec 2011 03:45:31 +0000 (03:45 +0000)]
fix [#29735] Blender crashes with ACCESS_VIOLATION when snapping cursor to camera

9 years agooption to build without remesh modifier for cmake and scons
Campbell Barton [Sat, 31 Dec 2011 03:34:44 +0000 (03:34 +0000)]
option to build without remesh modifier for cmake and scons

9 years agosvn merge ^/trunk/blender -r42991:43009
Campbell Barton [Sat, 31 Dec 2011 03:07:14 +0000 (03:07 +0000)]
svn merge ^/trunk/blender -r42991:43009

9 years agoworkaround for error building with clang and quiet some warnings building without...
Campbell Barton [Sat, 31 Dec 2011 03:01:18 +0000 (03:01 +0000)]
workaround for error building with clang and quiet some warnings building without libmv.

9 years agominor style edits to space_clip & unused var
Campbell Barton [Sat, 31 Dec 2011 02:40:33 +0000 (02:40 +0000)]
minor style edits to space_clip & unused var

9 years agoSmall tweaks from Zafio for the remesh modifier icon
Nicholas Bishop [Fri, 30 Dec 2011 23:10:23 +0000 (23:10 +0000)]
Small tweaks from Zafio for the remesh modifier icon

9 years agoPatch is partially made by Pelle Johnsen. Thanks!
Alexander Kuznetsov [Fri, 30 Dec 2011 22:10:48 +0000 (22:10 +0000)]
Patch is partially made by Pelle Johnsen. Thanks!
This patch enables search for specific libraries for vc2010 using "set_lib_path" macro
If *x* library or path exists in lib/win___/vc2010/*x* , vc2010 will use it. If not, compiler will use standard libraries.
It can be easily extended to gcc.

The function is enabled for:

The different libraries are needed for different compilers because C++ was used. There is no standard for lib's C++ structure/functions' names.

Actual libs will follow

9 years agoFix for Remesh Modifier:
Thomas Dinges [Fri, 30 Dec 2011 21:29:02 +0000 (21:29 +0000)]
Fix for Remesh Modifier:
* Remesh Icon was missing in the outliner.

9 years agoAdd remesh modifier (dual contouring).
Nicholas Bishop [Fri, 30 Dec 2011 21:11:40 +0000 (21:11 +0000)]
Add remesh modifier (dual contouring).

This patch adds a new remeshing modifier. The algorithm is based on
the paper "Dual Contouring of Hermite Data", and the implementation
was contributed to Blender by Dr. Tao Ju.

The contributed code is in intern/dualcon, and was modified to compile
under gcc and work on 64-bit systems. Files not needed for Blender
were removed and a small C wrapper was added in order to interface it
with Blender. The rest of the patch is just standard modifier stuff.

Reviewed by Sergey, code review link:

The remesh icon was contributed by Zafio:
Thanks to everyone in that thread for the icon proposals and

Documentation and examples on the Blender wiki:

In case the history is needed for anything, check the remesh-modifier
branch of this git repository:

9 years agoDisable markers when doing frame-by-frame tracking and tracker library returns failure
Sergey Sharybin [Fri, 30 Dec 2011 18:15:44 +0000 (18:15 +0000)]
Disable markers when doing frame-by-frame tracking and tracker library returns failure

9 years agoObject tracking integration
Sergey Sharybin [Fri, 30 Dec 2011 18:06:02 +0000 (18:06 +0000)]
Object tracking integration

This commits merges object tracking implementation from tomato branch.

Summarized changes from branch:

- Added list of objects to be tracked. Default there's only one object called
  "Camera" which is used for solving camera motion. Other objects can be added
  and each of them will have it;s own list of tracks. Only one object can be used
  for camera solving at this moment.
- Added new constraint called "Object Tracking" which makes oriented object be
  moving in the save way as solved object motion.
- Scene orientation tools can be used for orienting object to bundles.
- Object has got scale to define "depth" in camera space.
- All tools which works with list of tracks or reconstruction data now
  gets that lists from active editing object.
- All objects and their tracking data are available via python api.
- Improvements in witness cameras workflow,

9 years agopatch [#29726] Enable looping with Follow Path constraint and cyclic curves. by...
Campbell Barton [Fri, 30 Dec 2011 14:52:03 +0000 (14:52 +0000)]
patch [#29726] Enable looping with Follow Path constraint and cyclic curves.   by Peter Amstutz (tetron)

9 years agoColor management: add "Color Unpremultiply" option for images and render settings.
Brecht Van Lommel [Fri, 30 Dec 2011 14:17:11 +0000 (14:17 +0000)]
Color management: add "Color Unpremultiply" option for images and render settings.
For premultiplied alpha images, this makes any color space conversion for the image
or render output work on color without alpha multiplied in.

This is typically useful to avoid fringing when the image was or will be composited
over a light background. If the image will be composited over a black background on
the other hand, leaving this option off will give correct results.

In an ideal world, there should never be any color space conversion on images with
alpha, since it's undefined what to do then, but in practice it's useful to have
this option.

Patch by Troy Sobotka, with changes by me.

9 years agouse PyUnicode_From_STR_String in the game engine in more places.
Campbell Barton [Fri, 30 Dec 2011 12:44:16 +0000 (12:44 +0000)]
use PyUnicode_From_STR_String in the game engine in more places.

9 years agocucumber merge, multiline font object:
Dalai Felinto [Fri, 30 Dec 2011 12:28:51 +0000 (12:28 +0000)]
cucumber merge, multiline font object:
revisions: 38384,38387,38403,38404,38407,42997,42998

#42998 by dfelinto
BGE Font Object - fix for offset
(scaling also has to be taken into account here)

#42997 by dfelinto
Font Object Multiline fix.
The offset was totally wrong when object had scale[1] != 1

#38407 by kupoman
Changing the "text" property of a KX_FontObject now changes the text. This allows for control of a FontObject through logic bricks.

#38404 by kupoman
KX_FontObject now supports the x and y offset options.

#38403 by kupoman
KX_FontObject now makes use of the font's line spacing option, and correctly accounts for rotation and font size when applying the spacing.

#38387 by kupoman
The KX_FontObject text attribute is working again.

#38384 by kupoman
Primitive support for the new line character added to KX_FontObjects. The line spacing is fixed, and does not work when the FontObject is rotated. Also, the text attribute has been temporarily disabled, as it needs some updating to support the multiline changes.

9 years agoformatting edits, missed these last commit.
Campbell Barton [Fri, 30 Dec 2011 11:49:58 +0000 (11:49 +0000)]
formatting edits, missed these last commit.

9 years agofix [#29686] Weight paint paints when it shouldn't
Campbell Barton [Fri, 30 Dec 2011 11:37:54 +0000 (11:37 +0000)]
fix [#29686] Weight paint paints when it shouldn't

disallow painting when active group is locked

9 years agopatch from Jason Hays
Campbell Barton [Fri, 30 Dec 2011 11:31:48 +0000 (11:31 +0000)]
patch from Jason Hays
Locking only redistributes or restricts weights when using bone groups.
So, in addition to adding a NULL check to my last bit of code, I made
has_locked_group() check for bone groups.

9 years agoCamera tracking: improvements of track preview widget
Sergey Sharybin [Fri, 30 Dec 2011 10:20:29 +0000 (10:20 +0000)]
Camera tracking: improvements of track preview widget

- Enable bicybic filtering fir image displayed in track preview
- Option to show grayscale content of track preview
- When some channels are disabled, display exactly the same
  content of preview image which is sending to tracker library.

Merged from tomato branch using command:
    svn merge -r42382:42383 -r42384:42385 -r42394:42395 \
    -r42397:42398 -r42398:42399 -r42406:42407 \
-r42410:42411 -r42417:42418 -r42471:42472 \

9 years agosvn merge ^/trunk/blender -r42973:42991
Campbell Barton [Fri, 30 Dec 2011 09:23:06 +0000 (09:23 +0000)]
svn merge ^/trunk/blender -r42973:42991

9 years agoFixed low boundary when detecting frames range for camera solver
Sergey Sharybin [Fri, 30 Dec 2011 08:40:36 +0000 (08:40 +0000)]
Fixed low boundary when detecting frames range for camera solver

9 years agocheck for presets in addons dirs. this way addons can install their own presets too.
Campbell Barton [Fri, 30 Dec 2011 08:39:40 +0000 (08:39 +0000)]
check for presets in addons dirs. this way addons can install their own presets too.

9 years agoFix #29729: Blender crashes when camera solving with a disabled marker
Sergey Sharybin [Fri, 30 Dec 2011 08:34:00 +0000 (08:34 +0000)]
Fix #29729: Blender crashes when camera solving with a disabled marker

Stupid mistake in index of last marker when detecting frames bounds

9 years agostyle edits for function declarations
Campbell Barton [Fri, 30 Dec 2011 07:55:15 +0000 (07:55 +0000)]
style edits for function declarations

9 years agominor dna header cleanup
Campbell Barton [Fri, 30 Dec 2011 07:25:49 +0000 (07:25 +0000)]
minor dna header cleanup

9 years agoPyAPI - remove Matrix.row_size / col_size. these were rather awkwardly named, but...
Campbell Barton [Fri, 30 Dec 2011 06:43:17 +0000 (06:43 +0000)]
PyAPI - remove Matrix.row_size / col_size. these were rather awkwardly named, but its more clear to use len().

mat.col_size --> len(mat.row)
mat.row_size --> len(mat.col)

9 years agoweight paint - fix for own error in r42986, also avoid getting unified settings for...
Campbell Barton [Fri, 30 Dec 2011 05:16:28 +0000 (05:16 +0000)]
weight paint - fix for own error in r42986, also avoid getting unified settings for each weight.

9 years agoimprovement to how weight paint blur works
Campbell Barton [Fri, 30 Dec 2011 04:38:45 +0000 (04:38 +0000)]
improvement to how weight paint blur works
* the accumulated blur weight now takes into account how far verts are from the brush, giving more even results
* verts where the weight wasnt found were being ignored, now treat them as zero weight verts.

9 years agoget the brush size at before applying each brush step, saves unified brush settings...
Campbell Barton [Fri, 30 Dec 2011 03:50:04 +0000 (03:50 +0000)]
get the brush size at before applying each brush step, saves unified brush settings lookups per vertex/face-corner.

also use math functions for calc_vp_strength(), and project the vertices as floats rather then ints to get better accuracy, otherwise no functional changes.

9 years agowhile checking weight paint code noticed that unified brush functions loop over the...
Campbell Barton [Fri, 30 Dec 2011 03:43:39 +0000 (03:43 +0000)]
while checking weight paint code noticed that unified brush functions loop over the scenes to get the flag.
* this loop is called multiple times per vertex (not addressed in this commit)
* functions like brush_use_size_pressure(), brush_use_size_pressure() called unified_settings() twice when they didnt need to.

looks like this code cant work right with multiple scenes, added a comment on this - but at least avoid calling unified_settings() multiple times in single functions.

9 years agominor edits to weight paint
Campbell Barton [Fri, 30 Dec 2011 02:16:07 +0000 (02:16 +0000)]
minor edits to weight paint
* store the active vertex group (avoid doing ob->actdef-1 for every vertex)
* ensure the active vertex group isn't less then 0.

9 years agoFix: cycles camera dof object with non-uniform scale gave incorrect distance.
Brecht Van Lommel [Thu, 29 Dec 2011 23:34:25 +0000 (23:34 +0000)]
Fix: cycles camera dof object with non-uniform scale gave incorrect distance.

9 years agoFix #29687: Normal bake from multires gives distorted results.
Sergey Sharybin [Thu, 29 Dec 2011 16:05:09 +0000 (16:05 +0000)]
Fix #29687: Normal bake from multires gives distorted results.

It is just a limitation of multires baker which doesn't deal correct with
baking to subdivision level 0. It was supposed to work with levels on which
sculpt data is affecting on mesh, so interpolation between grids works correct.

Fully accurate baking in this case will need raycasting stuff which will make
it much slower and will remove main benefit of regular baker -- speed and
low memory usage.
Another option would be to make multires apply sculpting data on level 0,
but it's not related at baking at all and has got it's own difficulties.

9 years agoFix #29718: anchored stroke with image-texture --- strange behaviour
Sergey Sharybin [Thu, 29 Dec 2011 14:57:15 +0000 (14:57 +0000)]
Fix #29718: anchored stroke with image-texture --- strange behaviour

Bug was caused by refactoring in rev41470

9 years agopy - fix for error which made enums not through errors when assigned non string types
Campbell Barton [Thu, 29 Dec 2011 14:46:26 +0000 (14:46 +0000)]
py - fix for error which made enums not through errors when assigned non string types

9 years agoAdd code to make knife cut through whole mesh optionally.
Howard Trickey [Thu, 29 Dec 2011 13:43:59 +0000 (13:43 +0000)]
Add code to make knife cut through whole mesh optionally.
- only cuts through when the occlude geometry button is unpushed,
  else the old behavior
- doesn't add points in middle of occluded faces yet, so will not
  make partial cuts or hole cuts in occluded faces; for best
  results, start and finish cuts completely outside the mesh
- also made slight improvement to behavior when starting cut
  off the model
- a small refactor: added knife_add_to_vert_edges for code
  used a number of times

9 years agopossible fix for [#29708] Crashes when Rendering Cross Dissolve + XVID Codec
Campbell Barton [Thu, 29 Dec 2011 13:12:40 +0000 (13:12 +0000)]
possible fix for [#29708] Crashes when Rendering Cross Dissolve + XVID Codec

was calling memcpy with both src and dst args were the same pointer.

9 years agosvn merge ^/trunk/blender -r42967:42973
Campbell Barton [Thu, 29 Dec 2011 12:17:45 +0000 (12:17 +0000)]
svn merge ^/trunk/blender -r42967:42973

9 years agouse math functions for customdata interpolation funcs
Campbell Barton [Thu, 29 Dec 2011 11:18:12 +0000 (11:18 +0000)]
use math functions for customdata interpolation funcs

9 years agoRemove totally crappy and not used operator FONT_OT_buffer_paste
Sergey Sharybin [Thu, 29 Dec 2011 10:02:42 +0000 (10:02 +0000)]
Remove totally crappy and not used operator FONT_OT_buffer_paste

9 years agominor speedup to CDDM_merge_verts (called by mirror)
Campbell Barton [Thu, 29 Dec 2011 09:41:31 +0000 (09:41 +0000)]
minor speedup to CDDM_merge_verts (called by mirror)
* was doing 2 edge hash lookups, where only 1 was needed.
* was checking MLoop verts and edges if they were -1, when they are never set to -1

9 years agobmesh mirror modifier cleanup
Campbell Barton [Thu, 29 Dec 2011 09:15:06 +0000 (09:15 +0000)]
bmesh mirror modifier cleanup
* vertex map was a dynamicly realloc'd array when the final size was known, use a fixed array instead.
* vertex map was being calculated even when not used.
* face tesselation was being called twice.
* an unused deform group array was being created.

9 years agobmesh mirror modifier wasn't doing UV mirror at all.
Campbell Barton [Thu, 29 Dec 2011 07:29:44 +0000 (07:29 +0000)]
bmesh mirror modifier wasn't doing UV mirror at all.

9 years agosvn merge ^/trunk/blender -r42957:42967
Campbell Barton [Thu, 29 Dec 2011 06:44:51 +0000 (06:44 +0000)]
svn merge ^/trunk/blender -r42957:42967