Commit Graph

49420 Commits

Author SHA1 Message Date
Campbell Barton
603842fad4 use 2d vectors for mask point access. 2012-07-23 22:39:26 +00:00
Campbell Barton
2029b0205a mask layer rna api: add exception when removing incorrect masklayer from mask, add mask.layers.clear() 2012-07-23 21:47:11 +00:00
Mitchell Stokes
37246b3ca1 BGE: Bringing over the dynamic lamp properties fixes from Cucumber (thanks to Daniel Stokes). This means the following KX_LightObject properties now have support when using GLSL materials (in addition to those already supported):
* distance
  * lin_attenuation
  * quad_attenuation
  * spotsize
  * spotblend
2012-07-23 20:24:35 +00:00
Sergey Sharybin
8569262f3c Merging r49146 through r49148 from trunk into soc-2011-tomato 2012-07-23 18:28:00 +00:00
Sergey Sharybin
4c22d38f92 Keying: apply garbage / core mattes after clamping
Applying this mattes before clamping produced ugly outline around
matte boundaries.
2012-07-23 18:27:06 +00:00
Campbell Barton
5cafd08ba2 svn merge ^/trunk/blender -r49143:49145 2012-07-23 16:43:48 +00:00
Campbell Barton
72309f65b8 view3d - enable background images and footage with Only Render, useful for previewing models with footage. 2012-07-23 16:41:04 +00:00
Campbell Barton
ad4738e77f svn merge ^/trunk/blender -r49118:49143 2012-07-23 15:03:54 +00:00
Joshua Leung
a5d08781fc Bugfix [#31994] Blend from Shape "Add" mode incorrectly added the full mesh
shape instead of just the difference/deltas applied by the source shape

Apparently this was a regression from that crept in during the BMesh merge. I've
just restored the pre-BMesh method, adapted for the BMesh style.

Also, removed a somewhat superfluous (?) copy at the end of each step (from co
back to sco). It didn't seem to be serving any purpose (i.e. we're not trying to
modify the source shape at all).
2012-07-23 13:33:09 +00:00
Joshua Leung
7f622c3cdc Minor style cleanup - remove invalid/unneeded comments 2012-07-23 12:22:09 +00:00
Bastien Montagne
d7c840aa0b Portuguese is now over 60% (also finisehd old portuguse_brazilian->portuguese move). 2012-07-23 12:10:21 +00:00
Joshua Leung
e92fea3efb Bugfix [#32155] Driver error saves in file and isnt reset on load
Error flags set on Drivers and F-Curves when they can't be evaluated or flushed
properly are now cleared when loading files, allowing drivers to be re-evaluated
when a file is reloaded. This means that if a driver couldn't be used in the
previous session due to the set of extension modules active at the time (and was
thus disabled), reloading the file with the necessary extensions loaded means
that the driver can work out of the box without manually re-enabling.
2012-07-23 12:10:02 +00:00
Sergey Sharybin
a3989d79df ACES ODT tonecurve style cleanup and small tweaks
Convert color into ACES color space from rec709 (which is quite the same
as blender internal) before running tonecurve and convert color space back
after tonecurve.

This makes tonecurve be applying in actual space it was intended to and it
makes color range smoother a bit.

Would be nice to convert this into OCIO view tho.
2012-07-23 09:20:11 +00:00
Mitchell Stokes
02b9ba16bc Fix for bug [#26122] "Overlay scene gets transparent when motion blur is enabled" reported by Alberto Torres Ruiz (dithi).
The problem is motion blur was being treated as a per scene operation, but all scenes were trying to use the same accumulation buffer. Now motion blur is done in EndFrame() instead of PostRenderScene().
2012-07-23 01:00:56 +00:00
Janne Karhu
161f502485 Fix for #32162 psys rotation causes size issues for particle instances
- The original scaling of the object wasn't taken into account when not using the particle dupliobject rotation option.
2012-07-22 23:07:43 +00:00
Mitchell Stokes
7fb85e1fb7 BGE LibLoad: Allow the user to disable loading text datablocks if they want to attempt to increase security by not loading potential Python scripts. 2012-07-22 22:58:12 +00:00
Campbell Barton
df3f3dff3b patch [#31925] Add a BMElemSeq.sort() method
from Antonio Ospite (ao2)


wrap bmesh sort function for python api, eg:

 bm.faces.sort(key=lambda f: f.material_index)
2012-07-22 21:13:32 +00:00
Campbell Barton
76bea854b6 code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define
also some minor style cleanup.
2012-07-22 18:40:50 +00:00
Campbell Barton
ea229638a0 code cleanup: simplify view orbit operator 2012-07-22 18:31:08 +00:00
Campbell Barton
513aec7687 code cleanup: remove unused math functions (where already noted as deprecated) 2012-07-22 17:49:56 +00:00
Campbell Barton
fefddc320d code cleanup: use cosf and sinf when both args and results are float values.
also remove local math functions in KX_Camera
2012-07-22 17:35:43 +00:00
Joshua Leung
e58104c515 Bugfix [#32017] Infinite recursion in depsgraph material/node driver handling
When initially coding this functionality, I was aware of the potential for
infinite recursion here, just not how frequently such setups are actually
used/created out in the wild (nodetree.ma_node -> ma -> ma.nodetree is all too
common, and often even with several levels of indirection!).

However, the best fix for these problems was not immediately clear. Alternatives
considered included...
 1) checking for common recursive cases.  This was the solution employed for one
of the early patches committed to try and get around this. However, it's all too
easy to defeat these measures (with all the possible combinations of indirection
node groups bring).
 2) arbitrarily restricting recursion to only go down 2/3 levels? Has the risk
of missing some deeply chained/nested drivers, but at least we're guaranteed to
not get too bad. (Plus, who creates such setups anyway ;)
*3) using the generic LIB_DOIT flag (check for tagged items and not recurse down
there). Not as future-proof if some new code suddenly decides to start adding
these tags to materials along the way, but is easiest to add, and should be
flexible enough to catch most cases, since we only care that at some point those
drivers will be evaluated if they're attached to stuff we're interested in.
 4)  introducing a separate flag for Materials indicating they've been checked
already. Similar to 3) and solves the future-proofing, but this leads to...
 5) why bother with remembering to clear flags before traversing for drivers to
evaluate, when they should be tagged for evaluation like everything else?
Downside - requires depsgraph refactor so that we can actually track the fact
that there are dependencies to/from the material datablock, and not just to the
object using said material. (i.e. Currently infeasible)
2012-07-22 16:14:57 +00:00
Campbell Barton
919a848015 svn merge ^/trunk/blender -r49107:49118 2012-07-22 16:10:06 +00:00
Campbell Barton
dae8e9fbb2 fix for own error using uninitialized memory for scale compo node. 2012-07-22 15:49:20 +00:00
Campbell Barton
e646803441 fix for more new[]/delete[] mismatches 2012-07-22 15:31:12 +00:00
Campbell Barton
f9ed34cce9 fix for compositor new[]/delete[] mismatch. 2012-07-22 15:15:39 +00:00
Sergey Sharybin
8904429287 Fix #32156: Blender crashes on linking armature with custom shape
Crash was caused by using NULL pointer as a wire color for drawing
object selection when drawing flag is set to DRAW_CONSTCOLOR.

Solved by not calling drawObjectSelect when DRAW_CONSTCOLOR flag
is set, which seems reasonable -- rather than adding checks deeper
in all possible functions which are being called there easier to
just not call that functions using a single check.
2012-07-22 14:22:07 +00:00
Antony Riakiotakis
dc48fcfac0 Add property to stitch operator to clear seam flag of stitched edges (on
by default, since people usually want the layout to be updated).
Motivation has been confused user that tried to use live unwrap
afterwards and found that it would not work as it should.
2012-07-22 14:19:06 +00:00
Campbell Barton
2b286585af fix for node editor re-rendering when the background image was moved in the view. 2012-07-22 13:13:36 +00:00
Sergey Sharybin
43979f2d71 Increase maximal video bitrate to 64K
Aimed to #32153: H.264 Output Bitrate Max of 14000 kb/s is Too Low
2012-07-22 12:48:19 +00:00
Campbell Barton
9b51503307 style cleanup 2012-07-21 22:58:08 +00:00
Sergey Sharybin
130b6bad4e Merging r49105 through r49107 from trunk into soc-2011-tomato 2012-07-21 19:21:12 +00:00
Campbell Barton
2a98e83abd style cleanup 2012-07-21 16:21:42 +00:00
Campbell Barton
7baf3d2ece svn merge ^/trunk/blender -r49082:49104 2012-07-21 15:40:47 +00:00
Campbell Barton
62a73381a7 use fabsf when using floats. 2012-07-21 15:27:40 +00:00
Sergey Sharybin
1bb7cfded6 Merge mask fixes from tomato branch
--
svn merge -r49075:49076 -r49086:49087  ^/branches/soc-2011-tomato
2012-07-21 09:01:39 +00:00
Sergey Sharybin
21e3e3b8fc Fix incorrect RNA access in parenting operator 2012-07-21 08:50:11 +00:00
Campbell Barton
d9fcbe2f59 remove BMO_OP_FLAG_RATIONALIZE_NORMALS option which wasnt used anywhere. 2012-07-21 01:09:11 +00:00
Campbell Barton
90d215535e add option so operators can be called with a flag, currently the only flag is to respect hidden geometry.
this is useful for bmesh tools that operate in object mode or for modifiers which would previously use hidden faces in some cases.
2012-07-21 00:58:02 +00:00
Tamito Kajiyama
3b012c041f Merged changes in the trunk up to revision 49090. 2012-07-20 23:12:05 +00:00
Campbell Barton
16516238e2 patch [#32152] Make NlaTrack.is_solo settable
from Peter Amstutz (tetron)
2012-07-20 19:11:47 +00:00
Lukas Toenne
44800e884c Masking: prevent crashes in cases when mask spline is axis aligned 2012-07-20 17:28:42 +00:00
Lukas Toenne
f883337ba3 Fix #32118, Reroute nodes inside groups get created in wonky places.
Previous attempt was not taking into account parent nodes of the group nodes (i.e. frames). The nodeFromView function should be used to convert between relative node location to absolute view space. Also added this in the node_add_node helper function, which is used in a number of operators for adding nodes in a specific location.
2012-07-20 15:07:06 +00:00
Sergey Sharybin
7271f8e38f Color management: threading fixes and partial buffer update refactor
There used to be an issue in colormanage_cache_get which lead to
wrong reference number counter in cases when exposure / gamma
does not match values stored in cache. In this case cache handle
should be set to NULL, no callee function could always call
buffer release function (as it was intended to).

Made display buffer acquire / release functions thread safe.
This applies to "external" API only, internal helpers are
non-thread safe for performance issues, so if one uses them
he need to be careful.

Converted partial display buffer update into a single function
which still updates all display buffer ever created for given
image buffer. This means that it's not needed to create any
kind of context first and if there're display buffers created
in-between of partial updates they would also be updated with
next calls of partial updates.

This allowed to make render result nicely color managed during
rendering, meaning that render progress is visualisable with
color management for image editor set up.
2012-07-20 14:16:25 +00:00
Campbell Barton
10f14fb181 svn merge ^/trunk/blender -r49067:49082 2012-07-20 14:02:51 +00:00
Campbell Barton
80a24a2ff5 fix for compositor bug, mix node operation clamp was uninitialized.
made HSV node randomly clamp values from 0-1.
2012-07-20 14:01:43 +00:00
Campbell Barton
e94ef6ca6c ignore hidden faces when splitting by loose parts of materials. 2012-07-20 13:54:05 +00:00
Joshua Leung
054b78d74b Commented out "Filter" FModifier type entry in type enum. This doesn't exist
yet, and likely won't exist for a while.
2012-07-20 12:33:35 +00:00
Joshua Leung
684affe549 Code cleanup - missing indention be gone!
(And fixed some incorrect comments)
2012-07-20 12:29:56 +00:00
Joshua Leung
54d2921508 Keyframes from lib-linked actions are now drawn ghosted (just like those of
protected/unmodifiable channels),
2012-07-20 12:18:45 +00:00