9 years agosvn merge ^/trunk/blender -r49186:49190
Campbell Barton [Wed, 25 Jul 2012 09:06:44 +0000 (09:06 +0000)]
svn merge ^/trunk/blender -r49186:49190

9 years agofix annoying bug where image open from ID template didn't open in the existing images...
Campbell Barton [Wed, 25 Jul 2012 09:04:59 +0000 (09:04 +0000)]
fix annoying bug where image open from ID template didn't open in the existing images path.

9 years agoBGE: A better fix for using the Action Actuator with the Actuator Sensor. This one...
Mitchell Stokes [Wed, 25 Jul 2012 04:29:48 +0000 (04:29 +0000)]
BGE: A better fix for using the Action Actuator with the Actuator Sensor. This one still allows frame properties to be updated after receiving a negative pulse. This also fixes bug [#32179] "Action Actuator in Loop End stops updating the Frame Property after no longer receives positive signal" reported by Dalai.

9 years agosvn merge ^/trunk/blender -r49177:49186
Campbell Barton [Tue, 24 Jul 2012 21:11:22 +0000 (21:11 +0000)]
svn merge ^/trunk/blender -r49177:49186

9 years agochange behavior of ediutmesh separate not to cleanup geometry - its not really needed...
Campbell Barton [Tue, 24 Jul 2012 21:07:29 +0000 (21:07 +0000)]
change behavior of ediutmesh separate not to cleanup geometry - its not really needed and caused a bug with some of my recent edits.

If its important it could be added back but dont think its worthwhile.

9 years agoTomato Cycles: speedup realtime samples update
Sergey Sharybin [Tue, 24 Jul 2012 20:54:06 +0000 (20:54 +0000)]
Tomato Cycles: speedup realtime samples update

Copy pixels for combined pass only when updating tile after each sample
skipping all other passes. Behaves noticeable faster on scenes with
lots passes used.

Would check further tomorrow from studio whether stuff could be speed
up further.

9 years agomove mask and draw settings into its own struct to be shared between spaces.
Campbell Barton [Tue, 24 Jul 2012 20:33:55 +0000 (20:33 +0000)]
move mask and draw settings into its own struct to be shared between spaces.

9 years agoTomato Cycles: fix for memory overflow issue
Sergey Sharybin [Tue, 24 Jul 2012 20:05:00 +0000 (20:05 +0000)]
Tomato Cycles: fix for memory overflow issue

This fixes memory overflow caused by creating render result every time
RenderResult is creating when updating sample and not being freed until
tile is fully rendered.

Solved in probably not best way -- RenderResult is being stored in
RenderBuffers, so it's creating only once.

This solves memory issues, but while was looking into this issue
discovered dramatic slowdown caused by samples update in some files
from mango svn.

Solving this slowdown is becoming first priority from now on.

9 years agoinitial commit for supporting masks in the image view, currently active seq strip...
Campbell Barton [Tue, 24 Jul 2012 19:29:24 +0000 (19:29 +0000)]
initial commit  for supporting masks in the image view, currently active seq strip is used as the mask source.

also unify mask drawing code for clip/sequencer/image

9 years agoFix #32165: context_set_value didn't make an undo push when changing scene settings
Sergey Sharybin [Tue, 24 Jul 2012 15:51:26 +0000 (15:51 +0000)]
Fix #32165: context_set_value didn't make an undo push when changing scene settings

This lead to such issues as changing mesh selection mode wasn't doing undo push
when it need to.

9 years agoDebug option for guarded allocation: store name of original datablock
Sergey Sharybin [Tue, 24 Jul 2012 15:17:03 +0000 (15:17 +0000)]
Debug option for guarded allocation: store name of original datablock
when using MEM_dupallocN. This helps figuring out issues with non-freed
dup_alloc blocks,

Simply enable DEBUG_MEMDUPLINAME in mallocn.c file.

9 years agosvn merge ^/trunk/blender -r49175:49177
Campbell Barton [Tue, 24 Jul 2012 13:02:54 +0000 (13:02 +0000)]
svn merge ^/trunk/blender -r49175:49177

9 years agoadd prints for texture loading (we're running into texture limit a lot so its handy...
Campbell Barton [Tue, 24 Jul 2012 13:01:55 +0000 (13:01 +0000)]
add prints for texture loading (we're running into texture limit a lot so its handy to see whats actually loading from the blend files)

9 years agosvn merge ^/trunk/blender -r49167:49175
Campbell Barton [Tue, 24 Jul 2012 12:38:37 +0000 (12:38 +0000)]
svn merge ^/trunk/blender -r49167:49175

9 years agofix/workaround for glitch with node editing active texture bug - where a node texture...
Campbell Barton [Tue, 24 Jul 2012 12:35:41 +0000 (12:35 +0000)]
fix/workaround for glitch with node editing active texture bug - where a node texture in a group could get `stuck` and the buttons UI wouldnt update to other active nodes.

Files saved with this error will still give problems, toggling group edit will fix.

9 years agoCorrection to previous commit -- make sure float buffer is not being changed
Sergey Sharybin [Tue, 24 Jul 2012 12:18:40 +0000 (12:18 +0000)]
Correction to previous commit -- make sure float buffer is not being changed
while color management transformations are running.

9 years agoFix for RNA struct registration: the bpy_class_validate function would only check...
Lukas Toenne [Tue, 24 Jul 2012 12:00:02 +0000 (12:00 +0000)]
Fix for RNA struct registration: the bpy_class_validate function would only check the immediate functions/properties of the pointer struct type, but not potential base structs. Now it first validates the base struct recursively before the actual properties of the registered class.

Does not have any effect for current registerable types (Operator, Menu, Panel, etc.), since none of those actually have a base struct, but will be required for future types with an actual hierarchy (custom nodes).

9 years agoColor management: fix memory corruption when using border rendering
Sergey Sharybin [Tue, 24 Jul 2012 11:49:21 +0000 (11:49 +0000)]
Color management: fix memory corruption when using border rendering

Image's get render result function used to modify ImBuf directly,
without making needed invalidates to color management cache when
it's needed.

9 years agowarn when getting a context member fails because of type mismatch
Campbell Barton [Tue, 24 Jul 2012 10:28:29 +0000 (10:28 +0000)]
warn when getting a context member fails because of type mismatch

9 years agogeneralize mask poll functions and sequencer mask code.
Campbell Barton [Tue, 24 Jul 2012 09:53:29 +0000 (09:53 +0000)]
generalize mask poll functions and sequencer mask code.

9 years agoHopefully Blender compiles again with MSVC
Sergey Sharybin [Tue, 24 Jul 2012 09:08:27 +0000 (09:08 +0000)]
Hopefully Blender compiles again with MSVC

Seems to be a conflict between different areas defining
round() function.

9 years agoMerging r49149 through r49167 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 24 Jul 2012 09:03:40 +0000 (09:03 +0000)]
Merging r49149 through r49167 from trunk into soc-2011-tomato

9 years agoFix corrupted frames producing by fog glare node
Sergey Sharybin [Tue, 24 Jul 2012 09:00:58 +0000 (09:00 +0000)]
Fix corrupted frames producing by fog glare node

Seems to be simple non-initialized buffer used in math, but additional
check would be welcome here.

At least now result doesn't seems to be corrupted and seems to behaving
the same way as non-tile compositor.

9 years agono need for renaming actions that are not linked anywhere
Dalai Felinto [Tue, 24 Jul 2012 07:08:33 +0000 (07:08 +0000)]
no need for renaming actions that are not linked anywhere
talked with Joshua Leung (aligorith) and he agreed on that

9 years agouse 2d vectors for mask point access.
Campbell Barton [Mon, 23 Jul 2012 22:39:26 +0000 (22:39 +0000)]
use 2d vectors for mask point access.

9 years agoTomato Cycles: code reshuffle to make data flow more obvious
Sergey Sharybin [Mon, 23 Jul 2012 22:06:43 +0000 (22:06 +0000)]
Tomato Cycles: code reshuffle to make data flow more obvious

Should be no functional changes

9 years agomask layer rna api: add exception when removing incorrect masklayer from mask, add...
Campbell Barton [Mon, 23 Jul 2012 21:47:11 +0000 (21:47 +0000)]
mask layer rna api: add exception when removing incorrect masklayer from mask, add mask.layers.clear()

9 years agoTomato Cycles: deadlock with save buffers enabled should be resolved now
Sergey Sharybin [Mon, 23 Jul 2012 20:46:27 +0000 (20:46 +0000)]
Tomato Cycles: deadlock with save buffers enabled should be resolved now

9 years agoBGE: Bringing over the dynamic lamp properties fixes from Cucumber (thanks to Daniel...
Mitchell Stokes [Mon, 23 Jul 2012 20:24:35 +0000 (20:24 +0000)]
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

9 years agoGrrr... Minkowski... :p
Bastien Montagne [Mon, 23 Jul 2012 19:08:02 +0000 (19:08 +0000)]
Grrr... Minkowski... :p

9 years agoTomato Cycles: update buffers after sample wasfinished for CUDA devices
Sergey Sharybin [Mon, 23 Jul 2012 19:06:04 +0000 (19:06 +0000)]
Tomato Cycles: update buffers after sample wasfinished for CUDA devices

9 years agoTomato Cycles: update buffers on every sample finished
Sergey Sharybin [Mon, 23 Jul 2012 18:45:29 +0000 (18:45 +0000)]
Tomato Cycles: update buffers on every sample finished

Was requested by Mango team to improve feedback during rendering.

Known issues:
- Updating of samples are accumulative, meaning that visually samples
  would be dark in the beginning becoming brighter during progress.
- Could give some % of slowdown, so probably should be disabled in
  background mode.

Still to come: update of samples when using CUDA and OpenCL.

9 years agoMerging r49146 through r49148 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 23 Jul 2012 18:28:00 +0000 (18:28 +0000)]
Merging r49146 through r49148 from trunk into soc-2011-tomato

9 years agoKeying: apply garbage / core mattes after clamping
Sergey Sharybin [Mon, 23 Jul 2012 18:27:06 +0000 (18:27 +0000)]
Keying: apply garbage / core mattes after clamping

Applying this mattes before clamping produced ugly outline around
matte boundaries.

9 years agosvn merge ^/trunk/blender -r49143:49145
Campbell Barton [Mon, 23 Jul 2012 16:43:48 +0000 (16:43 +0000)]
svn merge ^/trunk/blender -r49143:49145

9 years agoview3d - enable background images and footage with `Only Render`, useful for previewi...
Campbell Barton [Mon, 23 Jul 2012 16:41:04 +0000 (16:41 +0000)]
view3d - enable background images and footage with `Only Render`, useful for previewing models with footage.

9 years agosvn merge ^/trunk/blender -r49118:49143
Campbell Barton [Mon, 23 Jul 2012 15:03:54 +0000 (15:03 +0000)]
svn merge ^/trunk/blender -r49118:49143

9 years agofix for cycles bug in localview: see r48269, bits used for localview gave collisions...
Campbell Barton [Mon, 23 Jul 2012 14:48:19 +0000 (14:48 +0000)]
fix for cycles bug in localview: see r48269, bits used for localview gave collisions with PathRayFlag's

9 years agoTomato Cycles: ability to cancel rendering before tile was fully rendered
Sergey Sharybin [Mon, 23 Jul 2012 13:51:29 +0000 (13:51 +0000)]
Tomato Cycles: ability to cancel rendering before tile was fully rendered

Seems this requred cuda context synchronization after every finished sample,
which could give few percent of slowdown. In test made here it was only minor
slowdown, so think it's pretty much acceptable for now.

9 years agoBugfix [#31994] Blend from Shape "Add" mode incorrectly added the full mesh
Joshua Leung [Mon, 23 Jul 2012 13:33:09 +0000 (13:33 +0000)]
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).

9 years agoTomato Cycles: rendering can be cencelled before tile is fully rendered
Sergey Sharybin [Mon, 23 Jul 2012 13:01:30 +0000 (13:01 +0000)]
Tomato Cycles: rendering can be cencelled before tile is fully rendered

Probably there;s a proper way to check whether rendering was requested
to cancel, but couldn't see any clearer ways to do that.

9 years agoFix [#32163] vertex groups get wiped.
Bastien Montagne [Mon, 23 Jul 2012 12:27:26 +0000 (12:27 +0000)]
Fix [#32163] vertex groups get wiped.

Usual "persistent" operator option... I guess there are still a few others that keep hiding in the dust! :)

9 years agoMinor style cleanup - remove invalid/unneeded comments
Joshua Leung [Mon, 23 Jul 2012 12:22:09 +0000 (12:22 +0000)]
Minor style cleanup - remove invalid/unneeded comments

9 years agoPortuguese is now over 60% (also finisehd old portuguse_brazilian->portuguese move).
Bastien Montagne [Mon, 23 Jul 2012 12:10:21 +0000 (12:10 +0000)]
Portuguese is now over 60% (also finisehd old portuguse_brazilian->portuguese move).

9 years agoBugfix [#32155] Driver error saves in file and isnt reset on load
Joshua Leung [Mon, 23 Jul 2012 12:10:02 +0000 (12:10 +0000)]
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.

9 years agoACES ODT tonecurve style cleanup and small tweaks
Sergey Sharybin [Mon, 23 Jul 2012 09:20:11 +0000 (09:20 +0000)]
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.

9 years agoFix for bug [#26122] "Overlay scene gets transparent when motion blur is enabled...
Mitchell Stokes [Mon, 23 Jul 2012 01:00:56 +0000 (01:00 +0000)]
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().

9 years agoFix for #32162 psys rotation causes size issues for particle instances
Janne Karhu [Sun, 22 Jul 2012 23:07:43 +0000 (23:07 +0000)]
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.

9 years agoBGE LibLoad: Allow the user to disable loading text datablocks if they want to attemp...
Mitchell Stokes [Sun, 22 Jul 2012 22:58:12 +0000 (22:58 +0000)]
BGE LibLoad: Allow the user to disable loading text datablocks if they want to attempt to increase security by not loading potential Python scripts.

9 years agopatch [#31925] Add a BMElemSeq.sort() method
Campbell Barton [Sun, 22 Jul 2012 21:13:32 +0000 (21:13 +0000)]
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)

9 years agocode cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define
Campbell Barton [Sun, 22 Jul 2012 18:40:50 +0000 (18:40 +0000)]
code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define

also some minor style cleanup.

9 years agocode cleanup: simplify view orbit operator
Campbell Barton [Sun, 22 Jul 2012 18:31:08 +0000 (18:31 +0000)]
code cleanup: simplify view orbit operator

9 years agocode cleanup: remove unused math functions (where already noted as deprecated)
Campbell Barton [Sun, 22 Jul 2012 17:49:56 +0000 (17:49 +0000)]
code cleanup: remove unused math functions (where already noted as deprecated)

9 years agocode cleanup: use cosf and sinf when both args and results are float values.
Campbell Barton [Sun, 22 Jul 2012 17:35:43 +0000 (17:35 +0000)]
code cleanup: use cosf and sinf when both args and results are float values.

also remove local math functions in KX_Camera

9 years agoBugfix [#32017] Infinite recursion in depsgraph material/node driver handling
Joshua Leung [Sun, 22 Jul 2012 16:14:57 +0000 (16:14 +0000)]
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)

9 years agosvn merge ^/trunk/blender -r49107:49118
Campbell Barton [Sun, 22 Jul 2012 16:10:06 +0000 (16:10 +0000)]
svn merge ^/trunk/blender -r49107:49118

9 years agofix for own error using uninitialized memory for scale compo node.
Campbell Barton [Sun, 22 Jul 2012 15:49:20 +0000 (15:49 +0000)]
fix for own error using uninitialized memory for scale compo node.

9 years agofix for more new[]/delete[] mismatches
Campbell Barton [Sun, 22 Jul 2012 15:31:12 +0000 (15:31 +0000)]
fix for more new[]/delete[] mismatches

9 years agofix for compositor new[]/delete[] mismatch.
Campbell Barton [Sun, 22 Jul 2012 15:15:39 +0000 (15:15 +0000)]
fix for compositor new[]/delete[] mismatch.

9 years agoFix #32156: Blender crashes on linking armature with custom shape
Sergey Sharybin [Sun, 22 Jul 2012 14:22:07 +0000 (14:22 +0000)]
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.

9 years agoAdd property to stitch operator to clear seam flag of stitched edges (on
Antony Riakiotakis [Sun, 22 Jul 2012 14:19:06 +0000 (14:19 +0000)]
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.

9 years agofix for node editor re-rendering when the background image was moved in the view.
Campbell Barton [Sun, 22 Jul 2012 13:13:36 +0000 (13:13 +0000)]
fix for node editor re-rendering when the background image was moved in the view.

9 years agoIncrease maximal video bitrate to 64K
Sergey Sharybin [Sun, 22 Jul 2012 12:48:19 +0000 (12:48 +0000)]
Increase maximal video bitrate to 64K

Aimed to #32153: H.264 Output Bitrate Max of 14000 kb/s is Too Low

9 years agoRemoved nested comment, which causes compiler errors.
Lukas Toenne [Sun, 22 Jul 2012 11:21:36 +0000 (11:21 +0000)]
Removed nested comment, which causes compiler errors.

9 years agostyle cleanup
Campbell Barton [Sat, 21 Jul 2012 22:58:08 +0000 (22:58 +0000)]
style cleanup

9 years agoMerging r49105 through r49107 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 21 Jul 2012 19:21:12 +0000 (19:21 +0000)]
Merging r49105 through r49107 from trunk into soc-2011-tomato

9 years agoBoolean modifier: prevent crashes when carve returns bad topology
Sergey Sharybin [Sat, 21 Jul 2012 19:19:45 +0000 (19:19 +0000)]
Boolean modifier: prevent crashes when carve returns bad topology

For sure actual issue is in carve's triangulation system which need
to be investigated and fixed. For now only fixed by re-shuffling a
bit existing degenerative faces check and added extra checks there.

Would look into actual fix a bit later.

9 years agostyle cleanup
Campbell Barton [Sat, 21 Jul 2012 16:21:42 +0000 (16:21 +0000)]
style cleanup

9 years agosvn merge ^/trunk/blender -r49082:49104
Campbell Barton [Sat, 21 Jul 2012 15:40:47 +0000 (15:40 +0000)]
svn merge ^/trunk/blender -r49082:49104

9 years agouse fabsf when using floats.
Campbell Barton [Sat, 21 Jul 2012 15:27:40 +0000 (15:27 +0000)]
use fabsf when using floats.

9 years agoMerge mask fixes from tomato branch
Sergey Sharybin [Sat, 21 Jul 2012 09:01:39 +0000 (09:01 +0000)]
Merge mask fixes from tomato branch

svn merge -r49075:49076 -r49086:49087  ^/branches/soc-2011-tomato

9 years agoFix incorrect RNA access in parenting operator
Sergey Sharybin [Sat, 21 Jul 2012 08:50:11 +0000 (08:50 +0000)]
Fix incorrect RNA access in parenting operator

9 years agoremove BMO_OP_FLAG_RATIONALIZE_NORMALS option which wasnt used anywhere.
Campbell Barton [Sat, 21 Jul 2012 01:09:11 +0000 (01:09 +0000)]
remove BMO_OP_FLAG_RATIONALIZE_NORMALS option which wasnt used anywhere.

9 years agoadd option so operators can be called with a flag, currently the only flag is to...
Campbell Barton [Sat, 21 Jul 2012 00:58:02 +0000 (00:58 +0000)]
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.

9 years agopatch [#32152] Make NlaTrack.is_solo settable
Campbell Barton [Fri, 20 Jul 2012 19:11:47 +0000 (19:11 +0000)]
patch [#32152] Make NlaTrack.is_solo settable
from Peter Amstutz (tetron)

9 years agoMasking: prevent crashes in cases when mask spline is axis aligned
Lukas Toenne [Fri, 20 Jul 2012 17:28:42 +0000 (17:28 +0000)]
Masking: prevent crashes in cases when mask spline is axis aligned

9 years agoFix #32118, Reroute nodes inside groups get created in wonky places.
Lukas Toenne [Fri, 20 Jul 2012 15:07:06 +0000 (15:07 +0000)]
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.

9 years agoColor management: threading fixes and partial buffer update refactor
Sergey Sharybin [Fri, 20 Jul 2012 14:16:25 +0000 (14:16 +0000)]
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.

9 years agosvn merge ^/trunk/blender -r49067:49082
Campbell Barton [Fri, 20 Jul 2012 14:02:51 +0000 (14:02 +0000)]
svn merge ^/trunk/blender -r49067:49082

9 years agofix for compositor bug, mix node operation `clamp` was uninitialized.
Campbell Barton [Fri, 20 Jul 2012 14:01:43 +0000 (14:01 +0000)]
fix for compositor bug, mix node operation `clamp` was uninitialized.

made HSV node randomly clamp values from 0-1.

9 years agoignore hidden faces when splitting by loose parts of materials.
Campbell Barton [Fri, 20 Jul 2012 13:54:05 +0000 (13:54 +0000)]
ignore hidden faces when splitting by loose parts of materials.

9 years agoCommented out "Filter" FModifier type entry in type enum. This doesn't exist
Joshua Leung [Fri, 20 Jul 2012 12:33:35 +0000 (12:33 +0000)]
Commented out "Filter" FModifier type entry in type enum. This doesn't exist
yet, and likely won't exist for a while.

9 years agoCode cleanup - missing indention be gone!
Joshua Leung [Fri, 20 Jul 2012 12:29:56 +0000 (12:29 +0000)]
Code cleanup - missing indention be gone!

(And fixed some incorrect comments)

9 years agoKeyframes from lib-linked actions are now drawn ghosted (just like those of
Joshua Leung [Fri, 20 Jul 2012 12:18:45 +0000 (12:18 +0000)]
Keyframes from lib-linked actions are now drawn ghosted (just like those of
protected/unmodifiable channels),

9 years agoMask rasteriyer: fixed wrong bounding box calculation
Sergey Sharybin [Fri, 20 Jul 2012 10:35:46 +0000 (10:35 +0000)]
Mask rasteriyer: fixed wrong bounding box calculation
for non-cyclic splines

9 years agoSeparate meshes by loose parts and materials now works in object mode as well as...
Campbell Barton [Fri, 20 Jul 2012 10:33:15 +0000 (10:33 +0000)]
Separate meshes by loose parts and materials now works in object mode as well as editmode.

9 years agominor edits for bmesh api
Campbell Barton [Fri, 20 Jul 2012 09:49:54 +0000 (09:49 +0000)]
minor edits for bmesh api

9 years agoquiet formatting warnings when international was enabled.
Campbell Barton [Thu, 19 Jul 2012 21:55:16 +0000 (21:55 +0000)]
quiet formatting warnings when international was enabled.

9 years agoPossible fix for [#32141] Crash when using a mask as the factor input
Jeroen Bakker [Thu, 19 Jul 2012 17:28:37 +0000 (17:28 +0000)]
Possible fix for [#32141] Crash when using a mask as the factor input
for a color combine (mix) node with render resolution at 100%

Seems to be that the MaskNode has been created as a complex node. But no
complex features were used. Converted the execute pixel to simple
execution. And it sees that the crash does not happen.

Not sure if it is the issue is solved. I am going to let the user retest
with this revision.

9 years agosvn merge ^/trunk/blender -r49063:49067
Campbell Barton [Thu, 19 Jul 2012 13:07:33 +0000 (13:07 +0000)]
svn merge ^/trunk/blender -r49063:49067

9 years agoprint names of nodes/sockets when cycles complains about only being able to connect...
Campbell Barton [Thu, 19 Jul 2012 13:04:43 +0000 (13:04 +0000)]
print names of nodes/sockets when cycles complains about only being able to connect a closure to another closure.

9 years agoadd lattice selection to rna
Campbell Barton [Thu, 19 Jul 2012 11:40:25 +0000 (11:40 +0000)]
add lattice selection to rna

9 years agosvn merge ^/trunk/blender -r49061:49063
Campbell Barton [Thu, 19 Jul 2012 11:35:45 +0000 (11:35 +0000)]
svn merge ^/trunk/blender -r49061:49063

9 years agoFix for
Jeroen Bakker [Thu, 19 Jul 2012 11:05:18 +0000 (11:05 +0000)]
Fix for
 * [#32040] size-input of a blur-node is uniform for the whole picture
 * [#32062] Blur node Size input is not working with
 * [#32140] Blur Node using a greyscale input as size multiplier fails
to work

Node now has a new option (new compositor cannot detect if the connected
part is a single value, or an image connected).

With this option the use of a reference image to multiply the size of
the blur per pixel can be enabled/disabled.

 - At Mind -

9 years agosvn merge ^/trunk/blender -r49037:49061
Campbell Barton [Thu, 19 Jul 2012 10:29:39 +0000 (10:29 +0000)]
svn merge ^/trunk/blender -r49037:49061

9 years agofix for separate loose parts doing full depsgraph rebuild for every object split...
Campbell Barton [Thu, 19 Jul 2012 10:23:25 +0000 (10:23 +0000)]
fix for separate loose parts doing full depsgraph rebuild for every object split off.

9 years agohandy function for getting a python stacktrace while debugging in gdb
Campbell Barton [Thu, 19 Jul 2012 09:55:49 +0000 (09:55 +0000)]
handy function for getting a python stacktrace while debugging in gdb

9 years agoremove unneeded externs
Campbell Barton [Thu, 19 Jul 2012 09:23:31 +0000 (09:23 +0000)]
remove unneeded externs

9 years agoFix #32118, Reroute nodes inside groups get created in wonky places. The operator...
Lukas Toenne [Thu, 19 Jul 2012 08:23:56 +0000 (08:23 +0000)]
Fix #32118, Reroute nodes inside groups get created in wonky places. The operator needs to take into account the potential offset from the group node (most operators use the node_add_node helper function which does this).

9 years agopoll function for edge loop delete.
Campbell Barton [Thu, 19 Jul 2012 08:04:12 +0000 (08:04 +0000)]
poll function for edge loop delete.