blender-staging.git
6 years agofix for own mistake in recent adjustments to transform, local without individual...
Campbell Barton [Mon, 8 Apr 2013 08:43:16 +0000 (08:43 +0000)]
fix for own mistake in recent adjustments to transform, local without individual-origin wasn't working.

6 years agoFix [#34920] Hit Spacebar, search for freestyle, click Move Freestyle Module - crash
Bastien Montagne [Mon, 8 Apr 2013 07:07:10 +0000 (07:07 +0000)]
Fix [#34920] Hit Spacebar, search for freestyle, click Move Freestyle Module - crash

Simply add a poll func to (re)move freestyle module ops, to check whether we actually have an active module in context.

6 years agofix [#34900] Building blender as a python module is broken in trunk
Campbell Barton [Mon, 8 Apr 2013 05:01:35 +0000 (05:01 +0000)]
fix [#34900] Building blender as a python module is broken in trunk
patch provided by reporter - Martijn Berger (juicyfruit)

also quiet warnings for headless mode.

6 years agoselect-camera operator could select hidden cameras, also disable freestyle for `make...
Campbell Barton [Mon, 8 Apr 2013 04:54:57 +0000 (04:54 +0000)]
select-camera operator could select hidden cameras, also disable freestyle for `make lite` target.

6 years agofix [#34903] Lock Camera to View allows Numpad orbit, but not Numpad pan
Campbell Barton [Mon, 8 Apr 2013 04:48:34 +0000 (04:48 +0000)]
fix [#34903] Lock Camera to View allows Numpad orbit, but not Numpad pan

6 years agostyle cleanup
Campbell Barton [Mon, 8 Apr 2013 04:39:09 +0000 (04:39 +0000)]
style cleanup

6 years agoinset and bevel could both be activated when there was no selection.
Campbell Barton [Mon, 8 Apr 2013 02:14:58 +0000 (02:14 +0000)]
inset and bevel could both be activated when there was no selection.

6 years agofix [#34918] Interactive bevel doesn't accept +/- keys to change # of segments, only...
Campbell Barton [Mon, 8 Apr 2013 02:04:26 +0000 (02:04 +0000)]
fix [#34918] Interactive bevel doesn't accept +/- keys to change # of segments, only scrollwheel

Since page-up/down isnt common for this use case, replace with pad+/-

6 years agofix [#34905] Text editor: replacing matches by empty string not allowed
Campbell Barton [Mon, 8 Apr 2013 01:31:41 +0000 (01:31 +0000)]
fix [#34905] Text editor: replacing matches by empty string not allowed

6 years agofix for fix: re-activating buttons to fix [#33466], meant the icon didn't get refresh...
Campbell Barton [Mon, 8 Apr 2013 00:32:32 +0000 (00:32 +0000)]
fix for fix: re-activating buttons to fix [#33466], meant the icon didn't get refreshed immediately.

6 years agosurpport converting boundary edges to curves with BKE_mesh_to_curve(). alt+c convert.
Campbell Barton [Mon, 8 Apr 2013 00:25:44 +0000 (00:25 +0000)]
surpport converting boundary edges to curves with BKE_mesh_to_curve(). alt+c convert.

6 years agoFix for [#34901] "Add SSS Preset" gives error.
Thomas Dinges [Sun, 7 Apr 2013 15:18:12 +0000 (15:18 +0000)]
Fix for [#34901] "Add SSS Preset" gives error.
* Mark Preset operator as 'Internal' only, so it does not show up inside the search menu. We cannot be sure if we meet the context requirements otherwise (unless we add a poll to each subclass).

6 years agoFix for [#34898] Typo in error message of mathutils.Vector
Thomas Dinges [Sun, 7 Apr 2013 15:09:06 +0000 (15:09 +0000)]
Fix for [#34898] Typo in error message of mathutils.Vector
* Also fixed some more cases of "more then" -> "more than".

6 years agoRaise magic numbers for OSL and OpenCollada (should have done that much earlier)...
Bastien Montagne [Sun, 7 Apr 2013 15:02:34 +0000 (15:02 +0000)]
Raise magic numbers for OSL and OpenCollada (should have done that much earlier), this will force rebuild of those libs next time, hopefully will solve user's issues with outdated libs.

6 years agorigidbody: Fix/workaround for transforming rigid bodies with parents
Sergej Reich [Sun, 7 Apr 2013 14:09:29 +0000 (14:09 +0000)]
rigidbody: Fix/workaround for transforming rigid bodies with parents

Since we use the rigid body transform when transforming rigid bodies
things like parents and constraints add an offset because rigid body
transforms are in global space.

Now we just don't take rigid body transform into account on simulation
start frame so there are no problems when doing the initial setup.

The problem still exists when simulation is running of course.
To properly fix this we'd have to solve parenting and constratins while
taking rigid bodies into account before and after transform.
We'll have to see if it's really needed, would like to avoid it though.

6 years agotransform: Code cleanup
Sergej Reich [Sun, 7 Apr 2013 14:09:27 +0000 (14:09 +0000)]
transform: Code cleanup

Reduce scope of a variable.

6 years agoMesh Tool,
Campbell Barton [Sun, 7 Apr 2013 11:41:37 +0000 (11:41 +0000)]
Mesh Tool,
inset interpolation now works for 'inset_region', enabled by default.

Example:
http://www.graphicall.org/ftp/ideasman42/inset_interpolation_new.png

6 years agouse lowercase name for freestyle module (as with all other blender modules).
Campbell Barton [Sun, 7 Apr 2013 11:22:54 +0000 (11:22 +0000)]
use lowercase name for freestyle module (as with all other blender modules).

6 years agoReverting changes from r55873 for rna_define.c, sorry about that...
Bastien Montagne [Sun, 7 Apr 2013 10:25:59 +0000 (10:25 +0000)]
Reverting changes from r55873 for rna_define.c, sorry about that...

svn merge -r55873:55872 ./source/blender/makesrna/intern/rna_define.c

6 years agoFreestyle UI:
Thomas Dinges [Sun, 7 Apr 2013 10:23:48 +0000 (10:23 +0000)]
Freestyle UI:
* Remove "Unit" prefix from line thickness property. (discussed with Tamito in IRC)

6 years agoFix for Unicode literal (causing a compile error in VS 2008).
Tamito Kajiyama [Sun, 7 Apr 2013 10:21:28 +0000 (10:21 +0000)]
Fix for Unicode literal (causing a compile error in VS 2008).

6 years agoUsual typo fixes... ;)
Bastien Montagne [Sun, 7 Apr 2013 10:21:22 +0000 (10:21 +0000)]
Usual typo fixes... ;)

6 years agoFreestyle UI / Code cleanup:
Thomas Dinges [Sun, 7 Apr 2013 10:10:00 +0000 (10:10 +0000)]
Freestyle UI / Code cleanup:
* Do not share poll with other files, create own poll classes.
* Avoid some splits() and use rows instead (less code).
* Remove some commented C code.
* layout = self.layout declarations come before variable declarations.

6 years agoRecovered factory settings for Freestyle.
Tamito Kajiyama [Sun, 7 Apr 2013 09:25:28 +0000 (09:25 +0000)]
Recovered factory settings for Freestyle.

6 years agoCycles UI:
Thomas Dinges [Sun, 7 Apr 2013 08:42:08 +0000 (08:42 +0000)]
Cycles UI:
* Revert ui.py changes from r55868, I merged that over manually with tweaks in r55858.

6 years agoReverted a change accidentally committed.
Tamito Kajiyama [Sun, 7 Apr 2013 07:06:02 +0000 (07:06 +0000)]
Reverted a change accidentally committed.

6 years agoMissing updates in the doc/ and intern/ folders during the merger in revision 55847.
Tamito Kajiyama [Sun, 7 Apr 2013 06:56:49 +0000 (06:56 +0000)]
Missing updates in the doc/ and intern/ folders during the merger in revision 55847.

6 years agoMissing build_files updates in the merger in revision 55847.
Tamito Kajiyama [Sun, 7 Apr 2013 06:44:33 +0000 (06:44 +0000)]
Missing build_files updates in the merger in revision 55847.

6 years agomesh inset tool - option to interpolate UV's vcols etc, on by default since this...
Campbell Barton [Sun, 7 Apr 2013 05:13:00 +0000 (05:13 +0000)]
mesh inset tool - option to interpolate UV's vcols etc, on by default since this is almost always what you'd want.
currently only working for inset-individual, inset-region coming next.

6 years agosimplify inset loop-customdata-copying, no real benefit in using adjacent faces as...
Campbell Barton [Sun, 7 Apr 2013 03:24:30 +0000 (03:24 +0000)]
simplify inset loop-customdata-copying, no real benefit in using adjacent faces as customdata source.

6 years agoimprove bmesh face interpolation - transforming verts into the faces plane rather...
Campbell Barton [Sun, 7 Apr 2013 02:10:15 +0000 (02:10 +0000)]
improve bmesh face interpolation - transforming verts into the faces plane rather then using dominant axis or calculating in 3d with interp_weights_poly_v3().

6 years agofreestyle lineset `tag` attribute was defined but not used, also some code cleanup.
Campbell Barton [Sun, 7 Apr 2013 01:38:03 +0000 (01:38 +0000)]
freestyle lineset `tag` attribute was defined but not used, also some code cleanup.

6 years agoremove error checks for inset, adding a faces in this instance wont fail (or if it...
Campbell Barton [Sun, 7 Apr 2013 01:18:52 +0000 (01:18 +0000)]
remove error checks for inset, adding a faces in this instance wont fail (or if it does - theres a bug elsewhere).

6 years agoBGE: KX_Camera.getScreenVect() was using glReadPixels to get a depth value, which...
Mitchell Stokes [Sun, 7 Apr 2013 00:13:04 +0000 (00:13 +0000)]
BGE: KX_Camera.getScreenVect() was using glReadPixels to get a depth value, which was causing a sync event between the gpu and cpu. glReadPixels was always returning 0, so I removed it and set depth to be a constant 0.

6 years agoCode cleanup:
Thomas Dinges [Sat, 6 Apr 2013 23:08:06 +0000 (23:08 +0000)]
Code cleanup:
* Remove commented C code from properties_render_layer.py

6 years agoProperties Editor / Render Layers:
Thomas Dinges [Sat, 6 Apr 2013 23:05:32 +0000 (23:05 +0000)]
Properties Editor / Render Layers:
* Cycles Render layers UI was broken after freestyle merge (changes were not merged). Did manual edits now with some tweaks.
* Some layout fixes for Mask Layer.

6 years agofix: display weight brush strength widget only in weight paint mode
Gaia Clary [Sat, 6 Apr 2013 22:29:47 +0000 (22:29 +0000)]
fix: display weight brush strength widget only in weight paint mode

6 years agoFreestyle / Scons:
Thomas Dinges [Sat, 6 Apr 2013 22:21:42 +0000 (22:21 +0000)]
Freestyle / Scons:
* Changes in tools\Blender.py were not merged, causing compile failure.

6 years agoWhoops, revert r55854 and use r48292 as is
Dan Eicher [Sat, 6 Apr 2013 21:48:39 +0000 (21:48 +0000)]
Whoops, revert r55854 and use r48292 as is

Turns out outliner_search_back() doesn't always return a valid scene...

6 years agoClicking on an outliner object in an unselected scene switches to the scene but doesn...
Dan Eicher [Sat, 6 Apr 2013 21:37:35 +0000 (21:37 +0000)]
Clicking on an outliner object in an unselected scene switches to the scene but doesn't set it as the active object

Based on commit soc-2012-bratwurst:r48292 by Jorge Rodriquez

6 years agoFix for a heap-use-after-free issue, reported by Lockal in the IRC.
Tamito Kajiyama [Sat, 6 Apr 2013 19:42:58 +0000 (19:42 +0000)]
Fix for a heap-use-after-free issue, reported by Lockal in the IRC.

6 years agoFix freestyle compile with scons
Jens Verwiebe [Sat, 6 Apr 2013 18:06:06 +0000 (18:06 +0000)]
Fix freestyle compile with scons

6 years agoPart I of the Freestyle branch merger: new 'freestyle' folders.
Tamito Kajiyama [Sat, 6 Apr 2013 15:45:02 +0000 (15:45 +0000)]
Part I of the Freestyle branch merger: new 'freestyle' folders.

This commit is the first part of a two-part merger of the soc-2008-mxcurioni
(Freestyle) branch.  New 'freestyle' folders were added to the source/blender/
and release/script/ directories through a couple of svn copy operations
(instead of svn merge, due to broken svn:mergeinfo properties of the branch).

6 years agoRevert change made to bilinear sampler in libmv
Sergey Sharybin [Sat, 6 Apr 2013 14:47:45 +0000 (14:47 +0000)]
Revert change made to bilinear sampler in libmv

This made preview working but that broke internals
of tracking.

Namely, BlurredImageAndDerivativesChannels is giving
much more blurred image because it was assuming pixel
center is an integer position.

Guess other parts of libmv used to suffer because of
this issue.

Now pixel centering happens in blender side, and
libmv assumes integer position is a pixel center.

6 years agoPre-merger changes.
Tamito Kajiyama [Sat, 6 Apr 2013 14:45:50 +0000 (14:45 +0000)]
Pre-merger changes.

Deprecated Freestyle-specific elements were removed from the code base,
in order to address all comments from branch code reviews.
https://codereview.appspot.com/7416049/

Backward compatibility won't be maintained in the following components:

- Freestyle edge/face marks in old .blend files are ignored.

Old .blend files can be converted by loading and saving the files using
a Freestyle branch build between revision 55581 and 55842.

- External style modules are no longer supported.

Instead text datablocks must be used to keep style module files within
.blend files.  A branch build between revision 55741 and 55842 is useful
for identifying the style module file names that need reconfiguring.

6 years agosvn merge ^/trunk/blender -r55815:55840
Sergey Sharybin [Sat, 6 Apr 2013 13:24:34 +0000 (13:24 +0000)]
svn merge ^/trunk/blender -r55815:55840

6 years agoNode UI:
Thomas Dinges [Sat, 6 Apr 2013 12:07:42 +0000 (12:07 +0000)]
Node UI:
* After PyNodes merge, many node sockets had sliders, instead of the arrow buttons (as the PROP_FACTOR subtype now actually was used). Change those back now, after artists feedback.

6 years agofix: #34871 Cycles/CUDA/sm_35: Build problems probably due to issues with float3...
Gaia Clary [Sat, 6 Apr 2013 11:52:40 +0000 (11:52 +0000)]
fix: #34871 Cycles/CUDA/sm_35: Build problems probably due to issues with float3 operators (on windows?)

6 years agoFix: 34874 Weight Paint UI inconsistent: removed conflicting shortcut definition...
Gaia Clary [Sat, 6 Apr 2013 10:52:52 +0000 (10:52 +0000)]
Fix: 34874 Weight Paint UI inconsistent: removed conflicting shortcut definition, added weight assign tools to specials menu

6 years agoctrl+a select all in button field
Campbell Barton [Sat, 6 Apr 2013 08:22:39 +0000 (08:22 +0000)]
ctrl+a select all in button field

6 years agoMinor white space fix.
Tamito Kajiyama [Sat, 6 Apr 2013 07:53:57 +0000 (07:53 +0000)]
Minor white space fix.

6 years agoRemoved Freestyle-specific code from DerivedMesh.c.
Tamito Kajiyama [Sat, 6 Apr 2013 06:09:08 +0000 (06:09 +0000)]
Removed Freestyle-specific code from DerivedMesh.c.

The removed code was necessary due to a logical bug in the use of CD_ORIGINDEX
layer entries.  Previously the index values were used to refer to the edges/polys
of the derived mesh, assuming that the derived mesh edges/polys consisted of those
from the original mesh plus newly added edges/polys.  This assumption was not
correct, although it worked well for several modifiers such as Mirror and Solidify.
Now the index values are specifically used to reference the edge/polys of the
original mesh.

6 years agoadd relative offset option for poke tool.
Campbell Barton [Sat, 6 Apr 2013 03:03:37 +0000 (03:03 +0000)]
add relative offset option for poke tool.

6 years agopatch [#34890] BMesh Poke Face.
Campbell Barton [Sat, 6 Apr 2013 02:45:43 +0000 (02:45 +0000)]
patch [#34890] BMesh Poke Face.
by Francisco De La Cruz (xercesblue), with some of my own changes/improvements.

Converts faces to triangle-fans (useful to run on ngons).

To access select a group of faces and press "Alt+P" or alternatively select the operator from the Faces menu (Ctrl+F)

6 years agoFix #34880: cycles motion blur render issue with some compilers. Actually is a bigger
Brecht Van Lommel [Fri, 5 Apr 2013 23:03:10 +0000 (23:03 +0000)]
Fix #34880: cycles motion blur render issue with some compilers. Actually is a bigger
problem where accessing float4 members with [] stops working due to optimizer, will
check that later.

6 years agobmesh operator rename inset -> inset_region
Campbell Barton [Fri, 5 Apr 2013 22:56:01 +0000 (22:56 +0000)]
bmesh operator rename inset -> inset_region

6 years agopatch [#34886] BMesh Individual Face Inset
Campbell Barton [Fri, 5 Apr 2013 22:21:14 +0000 (22:21 +0000)]
patch [#34886] BMesh Individual Face Inset
from Francisco De La Cruz (xercesblue) with some simplifications to the patch.

6 years agofix [#34870] bmesh.ops.* parameter lists and descriptions don't show in PyConsole...
Campbell Barton [Fri, 5 Apr 2013 19:58:18 +0000 (19:58 +0000)]
fix [#34870] bmesh.ops.* parameter lists and descriptions don't show in PyConsole on auto-complete

more a feature request then a bug but nice to have __doc__ on bmesh operators.

6 years agoRemoved CD_MASK_FREESTYLE_EDGE and CD_MASK_FREESTYLE_FACE from CD_MASK_BAREMESH
Tamito Kajiyama [Fri, 5 Apr 2013 19:34:26 +0000 (19:34 +0000)]
Removed CD_MASK_FREESTYLE_EDGE and CD_MASK_FREESTYLE_FACE from CD_MASK_BAREMESH
and moved them to init_render_mesh() in convertblender.c where these CustomData
layers are specifically required.

6 years agoadd BM_face_calc_center_mean_weighted() gives much better result at cost of some...
Campbell Barton [Fri, 5 Apr 2013 19:26:33 +0000 (19:26 +0000)]
add BM_face_calc_center_mean_weighted() gives much better result at cost of some speed.

6 years agoFix another part of #34877: cycles progress status text not showing correct with
Brecht Van Lommel [Fri, 5 Apr 2013 17:57:26 +0000 (17:57 +0000)]
Fix another part of #34877: cycles progress status text not showing correct with
per render layer samples in addition to the progress bar.

Also fixed job progress bar not working at all on high DPI / retina, was so small
the actual progress was not visible.

6 years agocode cleanup: include order
Campbell Barton [Fri, 5 Apr 2013 17:56:54 +0000 (17:56 +0000)]
code cleanup: include order

6 years agoFix eternal compo refresh when having image editor with mask opened
Sergey Sharybin [Fri, 5 Apr 2013 17:27:25 +0000 (17:27 +0000)]
Fix eternal compo refresh when having image editor with mask opened

This was a regression since 55719 and the reason is:

- image_refresh() will tag combo for re-calc when editing mask.
  This is a feature, so you could have immediate feedback on masking
  and compositing while editing mask. This is done from image_refresh().

- Color management sends NC_WINDOW notifier, so the whole window is
  updated when changing color management settings. Image editor used
  to refresh space when this notifier is sent.

  The same notifier is sent by compositor job to redraw all possible
  viewers.

Simple fix: don't refresh image space for NC_WINDOW, there's nothing
in image_refresh() which we would want to happen on NC_WINDOW event.

6 years agoBug fix #34866
Ton Roosendaal [Fri, 5 Apr 2013 17:10:28 +0000 (17:10 +0000)]
Bug fix #34866

Global undo/redo now clears the local undo editmode stack entirely.

Error goes back to the 2.3 days, when undo was added.

Global undo refreshes the entire internal database, so all ID pointers get invalid.
This cases editmode undo storage to fail, if it uses ID pointers as well.

The error was that for any Mesh undo stack, a single global undo would make the
mesh stack corrupt. Back in edit mode, on undo you'd lose assigned texture images,
or get bad crashes.

The downside is that people expect this to work... it's a fun feature to maintain
stacks separately. Having this instable is not acceptable though. Needs quite some
redesign work to solve it (like Dalai's kill-the-tface project :)

6 years agoCode cleanup / Cycles / Object Attributes:
Thomas Dinges [Fri, 5 Apr 2013 17:03:59 +0000 (17:03 +0000)]
Code cleanup / Cycles / Object Attributes:
* Change some long "else if" conditions into switch case.

6 years agoFix #34877: The render status feedback (progress bar) does not take into account...
Sergey Sharybin [Fri, 5 Apr 2013 16:59:19 +0000 (16:59 +0000)]
Fix #34877: The render status feedback (progress bar) does not take into account specific Renderlayer samples

6 years agostyle cleanup
Campbell Barton [Fri, 5 Apr 2013 16:55:12 +0000 (16:55 +0000)]
style cleanup

6 years agoWhite space fixes (to make a diff from the trunk cleaner).
Tamito Kajiyama [Fri, 5 Apr 2013 16:53:24 +0000 (16:53 +0000)]
White space fixes (to make a diff from the trunk cleaner).

6 years agoFix #34679: cycles image texture alpha fringes. New rule is now that color output
Brecht Van Lommel [Fri, 5 Apr 2013 16:43:53 +0000 (16:43 +0000)]
Fix #34679: cycles image texture alpha fringes. New rule is now that color output
will not give straight RGB values if the alpha output is used, so that mixing with
a transparent BSDF gives the correct result.

6 years agoKeep brush overlays below panels in triple buffer mode.
Antony Riakiotakis [Fri, 5 Apr 2013 16:34:27 +0000 (16:34 +0000)]
Keep brush overlays below panels in triple buffer mode.

6 years agosvn merge ^/trunk/blender -r55813:55815
Campbell Barton [Fri, 5 Apr 2013 16:27:39 +0000 (16:27 +0000)]
svn merge ^/trunk/blender -r55813:55815

6 years agocode cleanup: quiet some warnings and style
Campbell Barton [Fri, 5 Apr 2013 15:45:10 +0000 (15:45 +0000)]
code cleanup: quiet some warnings and style

6 years agosvn merge ^/trunk/blender -r55776:55813
Campbell Barton [Fri, 5 Apr 2013 15:42:31 +0000 (15:42 +0000)]
svn merge ^/trunk/blender -r55776:55813

6 years agofix [#34881] Bad characters in error output (PyConsole) if trying to use a Bmesh...
Campbell Barton [Fri, 5 Apr 2013 15:09:25 +0000 (15:09 +0000)]
fix [#34881] Bad characters in error output (PyConsole) if trying to use a Bmesh UV Layer on a BMVert

6 years agocode cleanup: use bool's for vgroup and editmode.
Campbell Barton [Fri, 5 Apr 2013 14:58:30 +0000 (14:58 +0000)]
code cleanup: use bool's for vgroup and editmode.

6 years agoMore fixes for install_deps.sh under ubuntu 10.04: git package is called "git-core...
Bastien Montagne [Fri, 5 Apr 2013 13:34:32 +0000 (13:34 +0000)]
More fixes for install_deps.sh under ubuntu 10.04: git package is called "git-core", and 'apt-cache policy' returns a different result than newer versions when no package is found, changed the "available deb package" test to use "apt-cache show" instead.

6 years agoStencil dimension control:
Antony Riakiotakis [Fri, 5 Apr 2013 13:00:16 +0000 (13:00 +0000)]
Stencil dimension control:

* Shift-Rclick and holding right click, x or y will trigger constrained
scaling of overlay. Pressing again will revert to uniform scaling.
* Added operator, visible under the mapping drop menu, to fit stencil
aspect ratio to brush image aspect ratio.
* Made it possible to access stencil attributes from python as vec.x,
vec.y. Thanks to kgeogeo for pointing out!

6 years agoFirst fix for install_deps and ubuntu 10.04 (no libtiff5, only libtiff4, wonder why...
Bastien Montagne [Fri, 5 Apr 2013 12:37:48 +0000 (12:37 +0000)]
First fix for install_deps and ubuntu 10.04 (no libtiff5, only libtiff4, wonder why this package does not work as jpeg or png ones)...

This allows compilation of OIIO, install_deps.sh still working though (on this old OS, all libs have to be compiled, takes time... :/).

6 years agoPatch from kgeogeo:
Antony Riakiotakis [Fri, 5 Apr 2013 11:45:33 +0000 (11:45 +0000)]
Patch from kgeogeo:

* Change coordinates of stencil to float, helps with precision during
property manuipulations
* Expose stencil properties to RNA.

6 years agoFix #34873, Custom min/max node values get reset randomly while working and on save...
Lukas Toenne [Fri, 5 Apr 2013 11:16:06 +0000 (11:16 +0000)]
Fix #34873, Custom min/max node values get reset randomly while working and on save and quit. Node group socket interface was not storing the default_value struct in writefile.c, forgot to add this back when returning to DNA data for node sockets.

6 years agoFixed typo in OCIO GLSL module, was using address to a pointer..
Sergey Sharybin [Fri, 5 Apr 2013 11:10:59 +0000 (11:10 +0000)]
Fixed typo in OCIO GLSL module, was using address to a pointer..

6 years agoFix for compositor bug found by Ton Roosendaal. Color Balance node was using wrong...
Lukas Toenne [Fri, 5 Apr 2013 11:02:32 +0000 (11:02 +0000)]
Fix for compositor bug found by Ton Roosendaal. Color Balance node was using wrong socket index to map the operation socket to the UI node socket.

6 years agoFix #34872: Every images are displayed as black in UV/image editor
Sergey Sharybin [Fri, 5 Apr 2013 11:01:35 +0000 (11:01 +0000)]
Fix #34872: Every images are displayed as black in UV/image editor

Issue was caused by some mesa drivers does not support GL_RGBA16F.

Now added check around glTexImage2D to verify whether requested
internal format is actually supported. If not blender will fall
back to non-GLSL image display.

6 years agoUpdate libmv to current upstream version
Sergey Sharybin [Fri, 5 Apr 2013 09:23:20 +0000 (09:23 +0000)]
Update libmv to current upstream version

- Solves some strict compilation warning
- Style/code cleanup

6 years agoBundle current master of ceres-solver
Sergey Sharybin [Fri, 5 Apr 2013 09:22:54 +0000 (09:22 +0000)]
Bundle current master of ceres-solver

Thins brings up some speed improvements:

SPARSE_SCHUR is approx 1.3-1.5x times faster
ITERATIVE_SCHUR is approx 1.2x times faster

For blender this means camera solution go a bit
faster now. Would not have affect on tracking
speed.

6 years agoFix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.
Miika Hamalainen [Fri, 5 Apr 2013 07:56:59 +0000 (07:56 +0000)]
Fix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.

6 years agoApparently, you shall not define variables in the middle of the block
Sergey Sharybin [Fri, 5 Apr 2013 06:50:59 +0000 (06:50 +0000)]
Apparently, you shall not define variables in the middle of the block

6 years agofix bad memmove size (reading past buffer bounds)
Campbell Barton [Fri, 5 Apr 2013 03:44:07 +0000 (03:44 +0000)]
fix bad memmove size (reading past buffer bounds)

6 years agoBGE: Cleaning up the VBO code to use RAS_TexVert more directly instead of copying...
Mitchell Stokes [Fri, 5 Apr 2013 01:28:38 +0000 (01:28 +0000)]
BGE: Cleaning up the VBO code to use RAS_TexVert more directly instead of copying out pieces. This also gets rid of MapBuffers, which isn't available in OpenGL ES. Scenes that require constant VBO updates (like my skeletal mesh stress test) are now 10~13% faster.

6 years agoFix #34862: some operators like mesh separate or object clear parent were not
Brecht Van Lommel [Fri, 5 Apr 2013 00:53:37 +0000 (00:53 +0000)]
Fix #34862: some operators like mesh separate or object clear parent were not
showing shortcuts in menus, now it shows them in the submenu.

6 years agoFix #34867: cycles viewport render did not respect viewport visibility for
Brecht Van Lommel [Fri, 5 Apr 2013 00:33:59 +0000 (00:33 +0000)]
Fix #34867: cycles viewport render did not respect viewport visibility for
modifiers with text/curve/surface objects.

This is because the code here did not yet support the distinction between
generating the tesselated mesh at viewport/render resolution and generating a
separate displist/derivedmesh for render that is not stored in the object but
created and freed on the fly.

6 years agopy api additions needed for fixing [#34864].
Campbell Barton [Fri, 5 Apr 2013 00:30:32 +0000 (00:30 +0000)]
py api additions needed for fixing [#34864].
- add rna property 'as_bytes' method so you can get a string property as python bytes (bypass encoding).
- make bpy.path.abspath/relpath compatible with bytes.
- add 'relpath' option to bpy_extras.image_utils.load_image(), so you can load an image relative to a path.

6 years agocorrection to previous warning cleanup, also quiet shadow-warning for thumbnail ...
Campbell Barton [Fri, 5 Apr 2013 00:10:33 +0000 (00:10 +0000)]
correction to previous warning cleanup, also quiet shadow-warning for thumbnail `size`

6 years agoAttempt to fix #34871: random CUDA 3.5 compile failure due to recent change.
Brecht Van Lommel [Thu, 4 Apr 2013 23:52:33 +0000 (23:52 +0000)]
Attempt to fix #34871: random CUDA 3.5 compile failure due to recent change.

6 years agoFix #34601: cycles OSL crash when using preview render and viewport render at
Brecht Van Lommel [Thu, 4 Apr 2013 23:48:07 +0000 (23:48 +0000)]
Fix #34601: cycles OSL crash when using preview render and viewport render at
the same time, due to shared texture cache system.

6 years agocode cleanup: bge warnings
Campbell Barton [Thu, 4 Apr 2013 23:16:23 +0000 (23:16 +0000)]
code cleanup: bge warnings

6 years agoskip unneeded calculations when calling calculateTransformCenter()
Campbell Barton [Thu, 4 Apr 2013 21:40:39 +0000 (21:40 +0000)]
skip unneeded calculations when calling calculateTransformCenter()
which gets called whenever the view is rotated when rotate-around-selected preference is enabled.

6 years agoFix for 34703 Mix node (Hue, Saturation) update and rendering error
Jeroen Bakker [Thu, 4 Apr 2013 19:53:30 +0000 (19:53 +0000)]
Fix for 34703 Mix node (Hue, Saturation) update and rendering error
Fix for 34494 Blender 2.65 regression test error - compo_map_uv_cubes.blend - stripe/artifact between cubes

Hue and saturation node has an early break when saturarion is 0. When this happened the input 1 color needed to be used. This behaviour was not merged.

When no FSAA is used in the ZCombine. a mask will be created, this mask will be antialiased and based on this mask the colors between the two images are blended. This was also behaviour that was not merged correctly. Now it is back making much better z-combines.

Hope nobody uses these gabs as a work around.

 - At Mind -
Jeroen & Monique

6 years agopy api, bmesh
Campbell Barton [Thu, 4 Apr 2013 18:22:01 +0000 (18:22 +0000)]
py api, bmesh
- add BMEdge.calc_face_angle_signed() which gives a negative angle for for concave edges.
- add BMEdge.is_convex

6 years agocode cleanup: py ui
Campbell Barton [Thu, 4 Apr 2013 17:01:51 +0000 (17:01 +0000)]
code cleanup: py ui