blender.git
7 years agofix [#30623] user-defined render presets bug
Campbell Barton [Wed, 21 Mar 2012 22:29:49 +0000 (22:29 +0000)]
fix [#30623] user-defined render presets bug

this report exposed multiple bugs in blender when using a non utf8 compatible home directory.

- bpy.utils.script_paths() would crash when homedir wasn't utf8 (reported bug)
- PyC_DefaultNameSpace() - would raise an error when running when __file__ was non utf8.
- preset filepath property was not set to accept non utf8.
- bpy.paths.display_name would raise an error on non utf8 paths, (used for preset draw)

7 years agoFix #30504 selecting self-intersecting face loop won't work correctly.
Antony Riakiotakis [Wed, 21 Mar 2012 21:40:42 +0000 (21:40 +0000)]
Fix #30504 selecting self-intersecting face loop won't work correctly.

Added generic secondary hash to walker. In faceloop select it is used to remember if edge has been previously visited, in addition to the hash used for faces. This solves the case where walker stops if it finds an already added face.

7 years agofix issue with own recent commit - was accessing freed 'wm' on loading files.
Campbell Barton [Wed, 21 Mar 2012 21:01:58 +0000 (21:01 +0000)]
fix issue with own recent commit - was accessing freed 'wm' on loading files.

7 years ago== Sequencer ==
Peter Schlaile [Wed, 21 Mar 2012 18:02:29 +0000 (18:02 +0000)]
== Sequencer ==

This adds movieclip input support to the sequencer, thereby making
undistorted and stabilized footage available without a seperate render step.

Also: removes some old cruft code from the sequencer:

* new_tstripdata wasn't used anymore
* StripElems were allocated for SCENE strips on full length, wasting memory
  Added a comment, that hopefully makes things a little bit clearer:
  StripElems are *only* usefull for MOVIE + IMAGE strips for all other strip
  types one can set this pointer to NULL. (If that should cause otherwise
  problems, then the code that doesn't check for NULL is to blame!)

7 years agoFix for crash on selecting loop in cases when some edges aren't connected to any...
Sergey Sharybin [Wed, 21 Mar 2012 17:34:31 +0000 (17:34 +0000)]
Fix for crash on selecting loop in cases when some edges aren't connected to any faces.

7 years agoUse linear interpolation for intersecting tracks when joining them together.
Sergey Sharybin [Wed, 21 Mar 2012 17:21:27 +0000 (17:21 +0000)]
Use linear interpolation for intersecting tracks when joining them together.

7 years agoTracking objects were creating with zero scale.
Sergey Sharybin [Wed, 21 Mar 2012 16:45:27 +0000 (16:45 +0000)]
Tracking objects were creating with zero scale.

7 years agoQuick fix to broken text editor/console from r45051.
Bastien Montagne [Wed, 21 Mar 2012 15:51:15 +0000 (15:51 +0000)]
Quick fix to broken text editor/console from r45051.

Note: not completely sure this is the way to go, but at least it works (and is easy to revert in case there is better solution ;) ).

7 years agoFix #30616: Inconsistency Del and Backspace of resetting values
Sergey Sharybin [Wed, 21 Mar 2012 14:19:45 +0000 (14:19 +0000)]
Fix #30616: Inconsistency Del and Backspace of resetting values

Color circle, waveform and histogram were still using Del key for resetting value.
Changed to backspace.

7 years agoFix #30622: documentation example code for bge.types.KX_MeshProxy did not work,
Sergey Sharybin [Wed, 21 Mar 2012 14:13:54 +0000 (14:13 +0000)]
Fix #30622: documentation example code for bge.types.KX_MeshProxy did not work,
using fix suggested by Ryan King.

7 years agoFix blenderplayer utf8 cmake for MinGW (linking order matters for gcc)
Antony Riakiotakis [Wed, 21 Mar 2012 12:35:39 +0000 (12:35 +0000)]
Fix blenderplayer utf8 cmake for MinGW (linking order matters for gcc)

7 years agomodify osx CMake hack so the CMake files can be parsed more easily by naive my error...
Campbell Barton [Wed, 21 Mar 2012 12:15:02 +0000 (12:15 +0000)]
modify osx CMake hack so the CMake files can be parsed more easily by naive my error checker.

7 years agomove some bmesh headers into intern/ since they are not used externally.
Campbell Barton [Wed, 21 Mar 2012 12:08:16 +0000 (12:08 +0000)]
move some bmesh headers into intern/ since they are not used externally.

7 years agofix [#30613] B-mesh - inset created invalid mesh
Campbell Barton [Wed, 21 Mar 2012 11:31:40 +0000 (11:31 +0000)]
fix [#30613] B-mesh - inset created invalid mesh

inset could make a quad that used the same vertex multiple times.

7 years agopartial fix for bug [#30613], inset creating invalid meshes, however its still possib...
Campbell Barton [Wed, 21 Mar 2012 09:39:45 +0000 (09:39 +0000)]
partial fix for bug [#30613], inset creating invalid meshes, however its still possible to cause a crash with a different selection, will fix next.

7 years agostyle cleanup: bmesh
Campbell Barton [Wed, 21 Mar 2012 09:10:08 +0000 (09:10 +0000)]
style cleanup: bmesh

7 years agoFix for [#30499] video sequencer crashes when moving around within a sequence.
Joerg Mueller [Wed, 21 Mar 2012 09:04:34 +0000 (09:04 +0000)]
Fix for [#30499] video sequencer crashes when moving around within a sequence.

7 years agorename ngon tessellate function.
Campbell Barton [Wed, 21 Mar 2012 08:35:50 +0000 (08:35 +0000)]
rename ngon tessellate function.

7 years agofix [#30617] regression: select similar no threshold
Campbell Barton [Wed, 21 Mar 2012 07:49:05 +0000 (07:49 +0000)]
fix [#30617] regression: select similar no threshold

7 years agowm/operator code:
Campbell Barton [Wed, 21 Mar 2012 06:33:31 +0000 (06:33 +0000)]
wm/operator code:
Change operator previous settings initialization not to use the redo stack since this gets cleared and it means only redo operators can re-use last settings.

now this works for import/export as well.

7 years agobmesh docs:
Campbell Barton [Wed, 21 Mar 2012 05:33:37 +0000 (05:33 +0000)]
bmesh docs:
- add examples for custom-data access
- group BMesh types logically in docs
- added missing docstrings

needed to add grouping functionality to sphinx for this.

7 years agominor changes to sphinx doc generator title formatting
Campbell Barton [Wed, 21 Mar 2012 04:43:17 +0000 (04:43 +0000)]
minor changes to sphinx doc generator title formatting

7 years agostarting blender with -W option would cause other windows (like user preferences...
Campbell Barton [Tue, 20 Mar 2012 23:52:23 +0000 (23:52 +0000)]
starting blender with -W option would cause other windows (like user preferences to be fullscreen too), now only override once.

7 years agopatch [#30593] Minor 3D View Hint Changes
Campbell Barton [Tue, 20 Mar 2012 23:44:02 +0000 (23:44 +0000)]
patch [#30593] Minor 3D View Hint Changes
from Harley Acheson (harley)

7 years agofix for Quaternion.to_axis_angle() returning a zero axis vector.
Campbell Barton [Tue, 20 Mar 2012 23:37:54 +0000 (23:37 +0000)]
fix for Quaternion.to_axis_angle() returning a zero axis vector.

7 years agoFix for compiling bplayer on cmake/win after adding utf support.
Alexander Kuznetsov [Tue, 20 Mar 2012 23:10:46 +0000 (23:10 +0000)]
Fix for compiling bplayer on cmake/win after adding utf support.

Reported by Miika

7 years agopatch [#30602] Wiki Quick Hack: Apply Transformation To Lattices
Campbell Barton [Tue, 20 Mar 2012 23:09:28 +0000 (23:09 +0000)]
patch [#30602] Wiki Quick Hack: Apply Transformation To Lattices
from Justin Dailey (dail)

7 years agospelling cleanup: tesselate -> tessellate (last of these found)
Campbell Barton [Tue, 20 Mar 2012 22:56:26 +0000 (22:56 +0000)]
spelling cleanup: tesselate -> tessellate (last of these found)

7 years agodisable re-using 'number_cuts' setting on operators, problem was that you could subdi...
Campbell Barton [Tue, 20 Mar 2012 22:27:08 +0000 (22:27 +0000)]
disable re-using 'number_cuts' setting on operators, problem was that you could subdiv a plane many times but then go to subdivide a high poly mesh and it would start with really high subdiv value (possibly running out of ram and crashing).

7 years agopatch from Richard Shaw, exclude ffmpeg files when its disabled.
Campbell Barton [Tue, 20 Mar 2012 22:00:21 +0000 (22:00 +0000)]
patch from Richard Shaw, exclude ffmpeg files when its disabled.

also fix for incorrect text in mesh specials menu - Select Inverse was called (De)Select All.

7 years agofix to possible bug running python callbacks - bpy.app.handlers.* to support handlers...
Campbell Barton [Tue, 20 Mar 2012 20:37:40 +0000 (20:37 +0000)]
fix to possible bug running python callbacks - bpy.app.handlers.* to support handlers removing themselves from the list.

7 years agoSmoke bugfix: Collision objects were completely broken in some cases since no tessfac...
Daniel Genrich [Tue, 20 Mar 2012 20:32:17 +0000 (20:32 +0000)]
Smoke bugfix: Collision objects were completely broken in some cases since no tessfaces were generated. (Thanks to Campbell for giving me the solution)

7 years agoPatch #30611: grey out bone show wireframe option if no custom shape is set,
Brecht Van Lommel [Tue, 20 Mar 2012 20:06:10 +0000 (20:06 +0000)]
Patch #30611: grey out bone show wireframe option if no custom shape is set,
since it only has an effect in that case. Patch by Sebastian Nell.

7 years agoFix related #30606: missing undo push editing node inputs in properties editor.
Brecht Van Lommel [Tue, 20 Mar 2012 19:56:45 +0000 (19:56 +0000)]
Fix related #30606: missing undo push editing node inputs in properties editor.

7 years agoFix #30543: tessellating ngons with small angles was failing. There was a quite
Brecht Van Lommel [Tue, 20 Mar 2012 19:32:31 +0000 (19:32 +0000)]
Fix #30543: tessellating ngons with small angles was failing. There was a quite
arbitrary limit of pi/24 for picking 3 vertices to use for computing a normal,
now it uses vertices with the maximum angle between them.

7 years agoFix #30603: cycles incorrect ray differentials when rendering with panorama
Brecht Van Lommel [Tue, 20 Mar 2012 19:32:12 +0000 (19:32 +0000)]
Fix #30603: cycles incorrect ray differentials when rendering with panorama
camera, causing bump map issues.

7 years agoRemaining fix for #30606. Added a simple link limit check when replacing nodes and...
Lukas Toenne [Tue, 20 Mar 2012 17:56:12 +0000 (17:56 +0000)]
Remaining fix for #30606. Added a simple link limit check when replacing nodes and relinking inputs, to avoid double links on inputs.

7 years agoSmoke bugfix: Fix copy paste + bad "if's" resulting in missing releation in depsgraph...
Daniel Genrich [Tue, 20 Mar 2012 17:51:14 +0000 (17:51 +0000)]
Smoke bugfix: Fix copy paste + bad "if's" resulting in missing releation in depsgraph (smoke collision groups not working, collision object relations wrong).

7 years agoFix #30600: extrude in vertex select mode did not copy attributes like smooth/flat
Brecht Van Lommel [Tue, 20 Mar 2012 17:02:03 +0000 (17:02 +0000)]
Fix #30600: extrude in vertex select mode did not copy attributes like smooth/flat
flag from adjacent face. It did work for edge select mode, now uses same code.

7 years agoCorrection for previous commit to make normals direction always inside
Sergey Sharybin [Tue, 20 Mar 2012 17:00:25 +0000 (17:00 +0000)]
Correction for previous commit to make normals direction always inside

7 years agoPartial fix for #30606. In node tree updates also update the sock->link pointers...
Lukas Toenne [Tue, 20 Mar 2012 16:59:00 +0000 (16:59 +0000)]
Partial fix for #30606. In node tree updates also update the sock->link pointers when only the NTREE_UPDATE_NODES flag is set, this happens when duplicating a node, which can lead to wrong pointers on the duplicated but unlinked node.

7 years agoFix #30420: Metaball Shading Inverted in Raytrace Reflection (Blender Internal)
Sergey Sharybin [Tue, 20 Mar 2012 16:17:34 +0000 (16:17 +0000)]
Fix #30420: Metaball Shading Inverted in Raytrace Reflection (Blender Internal)

Issue was caused by negative scale of camera. Metabolls are using procedural
normals and in case of negative scaled camera normals for them shall be flipped.

7 years agoCycles: fix issue reported in IRC, rendering a material that mixes a transparent
Brecht Van Lommel [Tue, 20 Mar 2012 16:16:17 +0000 (16:16 +0000)]
Cycles: fix issue reported in IRC, rendering a material that mixes a transparent
and glass BSDF would give a different result with/without using light passes.

7 years agoPort mball_to_mesh to use polys.
Sergey Sharybin [Tue, 20 Mar 2012 14:23:22 +0000 (14:23 +0000)]
Port mball_to_mesh to use polys.

7 years agoFix for [#30445] Particle simulation, rekey crashes blender
Janne Karhu [Tue, 20 Mar 2012 12:59:45 +0000 (12:59 +0000)]
Fix for [#30445] Particle simulation, rekey crashes blender
- Entering particle mode crashed due to missing checks if a particle didn't have any baked keys.
- The rekey functionality is only supported for hair, so replaced the operator poll function with the correct one.
- Also replaced a couple of other "only hair" operator poll functions to the correct ones.

7 years agoFix #30590: Crash in multires when undoing extrude [File incl.]
Sergey Sharybin [Tue, 20 Mar 2012 11:51:04 +0000 (11:51 +0000)]
Fix #30590: Crash in multires when undoing extrude [File incl.]

Missed initialization of hidden array when copying mdisps data from
one face to another.

7 years agotemp disable inset boundary option, it can make invalid meshes, need to look into...
Campbell Barton [Tue, 20 Mar 2012 11:45:55 +0000 (11:45 +0000)]
temp disable inset boundary option, it can make invalid meshes, need to look into this further.

7 years agoreplace SETCOL defines with inline function: rgba_char_args_set
Campbell Barton [Tue, 20 Mar 2012 09:45:17 +0000 (09:45 +0000)]
replace SETCOL defines with inline function: rgba_char_args_set

7 years agorename define BM_INLINE -> BLI_INLINE to avoid confusion with bmesh defines.
Campbell Barton [Tue, 20 Mar 2012 08:42:26 +0000 (08:42 +0000)]
rename define BM_INLINE -> BLI_INLINE to avoid confusion with bmesh defines.

7 years agoFix uninitialized variable in multires apply base.
Nicholas Bishop [Tue, 20 Mar 2012 08:23:53 +0000 (08:23 +0000)]
Fix uninitialized variable in multires apply base.

Reported on BlenderArtists by Guffy, was causing ugly spikes in lower
levels.

7 years agopy/rna api - fix for an empty enum flag with no members being displayed as {}, now...
Campbell Barton [Tue, 20 Mar 2012 07:52:39 +0000 (07:52 +0000)]
py/rna api - fix for an empty enum flag with no members being displayed as {}, now check for this case and display as set()

7 years agofix [#30589] RNA function descriptions not showing in Python console on autocomplete
Campbell Barton [Tue, 20 Mar 2012 07:41:47 +0000 (07:41 +0000)]
fix [#30589] RNA function descriptions not showing in Python console on autocomplete

show rna function description and arguments now.

7 years agofix [#30583] very old blend files are loading post-bmesh with no face/uv information...
Campbell Barton [Tue, 20 Mar 2012 05:04:51 +0000 (05:04 +0000)]
fix [#30583] very old blend files are loading post-bmesh with no face/uv information, just wires

versioning code called a customdata update function which ended up clearing tessfaces - before converting polygons to tessfaces.
Added check so tessfaces aren't cleared when there are no polygons.

7 years agostyle cleanup
Campbell Barton [Tue, 20 Mar 2012 04:27:14 +0000 (04:27 +0000)]
style cleanup

7 years agoMake collision function more general so it can be used by other modifiers, too. ...
Daniel Genrich [Tue, 20 Mar 2012 04:15:41 +0000 (04:15 +0000)]
Make collision function more general so it can be used by other modifiers, too. [This is preparation work for animated smoke collision]

7 years agostyle cleanup
Campbell Barton [Tue, 20 Mar 2012 04:09:43 +0000 (04:09 +0000)]
style cleanup

7 years agocompile fix: linux BLI_gzopen declare was conflicting.
Campbell Barton [Tue, 20 Mar 2012 03:48:32 +0000 (03:48 +0000)]
compile fix: linux BLI_gzopen declare was conflicting.

7 years agopy api:
Campbell Barton [Tue, 20 Mar 2012 03:13:25 +0000 (03:13 +0000)]
py api:
fix for collection functions not showing up in __dir__,

eg, console autocomplete didnt show up bpy.data.libraries.load

also fix refcounting leak with returning attributes from collections.

7 years agoAdds support for utf paths on Windows.
Alexander Kuznetsov [Tue, 20 Mar 2012 02:17:37 +0000 (02:17 +0000)]
Adds support for utf paths on Windows.

Not all file formats/calls are supported yet. It will be expended.

Please from now on use BLI_fopen, BLI_* for file manipulations.
For non-windows systems BLI_fopen just calls fopen.
For Windows, the utf-8 string is translated to utf-16 string in order to call UTF version of the function.

7 years agoreal fix for booleans and face shading this time.
Campbell Barton [Tue, 20 Mar 2012 01:33:24 +0000 (01:33 +0000)]
real fix for booleans and face shading this time.

CDDM_tessfaces_to_faces wasbt updating the polyindex (missed incrementing the polyindex pointer).

also added an assert so non release builds will complain when CDDM_calc_edges_tessface() needs to run before CDDM_tessfaces_to_faces().

7 years agoSome advanced particle rotation modes and reorganization of the rotation panel:
Janne Karhu [Tue, 20 Mar 2012 01:00:28 +0000 (01:00 +0000)]
Some advanced particle rotation modes and reorganization of the rotation panel:
- More angular velocity modes to support creative effects.
- Renamed "Initial Rotation" to "Initial Orientation" to better reflect the functionality
- Renamed "Spin" angular velocity mode to "Velocity".
- Organized the rotation panel a bit better.
- Also some better names and tooltips for the different rotation values.

7 years agoCDDM_calc_edges_tessface was being called twice for boolean and explide modifiers...
Campbell Barton [Tue, 20 Mar 2012 00:59:51 +0000 (00:59 +0000)]
CDDM_calc_edges_tessface was being called twice for boolean and explide modifiers, now leave it up to the caller to run.

7 years agopartial fix for bug where booleans were using invalid face/poly normals.
Campbell Barton [Tue, 20 Mar 2012 00:51:37 +0000 (00:51 +0000)]
partial fix for bug where booleans were using invalid face/poly normals.

the problem remains (though not quite as bad) but think this is because of a bug elsewhere.

7 years agopatch [#30595] Wiki Quick Hacks: Make Tooltip Background Colour Themeable
Campbell Barton [Mon, 19 Mar 2012 22:29:16 +0000 (22:29 +0000)]
patch [#30595] Wiki Quick Hacks: Make Tooltip Background Colour Themeable
from luke frisken (lfrisken)

7 years agoQuiet warnings about unused functions and variables.
Nicholas Bishop [Mon, 19 Mar 2012 22:21:40 +0000 (22:21 +0000)]
Quiet warnings about unused functions and variables.

Commented or '#if 0' these functions/variables and marked with
'UNUSED' comment so they can be restored in the future if needed.

7 years agobmesh inset: outset option
Campbell Barton [Mon, 19 Mar 2012 21:40:17 +0000 (21:40 +0000)]
bmesh inset: outset option

7 years agoFix format string warnings (gcc) by using string literals.
Nicholas Bishop [Mon, 19 Mar 2012 21:38:35 +0000 (21:38 +0000)]
Fix format string warnings (gcc) by using string literals.

gcc 4.6 was giving warnings like this:
"warning: format not a string literal and no format arguments [-Wformat-security]"

7 years agobmesh inset:
Campbell Barton [Mon, 19 Mar 2012 21:27:24 +0000 (21:27 +0000)]
bmesh inset:
  option to inset boundaries.

7 years agoRedraw data properties after selecting a bone.
Nicholas Bishop [Mon, 19 Mar 2012 21:21:23 +0000 (21:21 +0000)]
Redraw data properties after selecting a bone.

This is so that selecting bones while in weight paint mode will show
the correct active vertex group.

7 years agoFix #30531: mirror modifier with vertex groups did not add both the left and
Brecht Van Lommel [Mon, 19 Mar 2012 21:09:16 +0000 (21:09 +0000)]
Fix #30531: mirror modifier with vertex groups did not add both the left and
right groups to merged vertices, only one. This made the result asymmetric,
now merged vertices will be part of both groups with half weight.

7 years agoFix #30590: Crash in multires when undoing extrude [File incl.]
Sergey Sharybin [Mon, 19 Mar 2012 20:47:17 +0000 (20:47 +0000)]
Fix #30590: Crash in multires when undoing extrude [File incl.]

- Crash was caused by recursively copying directory into itself, fixed
  by switching from opendir() to scandir().
- Also do not try to unpack images which doesn't have name.

7 years agoRemove debug print in create_vert_poly_map
Nicholas Bishop [Mon, 19 Mar 2012 20:28:22 +0000 (20:28 +0000)]
Remove debug print in create_vert_poly_map

7 years agostyle cleanup: minor change to bmesh py repr + comment on loop radial next/prev to...
Campbell Barton [Mon, 19 Mar 2012 20:01:59 +0000 (20:01 +0000)]
style cleanup: minor change to bmesh py repr + comment on loop radial next/prev to avoid confusion.

7 years agofix for error reported on IRC, sorting zero sized lists would cause a crash.
Campbell Barton [Mon, 19 Mar 2012 19:27:39 +0000 (19:27 +0000)]
fix for error reported on IRC, sorting zero sized lists would cause a crash.

7 years agoSpelling of UI messages (then -> than).
Bastien Montagne [Mon, 19 Mar 2012 19:17:17 +0000 (19:17 +0000)]
Spelling of UI messages (then -> than).

7 years agoFix #30456: transforming object with a hair particle system, on a frame after
Brecht Van Lommel [Mon, 19 Mar 2012 18:14:24 +0000 (18:14 +0000)]
Fix #30456: transforming object with a hair particle system, on a frame after
the cache end frame would reset to the previous state on confirm. Was an issue
with object animation being evaluated unnecessarily, now make check more
precise.

7 years agoFix #30449: sampled motion blur not working with softbody.
Brecht Van Lommel [Mon, 19 Mar 2012 17:22:01 +0000 (17:22 +0000)]
Fix #30449: sampled motion blur not working with softbody.

7 years agoFix #30594: UV editor transform tools did not show help/pivot line to indicate
Brecht Van Lommel [Mon, 19 Mar 2012 17:21:46 +0000 (17:21 +0000)]
Fix #30594: UV editor transform tools did not show help/pivot line to indicate
transform center as it did in 2.49.

7 years agoFix for drag-n-drop images into sequencer: it was impossible to select files
Sergey Sharybin [Mon, 19 Mar 2012 10:52:16 +0000 (10:52 +0000)]
Fix for drag-n-drop images into sequencer: it was impossible to select files
from a file browser after dropping image strip from an external application.

7 years agobmesh inset:
Campbell Barton [Mon, 19 Mar 2012 09:47:32 +0000 (09:47 +0000)]
bmesh inset:
  fix hole when 2+ faces a vert but no edges (would make a hole), now splice the verts back together.

7 years agostyle cleanup: + some spelling errors for inset
Campbell Barton [Mon, 19 Mar 2012 08:49:49 +0000 (08:49 +0000)]
style cleanup: + some spelling errors for inset

7 years agocode cleanup: bmesh api - make arg order consistent - htype before hflag or oflag.
Campbell Barton [Mon, 19 Mar 2012 08:36:27 +0000 (08:36 +0000)]
code cleanup: bmesh api - make arg order consistent - htype before hflag or oflag.

7 years agoGrmml, dummy typo in previous UI message-fix commit… :/
Bastien Montagne [Mon, 19 Mar 2012 07:57:35 +0000 (07:57 +0000)]
Grmml, dummy typo in previous UI message-fix commit… :/

7 years agobmesh inset:
Campbell Barton [Mon, 19 Mar 2012 07:20:54 +0000 (07:20 +0000)]
bmesh inset:
improve inset code by not allocating an array the size of edges - instead count all inset edges and allocate an array only for those.
also fixes an error where edge lengths were being compared while the verts were being placed. (now do beforehand)

7 years agobmesh: inset tool, access from face menu (Ctrl+F)
Campbell Barton [Mon, 19 Mar 2012 05:45:15 +0000 (05:45 +0000)]
bmesh: inset tool, access from face menu (Ctrl+F)

- Even option (like solidify even option)
- Relative option (insets based on lengths of surrounding edges)

TODO: merge tares when 2+ face corners meet but don't form a contiguous region.

7 years agoAdd a multires function to delete MDisps.
Nicholas Bishop [Mon, 19 Mar 2012 05:13:41 +0000 (05:13 +0000)]
Add a multires function to delete MDisps.

The code was duplicated in various places, replaced with calls to
a new function, multires_customdata_delete().

7 years agoBMesh utility functions, not used yet,
Campbell Barton [Mon, 19 Mar 2012 01:57:42 +0000 (01:57 +0000)]
BMesh utility functions, not used yet,
- BM_edge_loop_pair incase you need the loops rather then the faces.
- BM_edge_ordered_verts_ex() - accepts a loop argument.
- BM_edge_length_calc() - simple length calc, useful if the edge is in some array, saves assigning a var and using len_v3v2().

7 years agobetter error reporting when a bmesh operator fails. (give reason and show char number...
Campbell Barton [Sun, 18 Mar 2012 23:38:31 +0000 (23:38 +0000)]
better error reporting when a bmesh operator fails. (give reason and show char number that fails)

7 years agoFix for [#30495] Framerate goes crazy after changing Sync mode from "Frame Dropping...
Joerg Mueller [Sun, 18 Mar 2012 22:21:29 +0000 (22:21 +0000)]
Fix for [#30495] Framerate goes crazy after changing Sync mode from "Frame Dropping" to "no Sync" while playing anim

7 years agoFix [#30234] Various problems with CD layers and tesselation, related to modifiers...
Bastien Montagne [Sun, 18 Mar 2012 22:06:57 +0000 (22:06 +0000)]
Fix [#30234] Various problems with CD layers and tesselation, related to modifiers stack.

Should also fix [#30266], [#29451], and partly [#30316].

Here are the changes made by this commit:
* It adds a "dirty" flag to DerivedMesh struct (for now, only DM_DIRTY_TESS_CDLAYERS, but more might be added as needed).
* It adds a new func, DM_update_tessface_data, which assumes tessfaces themselves are valid, but updates tessellated customdata from their poly/loop counter parts.
* At end of modstack, when valid tessellated faces are present in finaldm , but the cdlayers dirty flag is set, call that function (instead of recomputing the whole tessellation).
* Edits to the codes concerned (UVProject, DynamicPaint, and Subsurf modifiers).
* Also add to subsurf dm generation code the creation of a CD_POLYINDEX layer (mandatory for DM_update_tessface_data to work well, and imho all tessellated dm should have one).

Note: some pieces of old code are just #if 0’ed, will clean them later.

7 years ago"Fix" for [#30098] Particle rotation wrong / explode modifier
Janne Karhu [Sun, 18 Mar 2012 21:33:00 +0000 (21:33 +0000)]
"Fix" for [#30098] Particle rotation wrong / explode modifier
- The main problem was that in order to be accurate all particle
  rotations have to be calculated incrementally so the only working
  solution is to store rotations to the point cache (previously
  this was only done for dynamic rotations). This can nearly double
  the point cache size so it's not ideal to have this as a default
  as in many cases you don't care about particle rotations.
- Particle rotation panel now has a new "enable" checkbox that
  enables rotation calculations and the storing of rotations to
  point cache.
- Old files will have rotations enabled via do_versions so that in
  the worst case old files will only get bigger point caches, but no
  sudden loss of particle rotations.

7 years agolattice & UV 'select all' menu items were missing action assignment.
Campbell Barton [Sun, 18 Mar 2012 20:10:58 +0000 (20:10 +0000)]
lattice & UV 'select all' menu items were missing action assignment.

7 years agoGrumph, more fixes in this Select menu (Invert had default op name for metaball and...
Bastien Montagne [Sun, 18 Mar 2012 20:04:41 +0000 (20:04 +0000)]
Grumph, more fixes in this Select menu (Invert had default op name for metaball and particules...). Also fixed "(De)select All" name of particule op.

7 years agoFix [#30588] "select/deselect all"-menu for lattice doesn't default to TOGGLE
Bastien Montagne [Sun, 18 Mar 2012 19:55:42 +0000 (19:55 +0000)]
Fix [#30588] "select/deselect all"-menu for lattice doesn't default to TOGGLE

7 years ago== Sequencer ==
Peter Schlaile [Sun, 18 Mar 2012 19:32:26 +0000 (19:32 +0000)]
== Sequencer ==

Small fix for the last fix. Mixed up x and y scale... oh dear.

7 years agoRelease cycle
Thomas Dinges [Sun, 18 Mar 2012 16:01:11 +0000 (16:01 +0000)]
Release cycle
* BCon3: Beta. Ongoing module work, bug fixes and polishing features.

7 years agoAllow dropping image files from outside blender, or image datablocks from inside...
Sv. Lockal [Sun, 18 Mar 2012 15:12:11 +0000 (15:12 +0000)]
Allow dropping image files from outside blender, or image datablocks from inside blender to the shader and texture node editors, to add an image node. Earlier this was possible only for compositing node editor.

7 years agoRe-enable the clay strips sculpt brush.
Nicholas Bishop [Sun, 18 Mar 2012 11:44:14 +0000 (11:44 +0000)]
Re-enable the clay strips sculpt brush.

Most of the tool code was already in place, only significant
functionality change is that anchored stroke works now.

TODO:
* Gave it a new icon, but could use a better one
* Default .blend should have a clay strips brush

7 years agoRename 'clay tubes' to 'clay strips' and include it in the capabilities RNA.
Nicholas Bishop [Sun, 18 Mar 2012 11:44:00 +0000 (11:44 +0000)]
Rename 'clay tubes' to 'clay strips' and include it in the capabilities RNA.

7 years agoUse enums for brush flags and sculpt tools.
Nicholas Bishop [Sun, 18 Mar 2012 11:43:51 +0000 (11:43 +0000)]
Use enums for brush flags and sculpt tools.