9 years agocode cleanup
Campbell Barton [Mon, 2 Jul 2012 09:07:34 +0000 (09:07 +0000)]
code cleanup

9 years agocode cleanup
Campbell Barton [Mon, 2 Jul 2012 08:37:59 +0000 (08:37 +0000)]
code cleanup

9 years agoupdate playanim for 2.6x, playback works, events don't.
Campbell Barton [Mon, 2 Jul 2012 08:20:40 +0000 (08:20 +0000)]
update playanim for 2.6x, playback works, events don't.

9 years agostyle cleanup
Campbell Barton [Mon, 2 Jul 2012 08:12:34 +0000 (08:12 +0000)]
style cleanup

9 years agoadd back playanim from 2.4x (not functional, #if 0'd)
Campbell Barton [Mon, 2 Jul 2012 08:10:05 +0000 (08:10 +0000)]
add back playanim from 2.4x (not functional, #if 0'd)

9 years agoStyle cleanup, mo functional changes
Sergey Sharybin [Sun, 1 Jul 2012 20:38:07 +0000 (20:38 +0000)]
Style cleanup, mo functional changes

9 years agoColor management: added view transforms form nuke-default and spi-vfx
Sergey Sharybin [Sun, 1 Jul 2012 20:12:38 +0000 (20:12 +0000)]
Color management: added view transforms form nuke-default and spi-vfx

- Added some extra view transforms to play with. It's not absolutely
  correct in terms this views were changed to use aces space as input.
  This gives exactly the same result as if using stand-alone spi-vfx
  and nuke-default configuration, but for real merge of this configs
  it'll be needed to add extra input spaces and transformations between

- Replaced hard-coded aces input color space with default ocio
  linear space which makes it easier to play with different

- Fixed SCons installation of color management configuration which
  used to skip copying LUTs when there was "luts" folder in install

- Print whether OCIO was enabled when building with CMake.
  Could be helpful due to OCIO is being automatically disabled
  if needed libraries are missed.

9 years agoprintf was being done on uninitialized string.
Campbell Barton [Sun, 1 Jul 2012 15:59:12 +0000 (15:59 +0000)]
printf was being done on uninitialized string.

9 years agosvn merge ^/trunk/blender -r48415:48469
Campbell Barton [Sun, 1 Jul 2012 15:39:02 +0000 (15:39 +0000)]
svn merge ^/trunk/blender -r48415:48469

9 years agodon't disable cycles when OIIO isnt found, instead throw an error, annoying when...
Campbell Barton [Sun, 1 Jul 2012 15:26:25 +0000 (15:26 +0000)]
don't disable cycles when OIIO isnt found, instead throw an error, annoying when full build is done and later find cycles isn't on.

9 years agoColor management: fixed crash when freeing context for inactive viewer node
Sergey Sharybin [Sun, 1 Jul 2012 14:54:05 +0000 (14:54 +0000)]
Color management: fixed crash when freeing context for inactive viewer node

9 years agoanother fix for error in the view raycast template
Campbell Barton [Sun, 1 Jul 2012 13:57:32 +0000 (13:57 +0000)]
another fix for error in the view raycast template

9 years agofix for 2 errors in the template
Campbell Barton [Sun, 1 Jul 2012 11:05:11 +0000 (11:05 +0000)]
fix for 2 errors in the template

9 years agostyle cleanup
Campbell Barton [Sun, 1 Jul 2012 09:54:44 +0000 (09:54 +0000)]
style cleanup

9 years agopython template for doing mouse ray casts to pick objects in the 3d viewport.
Campbell Barton [Sun, 1 Jul 2012 08:46:02 +0000 (08:46 +0000)]
python template for doing mouse ray casts to pick objects in the 3d viewport.

9 years agonew function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
Campbell Barton [Sun, 1 Jul 2012 08:06:01 +0000 (08:06 +0000)]
new function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
useful for doing ray casts from the view.

9 years agostyle cleanup: remove '.' from docstring endings and use quotes for descriptions.
Campbell Barton [Sun, 1 Jul 2012 07:55:44 +0000 (07:55 +0000)]
style cleanup: remove '.' from docstring endings and use quotes for descriptions.

9 years agoA little bit of cleanup for the new DXT code:
Mitchell Stokes [Sun, 1 Jul 2012 02:47:34 +0000 (02:47 +0000)]
A little bit of cleanup for the new DXT code:
  * Using TRUE/FALSE instead of 1/0
  * Checking to make sure GL_EXT_texture_compression_s3tc is supported
  * Removing some debug error checking

9 years agostyle cleanup: comments
Campbell Barton [Sat, 30 Jun 2012 22:49:33 +0000 (22:49 +0000)]
style cleanup: comments

9 years agoScons:
Thomas Dinges [Sat, 30 Jun 2012 22:44:36 +0000 (22:44 +0000)]
* WITH_BF_COMPOSITOR option, to disable tile compositor compilation.
* Removed unused SCons file.

9 years agofix for own error renaming bmesh operator dupe
Campbell Barton [Sat, 30 Jun 2012 21:19:12 +0000 (21:19 +0000)]
fix  for own error renaming bmesh operator dupe

9 years agoCycles / Boost:
Thomas Dinges [Sat, 30 Jun 2012 18:24:28 +0000 (18:24 +0000)]
Cycles / Boost:
* Windows (msvc 2008) is now using Boost 1.49 - Updated cmake file.

9 years agoCycles / Boost:
Thomas Dinges [Sat, 30 Jun 2012 18:20:14 +0000 (18:20 +0000)]
Cycles / Boost:
* Windows (msvc 2008) is now using Boost 1.49

9 years agocode cleanup: some vars were assigned when not needed
Campbell Barton [Sat, 30 Jun 2012 17:54:55 +0000 (17:54 +0000)]
code cleanup: some vars were assigned when not needed

9 years agofix for some build warnings.
Campbell Barton [Sat, 30 Jun 2012 16:56:23 +0000 (16:56 +0000)]
fix for some build warnings.

9 years agorename bmesh ops since they are exposed in an api now.
Campbell Barton [Sat, 30 Jun 2012 15:27:13 +0000 (15:27 +0000)]
rename bmesh ops since they are exposed in an api now.

9 years agoCode style cleanup and prevent crashes when OCIO configuration file is not found
Sergey Sharybin [Sat, 30 Jun 2012 14:53:58 +0000 (14:53 +0000)]
Code style cleanup and prevent crashes when OCIO configuration file is not found

9 years agodisable opencl when compo is disabled.
Campbell Barton [Sat, 30 Jun 2012 14:28:45 +0000 (14:28 +0000)]
disable opencl when compo is disabled.

9 years agothe compositor optional for cmake: WITH_COMPOSITOR
Campbell Barton [Sat, 30 Jun 2012 14:14:22 +0000 (14:14 +0000)]
the compositor optional for cmake: WITH_COMPOSITOR

9 years agoadd support for passing lists of verts/edges/faces to bmesh operators
Campbell Barton [Sat, 30 Jun 2012 12:58:04 +0000 (12:58 +0000)]
add support for passing lists of verts/edges/faces to bmesh operators

9 years agoColor management: remove unused baked LUTS
Sergey Sharybin [Sat, 30 Jun 2012 12:40:02 +0000 (12:40 +0000)]
Color management: remove unused baked LUTS

9 years agoColor management cleanup and improvements
Sergey Sharybin [Sat, 30 Jun 2012 12:37:41 +0000 (12:37 +0000)]
Color management cleanup and improvements

- De-duplicate code used by color management panel drawing,
  moved this panel to utility file in bl_ui

- Added support of per-window color management control
  which means view transform. exposure and gamma could be
  set per window and all spaces would use this settings.

  This is default behavior for older files now.

- Added support of color management display of movie clips
  in clip editor.

  Supported both texture buffer and fallback draw methods.

- Fixed default values for exposure and gamma

9 years agoColor management refactoiring and some extra options
Sergey Sharybin [Sat, 30 Jun 2012 12:37:16 +0000 (12:37 +0000)]
Color management refactoiring and some extra options

- Move space-being settings (such as view transform) into own
  DNA and RNA structure to avoid code duplication in some areas
  and save some arguments on display buffer acquiring function.

  Also added some utility functions to BKE to manipulate this

- Replace static sized color managed buffer flags array with
  dynamically sized array which matches actual number of displays.

  Probably this flags better be transfposed so it'll support
  any number of view transforms and 32 displays (currently it's
  other way around). it's runtime flags only, so would be simple
  to change any time.

- Added support of configurable exposure and gamma.

  Changing this settings wouldn't generate new item in cache,
  it'll affect on buffer with the same color spaces conversion.

  It'll also run full color transform from scratch on every run,
  this could be changes in a way that it'll re-use color managed
  buffer, but from quick glance it doesn't give really noticeable

  Currently this settings are stored as pointer in ImBuf structure
  itself. Probably it make sense removing them from ImBuf and make
  moviecache be able to store some kind of tags associated with
  cached ImBuf.

9 years agoColor management: fixes for view transform not being properly handled
Sergey Sharybin [Sat, 30 Jun 2012 12:36:53 +0000 (12:36 +0000)]
Color management: fixes for view transform not being properly handled
in space node create and duplicate callbacks.

9 years agoColor management: multithreaded transformation apply
Sergey Sharybin [Sat, 30 Jun 2012 12:36:41 +0000 (12:36 +0000)]
Color management: multithreaded transformation apply

Since RRT can't be baked into 3D LUT it's the only way to increase
speed of transformation and make image / clip loading in acceptable

9 years agoColor management fixes
Sergey Sharybin [Sat, 30 Jun 2012 12:36:31 +0000 (12:36 +0000)]
Color management fixes

- Fixed memory leak caused by incorrect handling of cached buffer
  in cases if it was marked as dirty
- Do not use 3D LUT for RRT -- they can't be easily baked into 3D
  LUT without being clamped to 0..1 space
- Make sure blender compiles without OCIO support

9 years agoColor management fixes and improvements
Sergey Sharybin [Sat, 30 Jun 2012 12:36:03 +0000 (12:36 +0000)]
Color management fixes and improvements

- Made color management cache safe for situations when one area
  requested a display buffer, then some changes were done which
  invalidated cache, other area requested display buffer which
  changed cached buffer.

  Suck case could be fatal for first used of display buffer,
  which didn't happen yet because cache is being accessed from
  main thread only, but better to keep this things completely
  thread save to avoid headache in the future.

- Baked RRT transformations, which gives ~3-4 times boost
  hopefully without visible artifacts.

- Added support of partial updates to display buffers.

  This would create special context which hols display buffer
  which imbuf had to the time of creating this context and
  later this context would allow to run a color correction
  from given linear buffer within given region.

  This is being used by compositor to enable more realtime
  display update when compositing.

- Added support of color management backdrop for nodes editor.

  There's now special menu called display properties in N-panel
  of nodes editor.

  Probably this better be de-duplicated somehow, but not sure
  yet how. Currently it's not so harmful to have panel for two
  spaces which contains only 2 properties.

  There's currently one unsolved issue with backdrop:
  it's not being updated progressively when just loading the
  file -- it's simply because there's no color managed display
  buffer for backdrop yet, and compositor doesn't actually
  know which color space to use here to generate preview to.

9 years agoall bmesh operators can now be accessed from bmesh.ops.* using a generic wrapper,
Campbell Barton [Sat, 30 Jun 2012 11:14:10 +0000 (11:14 +0000)]
all bmesh operators can now be accessed from bmesh.ops.* using a generic wrapper,
argument parsing still needs to have support added for vector, matrix and element types.

9 years agoGPU_upload_dxt_texture failed to compile if WITH_DDS was not defined
Jason Wilkins [Sat, 30 Jun 2012 10:31:25 +0000 (10:31 +0000)]
GPU_upload_dxt_texture failed to compile if WITH_DDS was not defined

9 years agocode cleanup: rename some members of bmesh operators, 'slots' is a C++ keyword which...
Campbell Barton [Sat, 30 Jun 2012 09:55:04 +0000 (09:55 +0000)]
code cleanup: rename some members of bmesh operators, 'slots' is a C++ keyword which confuses some IDE's.
also added missing BMO_op_vinitf args to comments.

9 years agoFinally committing support for compressed textures on the GPU (DDS+DXT). This patch...
Mitchell Stokes [Sat, 30 Jun 2012 04:34:34 +0000 (04:34 +0000)]
Finally committing support for compressed textures on the GPU (DDS+DXT). This patch started out as a patch by me, then cleaned up by Kupoman during his work on Cucumber.

One important thing to keep in mind when using this feature is that you'll need to flip your textures vertically (both the GIMP and Photoshop DDS tools I've seen have support for this on export). This is a quirk in using a texture format originally made for DirectX/DirectDraw, and flipping the compressed data is a real headache. Another quick fix for this issue is to change the Y value for the Size in the Mapping panel in the Texture properties to -1 (default is 1).

9 years agomark modifier operators that only work in the UI as internal, otherwise this causes...
Campbell Barton [Fri, 29 Jun 2012 23:09:19 +0000 (23:09 +0000)]
mark modifier operators that only work in the UI as internal, otherwise this causes some confusion when they do nothing when accessed from the spacebar search menu.

9 years agosvn merge ^/trunk/blender -r48411:48415
Campbell Barton [Fri, 29 Jun 2012 20:34:10 +0000 (20:34 +0000)]
svn merge ^/trunk/blender -r48411:48415

9 years agodon't close operator dialogs when the mouse moves outside of them. this is very annoy...
Campbell Barton [Fri, 29 Jun 2012 20:29:13 +0000 (20:29 +0000)]
don't close operator dialogs when the mouse moves outside of them. this is very annoying when you spend time to enter in many values, escape, click-out-side still quits.

9 years agogame engine & viewport, dont show collision bounds for convex hull or triangle meshes...
Campbell Barton [Fri, 29 Jun 2012 20:26:07 +0000 (20:26 +0000)]
game engine & viewport, dont show collision bounds for convex hull or triangle meshes - really visual distraction and they are not used,

9 years agosvn merge ^/trunk/blender -r48409:48411
Campbell Barton [Fri, 29 Jun 2012 14:39:38 +0000 (14:39 +0000)]
svn merge ^/trunk/blender -r48409:48411

9 years agoExtended modes for snapping in the node editor.
Lukas Toenne [Fri, 29 Jun 2012 14:34:46 +0000 (14:34 +0000)]
Extended modes for snapping in the node editor.
The transform operators in nodes will now use the unselected nodes to generate snapping points. Unlike object snapping, node snapping works for the x/y axes separately and snaps node borders to same borders of unselected nodes. The sensitive area for node borders extends over the whole view2D range, to enable simple alignment of nodes in both x and y direction.

For snap points in the node editor an additional enum value is stored to indicate the type of node border (left/right/top/bottom). This works as a constraint on possible node alignments: only same border types align with each other.

9 years agoMerging r48407 through r48409 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 29 Jun 2012 14:34:29 +0000 (14:34 +0000)]
Merging r48407 through r48409 from trunk into soc-2011-tomato

9 years agoAdded command line option "--debug-jobs"
Sergey Sharybin [Fri, 29 Jun 2012 14:32:25 +0000 (14:32 +0000)]
Added command line option "--debug-jobs"

This option enables time profiling of background jobs, namely it's
measuring run time of the job and prints it to the console.

9 years agoFix [#31939] Loop cutting a self intersecting face loop
Bastien Montagne [Fri, 29 Jun 2012 13:55:25 +0000 (13:55 +0000)]
Fix [#31939] Loop cutting a self intersecting face loop

Enabled use_gridfill for edgesubdivide called by loopcut. This will break edgeslide in this specific case (intersecting faceloop), but imho makes more sense this way than the other. Very easy to revert anyway, and this should only affect this specific cornercase.

9 years agosvn merge ^/trunk/blender -r48378:48406
Campbell Barton [Fri, 29 Jun 2012 13:11:44 +0000 (13:11 +0000)]
svn merge ^/trunk/blender -r48378:48406

9 years agoFixing a bug found while checking "[#31937] UV/Image Editor: Copy Mirrored UV Coords...
Bastien Montagne [Fri, 29 Jun 2012 12:41:39 +0000 (12:41 +0000)]
Fixing a bug found while checking "[#31937] UV/Image Editor: Copy Mirrored UV Coords" (which isn't a bug at all).

The tool works OK, except it was messing vertices' order of polys, often giving ugly results! Now only using sorted list of vertices indices to find matching polys.

9 years agoRelated to [#31936] Mesh saved in 2.63 with legacy format have holes instead ngons
Bastien Montagne [Fri, 29 Jun 2012 11:59:47 +0000 (11:59 +0000)]
Related to [#31936] Mesh saved in 2.63 with legacy format have holes instead ngons

Make clear in this option's tooltip that it only saves tris and quads, no implicit triangulation of other ngons, which are lost!

9 years agoFix #31953: Forcefield Texture using image file, gradient mode not working
Miika Hamalainen [Fri, 29 Jun 2012 11:44:46 +0000 (11:44 +0000)]
Fix #31953: Forcefield Texture using image file, gradient mode not working

9 years agoTomato Branch:
Thomas Dinges [Fri, 29 Jun 2012 11:42:57 +0000 (11:42 +0000)]
Tomato Branch:
* Compile fix for windows platforms, pow10 -> pow.

9 years agoTomato Branch:
Thomas Dinges [Fri, 29 Jun 2012 11:28:01 +0000 (11:28 +0000)]
Tomato Branch:
* Disable OCIO on windows per default, we don't have OCIO win libs yet.

9 years agoFix #31948: dynamic paint substeps do not work for objects parented to armatures
Miika Hamalainen [Fri, 29 Jun 2012 11:19:29 +0000 (11:19 +0000)]
Fix #31948: dynamic paint substeps do not work for objects parented to armatures

9 years agoFix compile error
Antony Riakiotakis [Fri, 29 Jun 2012 11:15:02 +0000 (11:15 +0000)]
Fix compile error

9 years agofix for crash scaling an image
Campbell Barton [Fri, 29 Jun 2012 10:52:37 +0000 (10:52 +0000)]
fix for crash scaling an image

9 years agoFix #31951 Subdivide with multires splits uvs.
Antony Riakiotakis [Fri, 29 Jun 2012 10:12:42 +0000 (10:12 +0000)]
Fix #31951 Subdivide with multires splits uvs.

The bug is related to 31581 and the main cause is the small offset that
BM_loop_interp_from_face introduces before calculating barycentric
weights. Solved by only calculating displacement layer.

9 years agocode cleanup: bge builds with clang without warnings / errors.
Campbell Barton [Fri, 29 Jun 2012 09:16:59 +0000 (09:16 +0000)]
code cleanup: bge builds with clang without warnings / errors.

9 years agofix for bug where user scripts path set by an environment variable would write preset...
Campbell Barton [Fri, 29 Jun 2012 08:33:13 +0000 (08:33 +0000)]
fix for bug where user scripts path set by an environment variable would write presets there but not show up in the menu.

9 years agoprint warning if a script in the addons dir has no bl_info.
Campbell Barton [Thu, 28 Jun 2012 19:22:13 +0000 (19:22 +0000)]
print warning if a script in the addons dir has no bl_info.

9 years agoAdd missing brush types to sculpt_tool_name()
Nicholas Bishop [Thu, 28 Jun 2012 19:12:00 +0000 (19:12 +0000)]
Add missing brush types to sculpt_tool_name()

This function is used to name undo pushes in sculpt mode, was missing
some of the newer brush types. Also tweaked the switch statement so
that it will warn for future missing cases and removed extraneous

9 years agoadd NULL check for ibuf, was crashing while rendering randomly
Campbell Barton [Thu, 28 Jun 2012 17:26:21 +0000 (17:26 +0000)]
add NULL check for ibuf, was crashing while rendering randomly

9 years agosvn merge ^/trunk/blender -r48375:48378
Campbell Barton [Thu, 28 Jun 2012 15:41:44 +0000 (15:41 +0000)]
svn merge ^/trunk/blender -r48375:48378

9 years agofix for crash in python getting the image size for a sequence.
Campbell Barton [Thu, 28 Jun 2012 15:34:21 +0000 (15:34 +0000)]
fix for crash in python getting the image size for a sequence.

9 years agorevert part of 48340, it causes uvs across islands to stitch in a different way ...
Antony Riakiotakis [Thu, 28 Jun 2012 15:09:24 +0000 (15:09 +0000)]
revert part of 48340, it causes uvs across islands to stitch in a different way (?) than before

9 years agosvn merge ^/trunk/blender -r48370:48375
Campbell Barton [Thu, 28 Jun 2012 14:19:53 +0000 (14:19 +0000)]
svn merge ^/trunk/blender -r48370:48375

9 years agorecent fix for #31581 could crash when doing edge slide on a mesh with no UV's.
Campbell Barton [Thu, 28 Jun 2012 14:18:04 +0000 (14:18 +0000)]
recent fix for #31581 could crash when doing edge slide on a mesh with no UV's.

9 years agocode cleanup: compile with clang and quiet some warnings.
Campbell Barton [Thu, 28 Jun 2012 12:32:06 +0000 (12:32 +0000)]
code cleanup: compile with clang and quiet some warnings.

9 years agosvn merge ^/trunk/blender -r48333:48370
Campbell Barton [Thu, 28 Jun 2012 11:20:19 +0000 (11:20 +0000)]
svn merge ^/trunk/blender -r48333:48370

9 years agoForgot these files in previous commit.
Brecht Van Lommel [Thu, 28 Jun 2012 11:16:47 +0000 (11:16 +0000)]
Forgot these files in previous commit.

9 years agoFix for image node: The button draw function was using the image user pointer for...
Lukas Toenne [Thu, 28 Jun 2012 10:59:40 +0000 (10:59 +0000)]
Fix for image node: The button draw function was using the image user pointer for displaying properties, which does not work correctly. The image node has to redefine image user RNA properties in order to make correct update calls and to have meaningful image layer names. For these properties the node pointer itself has to be used then.

9 years agoCycles: regular rendering now works tiled, and supports save buffers to
Brecht Van Lommel [Thu, 28 Jun 2012 10:34:38 +0000 (10:34 +0000)]
Cycles: regular rendering now works tiled, and supports save buffers to
save memory during render and cache render results.

Implementation notes:

In the render engine API it's now possible to get the render result for
one render layer only, and retrieve the expected tile size in case save
buffers is used. This is needed because EXR expects tiles with particular
size and coordinates.

The EXR temporary files are now also separated per layer, since Cycles
can't give the full render result for all render layers, and EXR doesn't
support writing parts of tiles.

In Cycles internally the handling of render buffers and multi GPU
rendering in particular changed quite a bit, and could use a bit more
refactoring to make things more consistent and simple.

9 years agoMove color management check stuff from blo_read_file_internal to setup_app_data
Sergey Sharybin [Thu, 28 Jun 2012 10:05:22 +0000 (10:05 +0000)]
Move color management check stuff from blo_read_file_internal to setup_app_data

9 years agoFix for [#23375] "texture2D in custom 2D filters can get texture outside of game...
Mitchell Stokes [Thu, 28 Jun 2012 09:37:30 +0000 (09:37 +0000)]
Fix for [#23375] "texture2D in custom 2D filters can get texture outside of game, resulting in ugliness" reported by Jacob F.

The 2D Filter system now only copies the game viewport instead of the whole window. This prevents 2D Filters from grabbing data outside of the game viewport. The textures for 2D filters are now also not forced to be powers of two (if NPOT textures are supported), which can save a little bit of VRAM.

9 years agofix for segfault on undo because of loading color profile info.
Campbell Barton [Thu, 28 Jun 2012 09:18:07 +0000 (09:18 +0000)]
fix for segfault on undo because of loading color profile info.

9 years agoFix #31835: OBJ Importer corrupts a model (crash in edit mode)
Sergey Sharybin [Thu, 28 Jun 2012 09:08:11 +0000 (09:08 +0000)]
Fix #31835: OBJ Importer corrupts a model (crash in edit mode)

Added back face validation to BKE_mesh_validate_arrays.

This is needed because some addons (like OBJ importer) are reading
tessfaces and then converting them to ngons and validation of tessfaces
is needed before such a conversion.

Validation of faces would happen only if there's no polys in mesh.

9 years agocode cleanup: cmake buildsystem edits, unused var warnings and better description...
Campbell Barton [Thu, 28 Jun 2012 08:51:02 +0000 (08:51 +0000)]
code cleanup: cmake buildsystem edits, unused var warnings and better description for WITH_PYTHON_MODULE.
also disable workaround for some linux installs.

9 years agoBasic snapping in node transform operator.
Lukas Toenne [Thu, 28 Jun 2012 08:47:22 +0000 (08:47 +0000)]
Basic snapping in node transform operator.

Snapping actually was working already, but grid spacing was set to 1.0, which is basically pixel size in the node editor. Increased this to 1x grid step for fine snapping and 5x grid step for rough snapping.

Grid drawing in node editor now draws 2 levels in slightly different shades to indicate the different snapping modes better.

Node editor also supports the general use_snap tool setting to enable automatic snapping during transform. For now only the incremental snapping is supported, in future could be extended to enable alignment between nodes in a number of ways.

9 years agodocument calling operators with undo enabled.
Campbell Barton [Thu, 28 Jun 2012 08:17:28 +0000 (08:17 +0000)]
document calling operators with undo enabled.

9 years agoFix #31929: VSE crash with relative paths and rebuilding proxies
Sergey Sharybin [Thu, 28 Jun 2012 07:58:34 +0000 (07:58 +0000)]
Fix #31929: VSE crash with relative paths and rebuilding proxies

9 years agocode cleanup: when heat weighting dont loop through all polys when its not needed.
Campbell Barton [Thu, 28 Jun 2012 07:18:19 +0000 (07:18 +0000)]
code cleanup: when heat weighting dont loop through all polys when its not needed.

9 years agofix [#31940] crash with automatic weights
Campbell Barton [Thu, 28 Jun 2012 07:13:03 +0000 (07:13 +0000)]
fix [#31940] crash with automatic weights

9 years agoRemoving channel manipulation from the Action Actuator Python API since this has...
Mitchell Stokes [Thu, 28 Jun 2012 06:22:47 +0000 (06:22 +0000)]
Removing channel manipulation from the Action Actuator Python API since this has been broken since the animation changes from Pepper. BL_ArmatureObject.channels should be used instead. For more information see bug #28843 for more info:

9 years agocommitted debug memcount by accident
Campbell Barton [Wed, 27 Jun 2012 22:27:04 +0000 (22:27 +0000)]
committed debug memcount by accident

9 years agobge.logic.keyboard.getClipboard() and .setClipboard methods
Dalai Felinto [Wed, 27 Jun 2012 21:57:33 +0000 (21:57 +0000)]
bge.logic.keyboard.getClipboard() and .setClipboard methods
the idea of using methods instead of attributes is to avoid users abusing of the system calls.

Thanks Campbell Barton for reviewing and small corrections

9 years agooption so operators can be executed with undo enabled (and redo).
Campbell Barton [Wed, 27 Jun 2012 21:41:17 +0000 (21:41 +0000)]
option so operators can be executed with undo enabled (and redo).

9 years agomissed tiff using 150 dpi as default in previous commit, use a define now.
Campbell Barton [Wed, 27 Jun 2012 19:28:44 +0000 (19:28 +0000)]
missed tiff using 150 dpi as default in previous commit, use a define now.

9 years agoAvoid adding overlapping triangles in convex hull
Nicholas Bishop [Wed, 27 Jun 2012 18:39:17 +0000 (18:39 +0000)]
Avoid adding overlapping triangles in convex hull

Add an epsilon value to the point-outside-hull test, helps when some
of the input vertices are nearly coplanar.

Fixes bug [#31941] convex hull fails (and depends on vertex order when it shouldn't)

9 years agostyle cleanup
Campbell Barton [Wed, 27 Jun 2012 18:29:47 +0000 (18:29 +0000)]
style cleanup

9 years agochange default DPI for images to 72, aparently 150 gives issues with adobe apps...
Campbell Barton [Wed, 27 Jun 2012 18:11:24 +0000 (18:11 +0000)]
change default DPI for images to 72, aparently  150 gives issues with adobe apps (which is stupid but default value isnt so important).

9 years agoClean-up and refactor of current OCIO integration
Sergey Sharybin [Wed, 27 Jun 2012 18:10:53 +0000 (18:10 +0000)]
Clean-up and refactor of current OCIO integration

- Cleaned up some files -- seems there were some wrongly resolved
  conflicts which resulted into duplicated code in
  and some build configuration files.
- Store all color space related data (such as display device, view
  transform and so) as strings, so it could easily be ported to new
  OCIO configuration files and it'll be much more portable between
  different configurations.

  This required adding some look-ups to RNA associated with such
  settings, but it's indeed the only way to do this. If it'll be
  figured out such look-ups causes performance issues it's possible
  to optimize this further using hash. So far it's only few elements
  in list to be looked up.
- Added support of display device transformation from OCIO
  configuration files. Display device is setting per-window and
  different windows could have different display devices, so it's
  possible to have one blender window opened on sRGB monitor and
  another one on xyz projector.

  Display device is ignored when using ACES ODT Tonecurve view
  transform due to it's not an OCIO transformation. Probably it'll
  be possible to get rid of this tone curve soon (if it'll be
  proved useless or it'll be implemented as a part of OCIO LUT).
- Movie Cache now supports deleter functions for user keys, so
  such keys could have some allocated data which would be removed
  as soon as element in cache is being removed.
- Movie Cache now support callbacks to check whether current
  cache element could be removed from a cache due to it wouldn't
  be accessed anymore.
- Re-written cache stuff for display buffers of ImBuf. Now it's
  using Movie Cache which is global for all ImBufs.

  Probably it's not implemented in fastest way, would be investigated
  further and probably changed it performance wouldn't be good enough.

9 years agostyle cleanup: header comments, use more doxy compat formatting
Campbell Barton [Wed, 27 Jun 2012 17:48:39 +0000 (17:48 +0000)]
style cleanup: header comments, use more doxy compat formatting

9 years agoFix for #31581, UVs shrink on edge slide.
Antony Riakiotakis [Wed, 27 Jun 2012 17:08:12 +0000 (17:08 +0000)]
Fix for #31581, UVs shrink on edge slide.

Issue is that all loops of a face adjacent to the sliding verts were
getting project-corrected. Introduced a test to only project the
affected loops.

The projection code introduces a small offset to the boundaries so that
any boundary tests can work as expected, but this leads to shrinking of
the barycentric coordinates of the projection, causing a shrink of the
uvs in turn. This even affects the uvs that -should- be affected though
the unfixed behavior works strangely in a correctish way (my guess is
because the projection uses the same face as the opposite sliding loop).

I fixed the behaviour by taking the mean value of the uvs. This won't
support seams but current code doesn't either. Also, all CustomData to
exhibit this unfixed behaviour. I only fixed the uv case, other data
(Vcolors, etc) will have discontinuities when edge sliding. I expect
that the CorrectUV code I am working on may address some of these

Also, added NULL checks for utility function (was intended for this bug
but wasn't needed after all)

9 years agoUtility function to get the first loop of a vert. Behaves identical to
Antony Riakiotakis [Wed, 27 Jun 2012 15:39:14 +0000 (15:39 +0000)]
Utility function to get the first loop of a vert. Behaves identical to
the iterator initialization function.

9 years agosvn merge ^/trunk/blender -r48321:48333
Campbell Barton [Wed, 27 Jun 2012 14:36:06 +0000 (14:36 +0000)]
svn merge ^/trunk/blender -r48321:48333

9 years agoadd access to dissolve_limit from python.
Campbell Barton [Wed, 27 Jun 2012 14:01:58 +0000 (14:01 +0000)]
add access to dissolve_limit from python.

9 years agoutility function to get the points inside a list of planes.
Campbell Barton [Wed, 27 Jun 2012 09:51:22 +0000 (09:51 +0000)]
utility function to get the points inside a list of planes.