blender.git
8 years agosvn merge ^/trunk/blender -r47253:47272
Campbell Barton [Thu, 31 May 2012 11:58:14 +0000 (11:58 +0000)]
svn merge ^/trunk/blender -r47253:47272

8 years agomath lib changes from tomato
Campbell Barton [Thu, 31 May 2012 11:57:09 +0000 (11:57 +0000)]
math lib changes from tomato

8 years agoFix for [#31542] Tiles Compositor: Image sequences broken
Jeroen Bakker [Thu, 31 May 2012 11:55:05 +0000 (11:55 +0000)]
Fix for [#31542] Tiles Compositor: Image sequences broken

8 years ago * Added new dilate/erode function
Jeroen Bakker [Thu, 31 May 2012 10:38:11 +0000 (10:38 +0000)]
 * Added new dilate/erode function

8 years agoFix adding feather points when there's deformed spline for mask
Sergey Sharybin [Thu, 31 May 2012 10:01:21 +0000 (10:01 +0000)]
Fix adding feather points when there's deformed spline for mask

Deformed spline should be re-evaluated after adding new feather points
Used both BKE_mask_update_display and DAG_id_tag_update because of:

- If adding feather point is happening from macro which adds point and
  slides it, deformed spline should be updated immediatelly so sliding
  operator will use updated feather,
- If adding happens outside of such macro, update DAG is necessary to
  make needed updates in other areas (such as compositor, i.e.)

8 years agominor cleanup
Campbell Barton [Thu, 31 May 2012 09:50:50 +0000 (09:50 +0000)]
minor cleanup

8 years agouse malloc for point arrays since they are filled in immediately.
Campbell Barton [Thu, 31 May 2012 09:46:17 +0000 (09:46 +0000)]
use malloc for point arrays since they are filled in immediately.

8 years agominor refactor - use float (*)[2] for 2D point arratys.
Campbell Barton [Thu, 31 May 2012 09:35:50 +0000 (09:35 +0000)]
minor refactor - use float (*)[2] for 2D point arratys.

8 years agoFixed memory leak caused by not freeing uw array for points in deformed spline
Sergey Sharybin [Thu, 31 May 2012 09:01:15 +0000 (09:01 +0000)]
Fixed memory leak caused by not freeing uw array for points in deformed spline

8 years agopatch from pete larabell - feather support for masking.
Campbell Barton [Thu, 31 May 2012 08:39:22 +0000 (08:39 +0000)]
patch from pete larabell - feather support for masking.

8 years agoNo need in +x flag for mask_shapekey.c
Sergey Sharybin [Thu, 31 May 2012 08:38:50 +0000 (08:38 +0000)]
No need in +x flag for mask_shapekey.c

8 years agosvn merge -r47246:47245 . --- revert 47246, this needs more considersation and...
Campbell Barton [Thu, 31 May 2012 08:24:53 +0000 (08:24 +0000)]
svn merge -r47246:47245 .   --- revert 47246, this needs more considersation and planning to do this well

8 years agosvn merge ^/trunk/blender -r47229:47253
Campbell Barton [Thu, 31 May 2012 07:57:04 +0000 (07:57 +0000)]
svn merge ^/trunk/blender -r47229:47253

8 years agofix for own mistake
Campbell Barton [Thu, 31 May 2012 07:55:04 +0000 (07:55 +0000)]
fix for own mistake

8 years agoAdds property to mask splines to allow them to be negated (black masks), still needs...
Peter Larabell [Wed, 30 May 2012 21:15:17 +0000 (21:15 +0000)]
Adds property to mask splines to allow them to be negated (black masks), still needs work in tracking.c

8 years agoFix for
Monique Dewanchand [Wed, 30 May 2012 21:09:50 +0000 (21:09 +0000)]
Fix for
[#31562] New compositor crashes due to incorrect opencl initialization

8 years agoMask out of bounds fix for mask rasterizer
Peter Larabell [Wed, 30 May 2012 18:39:42 +0000 (18:39 +0000)]
Mask out of bounds fix for mask rasterizer

8 years agoreplaced last instance of BF_GHOST_DEBUG
Campbell Barton [Wed, 30 May 2012 17:14:55 +0000 (17:14 +0000)]
replaced last instance of BF_GHOST_DEBUG

8 years agodraw options for mask spline matching the UV view
Campbell Barton [Wed, 30 May 2012 16:22:33 +0000 (16:22 +0000)]
draw options for mask spline matching the UV view

8 years agoFix #31645, mix node results in crash upon render. This happens when unused mix nodes...
Lukas Toenne [Wed, 30 May 2012 15:47:12 +0000 (15:47 +0000)]
Fix #31645, mix node results in crash upon render. This happens when unused mix nodes are removed from the cycles graph. In case the inputs are both unconnected it still tried to reconnect them.

8 years agominor mask draw code refactor
Campbell Barton [Wed, 30 May 2012 15:23:17 +0000 (15:23 +0000)]
minor mask draw code refactor

8 years agosvn merge ^/trunk/blender -r47214:47229
Campbell Barton [Wed, 30 May 2012 14:46:30 +0000 (14:46 +0000)]
svn merge ^/trunk/blender -r47214:47229

8 years agoViewer linking operator has to flag the node tree for update, to ensure the dependenc...
Lukas Toenne [Wed, 30 May 2012 14:42:40 +0000 (14:42 +0000)]
Viewer linking operator has to flag the node tree for update, to ensure the dependency sorting is correct (avoid red links).

8 years agoSeveral small fixes to nodes:
Sergey Sharybin [Wed, 30 May 2012 14:39:20 +0000 (14:39 +0000)]
Several small fixes to nodes:

- Code formation fix in keying node
- Fixed crash when creating keying screen for frame where there's no movie
- Attempt to improve keying node to handle alpha on hair better

8 years agoMerging r47215 through r47226 from trunk into soc-2011-tomato
Sergey Sharybin [Wed, 30 May 2012 14:33:24 +0000 (14:33 +0000)]
Merging r47215 through r47226 from trunk into soc-2011-tomato

8 years agoFixed crash of mask node when mask is not set
Sergey Sharybin [Wed, 30 May 2012 14:30:28 +0000 (14:30 +0000)]
Fixed crash of mask node when mask is not set

8 years agoonly keyframe selected maskobjects
Campbell Barton [Wed, 30 May 2012 13:46:44 +0000 (13:46 +0000)]
only keyframe selected maskobjects

8 years agofix for own mistake
Campbell Barton [Wed, 30 May 2012 13:21:13 +0000 (13:21 +0000)]
fix for own mistake

8 years ago * fixed memory leak in compositor operation.
Jeroen Bakker [Wed, 30 May 2012 13:07:55 +0000 (13:07 +0000)]
 * fixed memory leak in compositor operation.
   - leaked when render result could not be received.

8 years agoimpliment restrict select option.
Campbell Barton [Wed, 30 May 2012 12:54:50 +0000 (12:54 +0000)]
impliment restrict select option.

8 years agoProvide ray hit/nearest information on which side of the quad the ray hit.
Daniel Genrich [Wed, 30 May 2012 12:53:13 +0000 (12:53 +0000)]
Provide ray hit/nearest information on which side of the quad the ray hit.

Patch by MiikaH.

8 years agofix for mask transform in non proportional mode.
Campbell Barton [Wed, 30 May 2012 12:08:08 +0000 (12:08 +0000)]
fix for mask transform in non proportional mode.

8 years agorename macros for mask point selection - were a bit confusing.
Campbell Barton [Wed, 30 May 2012 11:52:44 +0000 (11:52 +0000)]
rename macros for mask point selection - were a bit confusing.

8 years agomake rasterizer thread safe.
Campbell Barton [Wed, 30 May 2012 10:24:34 +0000 (10:24 +0000)]
make rasterizer thread safe.

8 years agosvn merge ^/trunk/blender -r47210:47214
Campbell Barton [Wed, 30 May 2012 09:28:37 +0000 (09:28 +0000)]
svn merge ^/trunk/blender -r47210:47214

8 years agoworkaround for crash when rig library links dont load. - will leak memory but better...
Campbell Barton [Wed, 30 May 2012 09:27:16 +0000 (09:27 +0000)]
workaround for crash when rig library links dont load. - will leak memory but better then crash.

8 years agofix incorrect delete usage in the compositor.
Campbell Barton [Wed, 30 May 2012 09:15:02 +0000 (09:15 +0000)]
fix incorrect delete usage in the compositor.

8 years agoproportional editing keys now work when editing masks.
Campbell Barton [Wed, 30 May 2012 08:20:20 +0000 (08:20 +0000)]
proportional editing keys now work when editing masks.

8 years agosvn merge ^/trunk/blender -r47201:47210
Campbell Barton [Wed, 30 May 2012 08:04:06 +0000 (08:04 +0000)]
svn merge ^/trunk/blender -r47201:47210

8 years agosplit up proportional editing keymap functions (adding this in tomato branch was...
Campbell Barton [Wed, 30 May 2012 08:02:49 +0000 (08:02 +0000)]
split up proportional editing keymap functions (adding this in tomato branch was messy)

8 years agominor transform change to stay in sync with mask branch
Campbell Barton [Wed, 30 May 2012 07:38:33 +0000 (07:38 +0000)]
minor transform change to stay in sync with mask branch

8 years agoproportional editing for masks
Campbell Barton [Wed, 30 May 2012 07:34:25 +0000 (07:34 +0000)]
proportional editing for masks

8 years agoproportional editing for mask transform
Campbell Barton [Wed, 30 May 2012 07:15:09 +0000 (07:15 +0000)]
proportional editing for mask transform

8 years agotransform wasnt ignoring hidden maskobjects
Campbell Barton [Wed, 30 May 2012 06:42:03 +0000 (06:42 +0000)]
transform wasnt ignoring hidden maskobjects

8 years agoclear active object when hiding unselected objects too.
Campbell Barton [Wed, 30 May 2012 06:37:40 +0000 (06:37 +0000)]
clear active object when hiding unselected objects too.

8 years agocircle select for mask view (Ckey)
Campbell Barton [Wed, 30 May 2012 06:33:44 +0000 (06:33 +0000)]
circle select for mask view (Ckey)

8 years agomask object hide/reveal - access from H/Alt+H/Shift+H and eye icon in listview.
Campbell Barton [Wed, 30 May 2012 06:07:26 +0000 (06:07 +0000)]
mask object hide/reveal - access from H/Alt+H/Shift+H and eye icon in listview.

added alpha setting though its not used for rendering yet.

8 years agosvn merge ^/trunk/blender -r47184:47201
Campbell Barton [Wed, 30 May 2012 04:48:10 +0000 (04:48 +0000)]
svn merge ^/trunk/blender -r47184:47201

8 years agoRemove useless file
Nathan Letwory [Wed, 30 May 2012 04:17:21 +0000 (04:17 +0000)]
Remove useless file

8 years agomask - border & lasso select (lasso uses Ctrl+Alt - as with clip view)
Campbell Barton [Tue, 29 May 2012 20:48:15 +0000 (20:48 +0000)]
mask - border & lasso select (lasso uses Ctrl+Alt - as with clip view)

8 years agoBGE #30734: add support for physics linear and angular thresholds and deactivation...
Benoit Bolsee [Tue, 29 May 2012 20:30:33 +0000 (20:30 +0000)]
BGE #30734: add support for physics linear and angular thresholds and deactivation time from python and GUI.
========================
The linear and angular thresholds set the speed limit (in m/s) and rotation limit (in rad/s)
under which a rigid body will go to sleep (stop moving) if it stays below the limits for a
time equal or longer than the deactivation time (sleeping is disabled is deactivation time is
set to 0).
These settings help reducing the processing spent on Physics during the game.

Previously they were only accessible from python but not working because of a bug.
Now the python functions are working and the settings are available in the Physics panel
of the World settings when using the Blender Game render engine.

Python API:
  import PhysicsConstraints
  PhysicsConstraints.setDeactivationLinearTreshold(float)
  PhysicsConstraints.setDeactivationAngularTreshold(float)

8 years agoWin32: Compilation fix for quicktime import
Benoit Bolsee [Tue, 29 May 2012 20:06:31 +0000 (20:06 +0000)]
Win32: Compilation fix for quicktime import

8 years agoBugfix [#31629] Cloth simulation results are much different from older ones
Daniel Genrich [Tue, 29 May 2012 19:12:49 +0000 (19:12 +0000)]
Bugfix [#31629] Cloth simulation results are much different from older ones

This is only a partial bugfix, reducing the repulse to 1/3.

Cloth collision will still behave different because it is now catching more collisions.

8 years agoOutliner Drag & Drop fixes
Dan Eicher [Tue, 29 May 2012 18:12:13 +0000 (18:12 +0000)]
Outliner Drag & Drop fixes

OUTLINER_OT_parent_drop
 * use scene of child instead of active scene
 * poll to check if parent and child are in same scene

OUTLINER_OT_parent_clear
 * get scene from child instead of only working on active scene
 * poll to check if no parent

OUTLINER_OT_scene_drop && OBJECT_OT_make_links_scene
 * memory leak on error
 * would only link some objects on error

8 years agoFix #31633: select pattern operator did not mention [abc] wildcard, also
Brecht Van Lommel [Tue, 29 May 2012 17:01:24 +0000 (17:01 +0000)]
Fix #31633: select pattern operator did not mention [abc] wildcard, also
documented the operator more detailed in wiki now.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Modeling/Objects/Selecting#Other_Menu_Options

8 years agoreenable sm13 for win32 cmake
Antony Riakiotakis [Tue, 29 May 2012 16:18:10 +0000 (16:18 +0000)]
reenable sm13 for win32 cmake

8 years agoFix terrible mistake on merging keying patch which originally was against trunk.
Sergey Sharybin [Tue, 29 May 2012 15:30:56 +0000 (15:30 +0000)]
Fix terrible mistake on merging keying patch which originally was against trunk.
This resulted in compositor crashes when using mask node.

8 years agoFix #31591: info header reports missing with custom key configuration due to
Brecht Van Lommel [Tue, 29 May 2012 15:04:11 +0000 (15:04 +0000)]
Fix #31591: info header reports missing with custom key configuration due to
wrong keymap timer writing, some timer types were missing.

8 years agosvn merge ^/trunk/blender -r47150:47184
Campbell Barton [Tue, 29 May 2012 15:02:21 +0000 (15:02 +0000)]
svn merge ^/trunk/blender -r47150:47184

8 years agoFixed stupid typo: dispill vs. despill
Sergey Sharybin [Tue, 29 May 2012 14:55:01 +0000 (14:55 +0000)]
Fixed stupid typo: dispill vs. despill

8 years agofix for using uninitialized memory when adding spline points, also fix for deleting...
Campbell Barton [Tue, 29 May 2012 14:54:40 +0000 (14:54 +0000)]
fix for using uninitialized memory when adding spline points, also fix for deleting points not working right.

8 years agoCompositor filter node
Jeroen Bakker [Tue, 29 May 2012 14:38:28 +0000 (14:38 +0000)]
Compositor filter node
 * edges (x=0, x=width-1, y = 0 y=height-1) were not taken into acount
correctly
used CLAMP function to limit the filter operation to existing pixels

8 years ago * Compositor Alpha channel was not effected by the ConvolutionFilters
Jeroen Bakker [Tue, 29 May 2012 14:25:28 +0000 (14:25 +0000)]
 * Compositor Alpha channel was not effected by the ConvolutionFilters
(Filter:Sharpen, Filter:Soften, etc)

8 years ago * Compositor fix for OpenCL [OpenCL platform installed, but no
Jeroen Bakker [Tue, 29 May 2012 14:13:08 +0000 (14:13 +0000)]
 * Compositor fix for OpenCL [OpenCL platform installed, but no
available devices]
   - could happen when having laptops with a hard switch between video
cards (intel/NVidia switch)
   - or when an opencl platform was installed on a machine without any
OpenCL compatible GPU

8 years agoInitial commit of new keying nodes
Sergey Sharybin [Tue, 29 May 2012 14:00:47 +0000 (14:00 +0000)]
Initial commit of new keying nodes

First node is called Keying Screen (Add -> Matte -> Keying Screen) and it's
aimed to resolve issues with gradients on green screens by producing image
with gradient which is later used as an input for screen color in keying nodes.

This node gets motion tracks from given movie clip and trackign object and uses
them to define color and position of points of gradient: for position marker's
position on current frame is sued, for color average color of pattern area is
used.

Gradient is calculating in the following way:
- On first step voronoi diagram is creating for given tracks.
- On second step triangulation of this diagram happens by connecting sites
  to edges which defines area this site belongs to.
- On third step gradient filling of this triangles happens. One of triangle
  vertices is colored with average track color, two rest vertoces are colored
  with average color between two neighbor sites. Current pixel's color in
  triangle is calculating as linear combination of vertices colors and
  barycentric coordinates of this pixel.

This node is implemented for both tile and legacy compositor systems.

Second node is basically a combination of several existing nodes to make keying
more straighforward and reduce spagetti mess in the compositor, but it also
ships some fresh approaches calculating matte which seems to be working better
for not actually green screens.

This node supports:
- Chroma preblur
- Dispilling
- Clip white/black
- Dilate/Erode
- Matte post blur

This node doesn't support chroma pre-blur for legacy compositor (yet).

There're still lots of stuff to be improved here, but this nodes night already
be used i think.

Some details might be found on this wiki page:
http://wiki.blender.org/index.php/User:Nazg-gul/Keying

This patch also contains some currently unused code from color math module, but
it was used for tests and might be used for tests in the future. Think it's ok
to have it in branch at least.

8 years agoRevert makesrna part of r47158 because it broke building blenderplayer
Dan Eicher [Tue, 29 May 2012 13:59:31 +0000 (13:59 +0000)]
Revert makesrna part of r47158 because it broke building blenderplayer

Apparently not supposed to call ED_* functions from there

Also added a missing "\n" that's been annoying me for a long while

8 years agosupport for marker parent offset
Campbell Barton [Tue, 29 May 2012 13:23:34 +0000 (13:23 +0000)]
support for marker parent offset

8 years agofix for parenting, offset isnt needed anymore
Campbell Barton [Tue, 29 May 2012 13:18:11 +0000 (13:18 +0000)]
fix for parenting, offset isnt needed anymore

8 years agoCycles / CUDA:
Thomas Dinges [Tue, 29 May 2012 12:28:34 +0000 (12:28 +0000)]
Cycles / CUDA:
* Windows department switches to CUDA Toolkit 4.2 :)
* Windows Buildbot uses that too now (thanks jesterKing)
* Re-enable sm_13 for x86, compiled again with current SVN and the new toolkit.

* All official builds for windows now come with sm_13, sm_20, sm_21 and sm_30 for the Kepler cards.

8 years agoScons:
Thomas Dinges [Tue, 29 May 2012 12:13:45 +0000 (12:13 +0000)]
Scons:
* Remove "plugininstall" from argument list, caused errors.

8 years agofix crash with using uninitialized curves
Campbell Barton [Tue, 29 May 2012 11:48:34 +0000 (11:48 +0000)]
fix crash with using uninitialized curves

8 years agoFix #31631: keyframe insert on uv layer element not working.
Brecht Van Lommel [Tue, 29 May 2012 11:19:46 +0000 (11:19 +0000)]
Fix #31631: keyframe insert on uv layer element not working.

8 years agoFix #31632: error inserting keyframing on vertex group element weight.
Brecht Van Lommel [Tue, 29 May 2012 11:00:12 +0000 (11:00 +0000)]
Fix #31632: error inserting keyframing on vertex group element weight.

8 years agofix for parent + animation handles.
Campbell Barton [Tue, 29 May 2012 11:00:02 +0000 (11:00 +0000)]
fix for parent + animation handles.

8 years agomore plugin removal
Campbell Barton [Tue, 29 May 2012 10:41:00 +0000 (10:41 +0000)]
more plugin removal

8 years agoFix #31556: cycles object info random value was not properly randomized for
Brecht Van Lommel [Tue, 29 May 2012 10:34:16 +0000 (10:34 +0000)]
Fix #31556: cycles object info random value was not properly randomized for
dupligroups.

8 years agoFix #31596: wrong soft limits for light falloff node.
Brecht Van Lommel [Tue, 29 May 2012 10:34:10 +0000 (10:34 +0000)]
Fix #31596: wrong soft limits for light falloff node.

8 years agofinish cleanup for plugins
Campbell Barton [Tue, 29 May 2012 10:31:42 +0000 (10:31 +0000)]
finish cleanup for plugins

8 years agoMassive Code cleanup:
Thomas Dinges [Tue, 29 May 2012 10:21:07 +0000 (10:21 +0000)]
Massive Code cleanup:
* Remove all code for Texture and Sequencer plugin system, this never worked in 2.5x / 2.6x and is therefore not needed anymore.

* DNA structures are kept, all read/writefile code is gone.

8 years agoFix compilation error of Cycles after recent py node removal
Sergey Sharybin [Tue, 29 May 2012 09:51:16 +0000 (09:51 +0000)]
Fix compilation error of Cycles after recent py node removal

8 years agoremove some more pynode references in the code
Campbell Barton [Tue, 29 May 2012 09:42:11 +0000 (09:42 +0000)]
remove some more pynode references in the code

8 years agoremove pynodes, were not working in 2.5, not ported to py3.x
Campbell Barton [Tue, 29 May 2012 09:37:23 +0000 (09:37 +0000)]
remove pynodes, were not working in 2.5, not ported to py3.x

8 years agoinitial support for animating parented mask points.
Campbell Barton [Tue, 29 May 2012 08:55:16 +0000 (08:55 +0000)]
initial support for animating parented mask points.

8 years agoOUTLINER_OT_scene_drop -- "Drag object to scene in Outliner" operator
Dan Eicher [Tue, 29 May 2012 08:20:11 +0000 (08:20 +0000)]
OUTLINER_OT_scene_drop -- "Drag object to scene in Outliner" operator

Refactored the two (well, three now) other places where an object is linked to a scene into ED_object_scene_link()

8 years agocheck for parent before applying offset
Campbell Barton [Tue, 29 May 2012 06:31:42 +0000 (06:31 +0000)]
check for parent before applying offset

8 years agosvn merge ^/trunk/blender -r47103:47150
Campbell Barton [Tue, 29 May 2012 05:48:07 +0000 (05:48 +0000)]
svn merge ^/trunk/blender -r47103:47150

8 years agoTypo in property Description
Daniel Salazar [Tue, 29 May 2012 05:46:54 +0000 (05:46 +0000)]
Typo in property Description

8 years agofix for sequencer selection and naming in the outliner, was broken since 2.5x
Campbell Barton [Tue, 29 May 2012 05:45:06 +0000 (05:45 +0000)]
fix for sequencer selection and naming in the outliner, was broken since 2.5x

8 years agoCycles / CUDA:
Thomas Dinges [Mon, 28 May 2012 23:51:06 +0000 (23:51 +0000)]
Cycles / CUDA:
* Remove double declaration of cosf.

8 years agoOutliner drag/drop parent fix -- added checks for modifiers and contraints to the...
Dan Eicher [Mon, 28 May 2012 22:59:11 +0000 (22:59 +0000)]
Outliner drag/drop parent fix -- added checks for modifiers and contraints to the poll functions

Parenting was just broken, poll would return true but nothing would happen if you dropped on modifiers or constraints

Parent clear now works the same as dropping on a non-ID_OB types but left the actual modifier/contraint instances open to allow for future expansion

8 years agoBGE patch #28476: Character object physics type
Benoit Bolsee [Mon, 28 May 2012 21:36:29 +0000 (21:36 +0000)]
BGE patch #28476: Character object physics type
===============================================
This patch adds a new "Character" BGE physics type which uses Bullet's btKinematicCharacter for simulation instead of full-blown dynamics. It is appropiate for (player-controlled) characters, for which the other physics types often result unexpected results (bouncing off walls, sliding etc.) and for which simple kinematics offers much more precision.

"Character" can be chosen like any other physics type in the "Physics" section of the properties window. Current settings for tweaking are "Step Height" (to make the object automatically climb small steps if it collides with them), "Fall Speed" (the maximum speed that the object can have when falling) and "Jump Speed", which is currently not used.

See http://projects.blender.org/tracker/?func=detail&atid=127&aid=28476&group_id=9
for sample blends and a discussion on the patch: how to use it and what influences the behavior of the character object.

Known problem: there is a crash if the "compound" option is set in the physics panel of the Character object.

8 years agofix compiler error
Campbell Barton [Mon, 28 May 2012 21:25:17 +0000 (21:25 +0000)]
fix compiler error

8 years agoFix for bug [#31613] Cycles 3d viewport material display mode + skin modifier related...
Nicholas Bishop [Mon, 28 May 2012 21:02:44 +0000 (21:02 +0000)]
Fix for bug [#31613] Cycles 3d viewport material display mode + skin modifier related crash

When in material display mode, mesh_calc_modifiers() calculates the
orco DerivedMesh, which uses a different CustomDataMask. In
particular, it does not necessarily include the current modifier's
requiredDataMask, so those layers might get set to NO_COPY. For the
skin modifier, this resulted in a crash when the modifier internally
copies the DerivedMesh and the output does not contain the expected
MVertSkin layer.

Fixed by adding the requiredDataMask to the orco DM's CustomDataMask.

Also added a debugging function to customdata.c:
customData_mask_layers__print(CustomDataMask mask);

This will print out the names of all the CD layer types in the mask.

8 years agoCycles / CUDA:
Thomas Dinges [Mon, 28 May 2012 19:49:26 +0000 (19:49 +0000)]
Cycles / CUDA:
* Remove -use_fast_math flag from scons as well.

8 years agoadd BLI_ghash_pop() which returns the value for a key and removes it at the same...
Campbell Barton [Mon, 28 May 2012 19:33:14 +0000 (19:33 +0000)]
add BLI_ghash_pop() which returns the value for a key and removes it at the same time, saves a lookup if you need to check if the item exists before removing.

8 years agoCycles: fixes to make CUDA 4.2 work, compiling gave errors in shadows and
Brecht Van Lommel [Mon, 28 May 2012 19:21:13 +0000 (19:21 +0000)]
Cycles: fixes to make CUDA 4.2 work, compiling gave errors in shadows and
other places, was mainly due to instancing not working, but also found
issues in procedural textures.

The problem was with --use_fast_math, this seems to now have way lower
precision for some operations. Disabled this flag and selectively use
fast math functions. Did not find performance regression on GTX 460 after
doing this.

8 years agoFix 2 #29846. Effector point ave variable can be NULL.
Lukas Toenne [Mon, 28 May 2012 19:10:57 +0000 (19:10 +0000)]
Fix 2 #29846. Effector point ave variable can be NULL.

8 years agoimage.gl_touch: wasn't passing the parameters to gl_load
Dalai Felinto [Mon, 28 May 2012 18:32:18 +0000 (18:32 +0000)]
image.gl_touch: wasn't passing the parameters to gl_load

8 years agostyle cleanup: also fix for TIMEIT macro
Campbell Barton [Mon, 28 May 2012 18:12:08 +0000 (18:12 +0000)]
style cleanup: also fix for TIMEIT macro

8 years agoimage.gl_load: moving error cleaning to before all gl calls"
Dalai Felinto [Mon, 28 May 2012 17:47:42 +0000 (17:47 +0000)]
image.gl_load: moving error cleaning to before all gl calls"